Opened 8 years ago
Closed 8 years ago
#9346 closed defect (fixed)
git: moving the docs breaks links in the howto indexes
Reported by: | Jeremy Henty | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 8.1 |
Component: | BOOK | Version: | SVN |
Severity: | normal | Keywords: | |
Cc: |
Description ¶
The BLFS instructions for git rearrange many of the documentation files. Unfortunately this breaks the links in the HOWTO index files. The attachment has some sed commands that fix the HOWTO indexes so that the links work again.
Change History (3)
by , 8 years ago
Attachment: | git_doc_fix added |
---|
comment:1 by , 8 years ago
You don't need to use an attachment for something so short.
sed -i '/^<a href=/s|howto/|howto/html/|' /usr/share/doc/git-2.13.1/howto-index.html sed -i '/^\* link:/s|howto/|howto/html/|' /usr/share/doc/git-2.13.1/howto-index.txt
These can be shortened up a little with:
sed -i '/^<a href=/s|howto/|&html/|' /usr/share/doc/git-2.13.1/howto-index.html sed -i '/^\* link:/s|howto/|&text/|' /usr/share/doc/git-2.13.1/howto-index.txt
Note that the links in the txt file should point to text, not html.
Note:
See TracTickets
for help on using tickets.
Sed commands to fix the HOWTO indexes