diff --git a/css/theme.css b/css/theme.css index 3966afc..e7e3c3d 100644 --- a/css/theme.css +++ b/css/theme.css @@ -1047,10 +1047,26 @@ div.figure p { } .menu-vertical li.tocentry { - padding-left: 15px; + padding-left: 20px; padding-top: 7px; } +.menu-vertical li.tocentry.current > ul.currentrelative { + padding-left: 7px; + padding-bottom: 5px; + margin-top: 0; +} + +.menu-vertical li.tocentry > ul.currentrelative { + padding-left: 7px; + padding-bottom: 5px; + margin-top: -3px; +} + +.menu-vertical li.tocentry > ul.currentrelative > li.tocentry { + padding-top: 3px !important; +} + .menu-vertical li.tocrootentry { padding-left: 15px; } diff --git a/docnetjson.htm b/docnetjson.htm index 3c179dd..a2df856 100644 --- a/docnetjson.htm +++ b/docnetjson.htm @@ -39,7 +39,11 @@
  • Site configuration with the docnet.json file
  • Automatic H2 level ToC entry discovery
  • @@ -92,6 +96,7 @@ "Footer" : "footer text or HTML", "ConvertLocalLinks: "true" | "false", "PathSpecification": "Full" | "Relative" | "RelativeAsFolder", + "MaxLevelInToC": "3", "Pages" : { "__index" : "index.md", @@ -125,6 +130,7 @@
  • RelativeAsFolder: Behaves the same as Relative, but puts every source md in its own folder resulting in clean navigation urls (e.g. /getting-started/introduction.htm becomes /getting-started/introduction/index.htm)
  • +
  • MaxLevelInToC. Sets the level of headings to show in the Table of Contents (ToC). The default value is 2. To show one additional level, one would use 3 for this value. Note that level 1 headings (titles) are never shown in the ToC).
  • Footer. This is text and/or HTML which is placed in the footer of each page, using a marker (see below).
  • Pages contains the pages to generate into the output, in the order and structure in which you want them to appear in the navigation. The name given is the value used in the navigation tree and has to be unique per level. The value specified with each name is the markdown file to load, parse and generate as .htm file in the output. The markdown file is relative to the path specified in Source. A file foo.md will be generated as foo.htm in the output.
  • diff --git a/h2leveldiscovery.htm b/h2leveldiscovery.htm index 9fdac4b..25e3ace 100644 --- a/h2leveldiscovery.htm +++ b/h2leveldiscovery.htm @@ -79,7 +79,9 @@

    Automatic H2 level ToC entry discovery

    Docnet will automatically add all H2 (## marked) headers to the ToC as sub navigation elements below a page ToC item. It will automatically add anchors to these H2 headers in the HTML output for the page as well. This makes it very easy to create a fine-grained ToC for easy discovery.

    - +

    This behavior can be overridden by the MaxLevelInToC configuration option.

    +
    Info

    Note that level 1 headings (titles) are never shown in the ToC).

    +