Skip to content

Commit

Permalink
make sure url fragment values are unique for nav, ncx and toc
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhendricks committed Aug 12, 2024
1 parent 4efc619 commit 00cd27b
Show file tree
Hide file tree
Showing 4 changed files with 141 additions and 120 deletions.
8 changes: 4 additions & 4 deletions src/OEBPS/Text/advanced_topics.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<body>
<h1 id="user_interface">Advanced Topics</h1>

<h2 id="sigil_toc_id_35">Using Sigil's Environment Variables</h2>
<h2 id="atenv">Using Sigil's Environment Variables</h2>


<p>Some rarely needed settings in Sigil are controlled by "Environment Variables". An environment variable is a user-definable value that can affect the way running processes will behave on a computer. See <a href="https://en.wikipedia.org/wiki/Environment_variable">https://en.wikipedia.org/wiki/Environment_variable&gt;</a> for more information on setting and using environment variables on your computer.</p>
Expand Down Expand Up @@ -51,7 +51,7 @@

<hr class="narrow"/>

<h2 id="sigil_toc_id_36">Using Sigil's Template Files</h2>
<h2 id="attf">Using Sigil's Template Files</h2>

<p>Many users of Sigil develop their own versions of starting xhtml, and css files that they would much prefere using over what Sigil defaults to. To address these concerns, Sigil has added the ability to load user defined starting xhtml, and css files. To create these "templates" simply edit any blank xhtml or css page to your liking and then save it to your Sigil Preferences Location with one of these specific filenames. When you are a Blank HTML or Blank CSS files using Sigil's BookBrowser, sigil will use your templates instead. To prevent their use simply rename or delete them.</p>

Expand Down Expand Up @@ -112,7 +112,7 @@

<hr class="narrow"/>

<h2 id="sigil_toc_id_37">Embedding a PDF inside an Epub3</h2>
<h2 id="atpdf">Embedding a PDF inside an Epub3</h2>

<p> Many e-readers employ the Adobe Digital Editions Software Development Kit as their underlying rendering and display engine. Many other employ Web Browser-based display engines. All of these e-readers have the capability to include Adobe PDF documents inside their epub.</p>

Expand Down Expand Up @@ -155,7 +155,7 @@

<hr class="narrow"/>

<h2 id="sigil_toc_id_35">Customizing Sigil with Qt QSS</h2>
<h2 id="atqss">Customizing Sigil with Qt QSS</h2>


<p>Qt, the Graphical User Interface (GUI) library used by Sigil supports its own user css-like styles called QSS that allow the user to modify many aspects of Sigil to their preference. Sigil when first launched will automatically load any QSS styles it finds in the QSS stylesheet named <b>qt_styles.qss</b> found in your Sigil Preferences Location folder.</p>
Expand Down
9 changes: 6 additions & 3 deletions src/OEBPS/Text/toc.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,16 @@
<div class="sgc-toc-level-1">
<a href="advanced_topics.xhtml">Advanced Topics</a>
<div class="sgc-toc-level-2">
<a href="advanced_topics.xhtml#sigil_toc_id_35">Using Sigil's Environment Variables</a>
<a href="advanced_topics.xhtml#atenv">Using Sigil's Environment Variables</a>
</div>
<div class="sgc-toc-level-2">
<a href="advanced_topics.xhtml#sigil_toc_id_36">Using Sigil's Template Files</a>
<a href="advanced_topics.xhtml#attf">Using Sigil's Template Files</a>
</div>
<div class="sgc-toc-level-2">
<a href="advanced_topics.xhtml#sigil_toc_id_37">Embedding a PDF inside an Epub3</a>
<a href="advanced_topics.xhtml#atpdf">Embedding a PDF inside an Epub3</a>
</div>
<div class="sgc-toc-level-2">
<a href="advanced_topics.xhtml#atqss">Customizing Sigil with Qt QSS</a>
</div>
</div>
<div class="sgc-toc-level-1">
Expand Down
12 changes: 9 additions & 3 deletions src/OEBPS/nav.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
<li>
<a href="Text/rights.xhtml">Copyright</a>
</li>
<li>
<a href="Text/toc.xhtml">Table Of Contents</a>
</li>
<li>
<a href="Text/introduction.xhtml">Introduction</a>
<ol>
Expand Down Expand Up @@ -279,13 +282,16 @@
<a href="Text/advanced_topics.xhtml">Advanced Topics</a>
<ol>
<li>
<a href="Text/advanced_topics.xhtml#sigil_toc_id_35">Using Sigil's Environment Variables</a>
<a href="Text/advanced_topics.xhtml#atenv">Using Sigil's Environment Variables</a>
</li>
<li>
<a href="Text/advanced_topics.xhtml#attf">Using Sigil's Template Files</a>
</li>
<li>
<a href="Text/advanced_topics.xhtml#sigil_toc_id_36">Using Sigil's Template Files</a>
<a href="Text/advanced_topics.xhtml#atpdf">Embedding a PDF inside an Epub3</a>
</li>
<li>
<a href="Text/advanced_topics.xhtml#sigil_toc_id_37">Embedding a PDF inside an Epub3</a>
<a href="Text/advanced_topics.xhtml#atqss">Customizing Sigil with Qt QSS</a>
</li>
</ol>
</li>
Expand Down
Loading

0 comments on commit 00cd27b

Please sign in to comment.