Skip to content

Commit e3e589e

Browse files
Botato300dscho
authored andcommitted
fix broken links: change from .txt to .adoc
Some links like “/docs/howto/update-hook-example” redirected to URLs ending in .txt, which no longer exist. They now redirect to the same URLs ending in .adoc.
1 parent 4b1d7c4 commit e3e589e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/update-docs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ def index_doc(filter_tags, doc_list, get_content)
605605
type = 'tree'
606606
target = 'howto'
607607
else
608-
target += '.txt'
608+
target += '.adoc'
609609
end
610610
front_matter = { "redirect_to" => "https://github.com/git/git/#{type}/HEAD/Documentation/#{target}" } # ltrim `docs/`
611611
FileUtils.mkdir_p(File.dirname(doc_path))

0 commit comments

Comments
 (0)