Skip to content

Commit 840cc25

Browse files
committed
docs: work around link:/linkgit: bugs in older versions
Since we want to build older Git versions' manual pages, too, we have to work around bugs since fixed. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 2b6bd2a commit 840cc25

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

script/update-docs.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,12 @@ def index_doc(filter_tags, doc_list, get_content)
333333
# Handle `gitlink:` mistakes (the last of which was fixed in
334334
# dbf47215e32b (rebase docs: fix "gitlink" typo, 2019-02-27))
335335
content.gsub!(/gitlink:/, "linkgit:")
336+
# Handle erroneous `link:api-trace2.txt`, see 4945f046c7f5 (api docs:
337+
# link to html version of api-trace2, 2022-09-16)
338+
content.gsub!(/link:api-trace2.txt/, 'link:api-trace2.html')
339+
# Handle `linkgit:git-config.txt` mistake, fixed in ad52148a7d0
340+
# (Documentation: fix broken linkgit to git-config, 2016-03-21)
341+
content.gsub!(/linkgit:git-config.txt/, 'linkgit:git-config')
336342
content.gsub!(/link:(?:technical\/)?(\S*?)\.html(\#\S*?)?\[(.*?)\]/m, "link:/docs/\\1\\2[\\3]")
337343

338344
asciidoc = make_asciidoc(content)

0 commit comments

Comments
 (0)