Changeset 35199


Ignore:
Timestamp:
Mar 20, 2008, 1:32:48 PM (11 years ago)
Author:
simon@…
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc-new/Makefile

    r34184 r35199  
    5959        $(XSLTPROC) --xinclude $(STRINGPARAMS) --output $(GUIDE-RESULT)/index.html \
    6060            $(GUIDE-XSL) $(GUIDE-SRC)/guide.xml
     61        # Convert all sections (h1-h9) to a link so it's easy to link to them.
     62        # If someone knows a better way to do this please change it.
     63        $(SED) -i "" -E \
     64            's|(<h[0-9] [^>]*><a id="([^"]*)"></a>)([^<]*)(</h[0-9]>)|\1<a href="#\2">\3</a>\4|g' \
     65            $(GUIDE-RESULT)/index.html
    6166
    6267# Generate the man pages using DocBook from the xml source in $(MAN-SRC).
Note: See TracChangeset for help on using the changeset viewer.