Welcome to little lamb

Code » qmdoc » commit f8bd600

Make the TOC "real"

author Olivier Brunel
2022-12-23 14:43:21 UTC
committer Olivier Brunel
2022-12-23 14:43:21 UTC
parent f420688fcf7fd3078034cd50b1b9ab98080b009a

Make the TOC "real"

base.htm +19 -71

diff --git a/base.htm b/base.htm
index 0fec47f..ce10db2 100644
--- a/base.htm
+++ b/base.htm
@@ -287,81 +287,29 @@ main footer {
                     <li><a href="#common_topics">Common Topics</a></li>
                     <ul>
                         <li><a href="#getting_started">Getting Started</a></li>
-                        <li><a href="#download">Download</a></li>
-                        <li><a href="#usage">Usage</a></li>
+                        <li><a href="#this_is_level_2">This is level 2</a></li>
                         <ul>
-                            <li><a href="#input_files">Input Files</a></li>
-                            <li><a href="#output">Output</a></li>
-                            <li><a href="#h3">This is level 3</a></li>
+                            <li><a href="#this_is_level_3">This is level 3</a></li>
                             <ul>
-                                <li><a href="#h4">This is level 4</a></li>
+                                <li><a href="#this_is_level_4">This is level 4</a></li>
                                 <ul>
-                                    <li><a href="#h5">This is level 5</a></li>
+                                    <li><a href="#this_is_level_5">This is level 5</a></li>
                                     <ul>
-                                        <li><a href="#h6">This is level 6</a></li>
+                                        <li><a href="#this_is_level_6">This is level 6</a></li>
                                     </ul>
                                 </ul>
                             </ul>
                         </ul>
-                        <li><a href="#errors">Errors</a></li>
                     </ul>
-                    <li><a href="#creating_documents">Creating Documents</a></li>
+                    <li><a href="#citations_needed">Citations Needed</a></li>
                     <ul>
-                        <li><a href="#metainfo">Meta Info</a></li>
-                        <li><a href="#table_of_contents">Table of Contents</a></li>
+                        <li><a href="#lists">Lists...</a></li>
                     </ul>
-                    <li><a href="#welcome_to_foobar">Welcome to Foobar !</a></li>
-                    <li><a href="#common_topics">Common Topics</a></li>
-                    <ul>
-                        <li><a href="#getting_started">Getting Started</a></li>
-                        <li><a href="#download">Download</a></li>
-                        <li><a href="#usage">Usage</a></li>
-                        <ul>
-                            <li><a href="#input_files">Input Files</a></li>
-                            <li><a href="#output">Output</a></li>
-                        </ul>
-                        <li><a href="#errors">Errors</a></li>
-                    </ul>
-                    <li><a href="#creating_documents">Creating Documents</a></li>
-                    <ul>
-                        <li><a href="#metainfo">Meta Info</a></li>
-                        <li><a href="#table_of_contents">Table of Contents</a></li>
-                    </ul>
-                    <li><a href="#welcome_to_foobar">Welcome to Foobar !</a></li>
-                    <li><a href="#common_topics">Common Topics</a></li>
-                    <ul>
-                        <li><a href="#getting_started">Getting Started</a></li>
-                        <li><a href="#download">Download</a></li>
-                        <li><a href="#usage">Usage</a></li>
-                        <ul>
-                            <li><a href="#input_files">Input Files</a></li>
-                            <li><a href="#output">Output</a></li>
-                        </ul>
-                        <li><a href="#errors">Errors</a></li>
-                    </ul>
-                    <li><a href="#creating_documents">Creating Documents</a></li>
-                    <ul>
-                        <li><a href="#metainfo">Meta Info</a></li>
-                        <li><a href="#table_of_contents">Table of Contents</a></li>
-                    </ul>
-                    <li><a href="#welcome_to_foobar">Welcome to Foobar !</a></li>
-                    <li><a href="#common_topics">Common Topics</a></li>
-                    <ul>
-                        <li><a href="#getting_started">Getting Started</a></li>
-                        <li><a href="#download">Download</a></li>
-                        <li><a href="#usage">Usage</a></li>
-                        <ul>
-                            <li><a href="#input_files">Input Files</a></li>
-                            <li><a href="#output">Output</a></li>
-                        </ul>
-                        <li><a href="#errors">Errors</a></li>
-                    </ul>
-                    <li><a href="#creating_documents">Creating Documents</a></li>
+                    <li><a href="#highlights">Highlights</a></li>
                     <ul>
-                        <li><a href="#metainfo">Meta Info</a></li>
-                        <li><a href="#table_of_contents">Table of Contents</a></li>
+                        <li><a href="#code_blocks">Code Blocks</a></li>
                     </ul>
-                    <li><a href="#creating_documents">This Is The End</a></li>
+                    <li><a href="#links">Links</a></li>
                 </ul>
             </nav>
         </header>
@@ -387,16 +335,16 @@ No formatting or anything there.
 Now we will have to test some very long line, to see how the overflow is handled and make sure it works as expected. That is, as we expect, i.e. things don't break and a nice little scrollbar is featured.
 </pre>
                 </section>
-                <section id="titles">
+                <section id="this_is_level_2">
                     <h2>This is level 2</h2>
                     <p>Here is text in the level.</p>
-                    <section id="title3">
+                    <section id="this_is_level_3">
                         <h3>This is level 3</h3>
-                        <section id="title4">
+                        <section id="this_is_level_4">
                             <h4>This is level 4</h4>
-                            <section id="title5">
+                            <section id="this_is_level_5">
                                 <h5>This is level 5</h5>
-                                <section id="title6">
+                                <section id="this_is_level_6">
                                     <h6>This is level 6</h6>
                                     <p>We have <sup>superscript</sup> as well as
                                     <sub>subscript</sub> also.
@@ -455,7 +403,7 @@ the highlight.
 Which, also, can <span class="highlighted">spawn
 multiple lines</span>. Yep.
 </pre></p>
-                <section id="code blocks">
+                <section id="code_blocks">
                     <h2>Code Blocks</h2>
                     <p>Oh yeah, we might wanna have "code blocks". Those would
                     be like <tt>pre</tt> ones, only a bit more styled :
@@ -463,12 +411,12 @@ multiple lines</span>. Yep.
 <pre class="code">#include &lt;stdlib.h&gt;
 int main(int argc, char **argv)
 {
-    int nb = 8;
+    int nb = 3;
 
     for(int i = nb; i &gt; 0; --i)
-        printf("%d... ", i);
+        printf("%d... ", i<span class="highlighted">, nb</span>);
 
-    printf("Hello <span class="highlighted">World</span>!\n");
+    printf("Hello World!\n");
 }</pre></p>
                     <p>Looking good? And yes, the <tt>highlighted</tt> effect
                     works in there too.</p>