@@ -434,16 +434,16 @@ def index_doc(filter_tags, doc_list, get_content)
434
434
content = expand_content ( ( get_content . call sha ) . force_encoding ( "UTF-8" ) , path , get_content_f , generated , ext )
435
435
# Handle `link:../howto/maintain-git.txt`, which should point to
436
436
# a `.html` target instead
437
- content . gsub! ( /link:\. \. \/ howto\/ maintain-git\. #{ ext } / , 'link:../howto/maintain-git.html' )
437
+ content . gsub! ( /link:\. \. \/ howto\/ maintain-git\. txt / , 'link:../howto/maintain-git.html' )
438
438
# Handle `gitlink:` mistakes (the last of which was fixed in
439
439
# dbf47215e32b (rebase docs: fix "gitlink" typo, 2019-02-27))
440
440
content . gsub! ( /gitlink:/ , "linkgit:" )
441
441
# Handle erroneous `link:api-trace2.txt`, see 4945f046c7f5 (api docs:
442
442
# link to html version of api-trace2, 2022-09-16)
443
- content . gsub! ( /link:api-trace2.#{ ext } / , 'link:api-trace2.html' )
443
+ content . gsub! ( /link:api-trace2.txt / , 'link:api-trace2.html' )
444
444
# Handle `linkgit:git-config.txt` mistake, fixed in ad52148a7d0
445
445
# (Documentation: fix broken linkgit to git-config, 2016-03-21)
446
- content . gsub! ( /linkgit:git-config.#{ ext } / , 'linkgit:git-config' )
446
+ content . gsub! ( /linkgit:git-config.txt / , 'linkgit:git-config' )
447
447
content . gsub! ( /link:(?:technical\/ )?(\S *?)\. html(\# \S *?)?\[ (.*?)\] /m , "link:/docs/\\ 1\\ 2[\\ 3]" )
448
448
449
449
asciidoc = make_asciidoc ( content )
0 commit comments