Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git-scm.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictoria Dye <vdye@github.com>2022-10-27 20:09:23 +0300
committerVictoria Dye <vdye@github.com>2022-10-27 20:09:23 +0300
commit45bc5d3f3db430506d3d58a9a07875837ad5e6cd (patch)
tree463e5e39a58ef3d2f9a5a0f4158e89a8e950d159
parentf2b5cdfb8e806a2bd7bdf809b32efa6f28e1a954 (diff)
lib/tasks/index.rake: generate scalar documentation
Add 'scalar' to the document-matching regexes in 'index_doc()' and 'index_l10n_doc' so that the 'scalar' command documentation is built and included on the site. Note that, because the Scalar technical design document has the same base name as the command doc (both 'scalar.txt'), only last one processed will be saved to the DB and rendered on the site. Since we want both documents available on the website, this should be fixed by renaming the technical document in Git. Temporarily, this will be handled on the site via a later commit. Signed-off-by: Victoria Dye <vdye@github.com>
-rw-r--r--lib/tasks/index.rake4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/tasks/index.rake b/lib/tasks/index.rake
index e669e033..3ac0f5ab 100644
--- a/lib/tasks/index.rake
+++ b/lib/tasks/index.rake
@@ -56,7 +56,8 @@ def index_l10n_doc(filter_tags, doc_list, get_content)
ent.first =~
/^([-_\w]+)\/(
(
- git.*
+ git.* |
+ scalar
)\.txt)/x
end
@@ -198,6 +199,7 @@ def index_doc(filter_tags, doc_list, get_content)
rev.* |
pretty.* |
pull.* |
+ scalar |
technical\/.*
)\.txt)/x
end