public
Description: Git mirror of the MacPorts svn repo
Homepage: http://www.macports.org
Clone URL: git://github.com/kballard/macports.git
Search Repo:
doc-new: Convert all sections (h1-h9) to links so it's easy to link to 
subsections which are not in the table of contents.


git-svn-id: http://svn.macports.org/repository/macports/trunk@35199 
d073be05-634f-4543-b044-5fe20cf6d1d6
Simon Ruderich (author)
Thu Mar 20 06:32:48 -0700 2008
commit  c81e516253f7752d4eaa828734e6d74143ea68fe
tree    e47ca992d4bf3499f871b7b0b3dcc08b89a179ad
parent  7a52da98e65c194f618f63187ed190d96e79b29b
...
58
59
60
 
 
 
 
 
61
62
63
...
58
59
60
61
62
63
64
65
66
67
68
0
@@ -58,6 +58,11 @@ guide:
0
   $(CP) $(GUIDE)/resources/images/* $(GUIDE-RESULT)/
0
   $(XSLTPROC) --xinclude $(STRINGPARAMS) --output $(GUIDE-RESULT)/index.html \
0
    $(GUIDE-XSL) $(GUIDE-SRC)/guide.xml
0
+ # Convert all sections (h1-h9) to a link so it's easy to link to them.
0
+ # If someone knows a better way to do this please change it.
0
+ $(SED) -i "" -E \
0
+ 's|(<h[0-9] [^>]*><a id="([^"]*)"></a>)([^<]*)(</h[0-9]>)|\1<a href="#\2">\3</a>\4|g' \
0
+ $(GUIDE-RESULT)/index.html
0
 
0
 # Generate the man pages using DocBook from the xml source in $(MAN-SRC).
0
 # The portfile-*.xml files in $(GUIDE-SRC) are copied to $(MAN-TMP) and

Comments

    No one has commented yet.