Skip to content

Commit d0187c8

Browse files
authored
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 c09ad1e commit d0187c8

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
@@ -587,7 +587,7 @@ def index_doc(filter_tags, doc_list, get_content)
587587
type = 'tree'
588588
target = 'howto'
589589
else
590-
target += '.txt'
590+
target += '.adoc'
591591
end
592592
front_matter = { "redirect_to" => "https://github.com/git/git/#{type}/HEAD/Documentation/#{target}" } # ltrim `docs/`
593593
FileUtils.mkdir_p(File.dirname(doc_path))

0 commit comments

Comments
 (0)