From 0e6ca4cf4703687ae2f8f1e273e9629ab29e17a7 Mon Sep 17 00:00:00 2001 From: Alistair Thomas Date: Sun, 5 Mar 2017 20:07:26 +0000 Subject: manual: Generate section and sub-section numbers --- doc/manual/Makefile.am | 4 ++-- doc/manual/default.css | 15 +++++++++++++ doc/manual/xhtml.xsl | 60 ++++++++++++++++++++++++++++++++++++-------------- 3 files changed, 60 insertions(+), 19 deletions(-) (limited to 'doc') diff --git a/doc/manual/Makefile.am b/doc/manual/Makefile.am index 08ec8182b..342feb46e 100644 --- a/doc/manual/Makefile.am +++ b/doc/manual/Makefile.am @@ -11,7 +11,7 @@ book_DATA = \ endif $(builddir)/devhelp/*: devhelp -devhelp: manual.xml version.xml devhelp.xsl xhtml.xsl +devhelp: manual.xml version.xml devhelp.xsl xhtml.xsl default.css @$(MKDIR_P) $@ $(AM_V_GEN)$(XSLTPROC) \ --xinclude \ @@ -26,7 +26,7 @@ devhelp: manual.xml version.xml devhelp.xsl xhtml.xsl @cp $(srcdir)/default.css $@ @touch $@ -html: manual.xml version.xml xhtml.xsl +html: manual.xml version.xml xhtml.xsl default.css @$(MKDIR_P) $@ $(AM_V_GEN)$(XSLTPROC) \ --xinclude \ diff --git a/doc/manual/default.css b/doc/manual/default.css index 3c432ccb4..93d3ee39e 100644 --- a/doc/manual/default.css +++ b/doc/manual/default.css @@ -47,6 +47,21 @@ a:link, a:visited, a:hover, a:active { background-color: #ddd; } +.page_toc { + list-style: none; +} + +.page_toc a { + width: 18em; + display: block; + border-radius: 0.4em; + padding-left: 0.4em; +} + +.page_toc a:hover, .page_toc a:focus { + background: #ddd; +} + h3 { /* ensure anchors don't vanish below the fixed header */ padding-top: 1.4em; diff --git a/doc/manual/xhtml.xsl b/doc/manual/xhtml.xsl index 97338467c..ca7f39b93 100644 --- a/doc/manual/xhtml.xsl +++ b/doc/manual/xhtml.xsl @@ -26,6 +26,7 @@ + @@ -49,18 +50,21 @@ -
- -
- + +
  • + + + -
  • @@ -96,22 +100,23 @@ - +
    -

    - +

    • + + + - @@ -119,9 +124,11 @@
    • + + + -
    • @@ -151,12 +158,8 @@ - -

      -
      - - - + +

      @@ -167,7 +170,30 @@ -

      +

      +
      + + + + + + + + + + + + + -- cgit v1.2.1