Browse Source

Fixing index

pull/83/head
Jure Šorn 4 years ago
parent
commit
aa13ea5228
3 changed files with 13 additions and 13 deletions
  1. 4
      pdf/HOW_TO_CREATE_PDF.md
  2. 20
      pdf/index_for_pdf.html
  3. 2
      pdf/index_for_pdf_print.html

4
pdf/HOW_TO_CREATE_PDF.md

@ -13,14 +13,14 @@ Printing to PDF
---------------
### Normal PDF
* Open `index.html` in text editor and first remove element `<p><br></p>` before the `<h1>Libraries</h1>`.
* Then replace the footer and last three `<br>` elements with contents of `pdf/index_for_pdf.html` file and save.
* Then replace the index and footer with contents of `pdf/index_for_pdf.html` file and save.
* Open `index.html` in Chrome and select 'Print...'.
* Select destination 'Save as PDF', paper size 'A4', margins and scale 'Default' and no headers and footers and save.
### PDF optimized for laser color printing
* Run `./parse.js` again.
* Open `index.html` in text editor and first remove element `<p><br></p>` before the `<h1>Libraries</h1>`.
* Then replace the footer and last three `<br>` elements with contents of `pdf/index_for_pdf_print.html` file.
* Then replace the index and footer with contents of `pdf/index_for_pdf_print.html` file.
* Change all links in text to normal text and optionally add a page number in brackets like that: '(p. <num>)'. Links can be found with this regex: `<strong>.*a href.*</strong>`.
* Save and open `index.html` in Chrome.
* Change brightness of elements by right clicking on them and selecting inspect. Then click on the rectangle that represents color and toggle the color space to HSLA by clicking on the button with two vertical arrows.

20
pdf/index_for_pdf.html

@ -23,7 +23,7 @@
<strong>callable, <a href="#callable">17</a></strong><br>
<strong>class, <a href="#type">4</a>, <a href="#class">14</a>-<a href="#abcsequence">19</a>, <a href="#metaprograming">31</a>-<a href="#metaclass">32</a></strong><br>
<strong>closure, <a href="#closure">12</a></strong><br>
<strong>collection, <a href="#type">4</a>, <a href="#collection">18</a></strong><br>
<strong>collection, <a href="#abstractbaseclasses">4</a>, <a href="#collection">18</a></strong><br>
<strong>collections module, <a href="#counter">2</a>, <a href="#namedtuple">3</a>, <a href="#abstractbaseclasses">4</a>, <a href="#abcsequence">19</a>, <a href="#deque">29</a></strong><br>
<strong>combinatorics, <a href="#combinatorics">8</a></strong><br>
<strong>command line arguments, <a href="#commandlinearguments">22</a></strong><br>
@ -34,7 +34,7 @@
<strong>coroutine, <a href="#coroutines">33</a></strong><br>
<strong>counter, <a href="#counter">2</a>, <a href="#generator">4</a>, <a href="#nonlocal">12</a>, <a href="#iterator-1">17</a></strong><br>
<strong>csv module, <a href="#csv">26</a>, <a href="#printsacsvfileasanasciitable">34</a>, <a href="#encodedecode">46</a></strong><br>
<strong>curses module, <a href="#curses">34</a></strong><br>
<strong>curses module, <a href="#runsaterminalgamewhereyoucontrolanasteriskthatmustavoidnumbers">33</a>, <a href="#curses">34</a></strong><br>
<strong>cython, <a href="#cython">49</a></strong> </p>
<h3 id="d">D</h3>
<p><strong>dataclasses module, <a href="#namedtupleenumdataclass">12</a>, <a href="#dataclass">15</a></strong><br>
@ -47,14 +47,14 @@
<p><strong>enum module, <a href="#enum">19</a>-<a href="#inline-2">20</a></strong><br>
<strong>enumerate function, <a href="#enumerate">3</a></strong><br>
<strong>eval function, <a href="#eval">33</a></strong><br>
<strong>exceptions, <a href="#exceptions">20</a>-<a href="#reraisingcaughtexception">21</a>, <a href="#exceptions-1">23</a></strong> </p>
<strong>exceptions, <a href="#exceptions">20</a>-<a href="#exceptionobject">21</a>, <a href="#exceptions-1">23</a></strong> </p>
<h3 id="f">F</h3>
<p><strong>files, <a href="#file">23</a></strong><br>
<p><strong>files, <a href="#fileobject">23</a></strong><br>
<strong>filter function, <a href="#mapfilterreduce">11</a></strong><br>
<strong>floats, <a href="#abstractbaseclasses">4</a>, <a href="#floats">6</a>, <a href="#types">7</a></strong><br>
<strong>format, <a href="#format">6</a>-<a href="#comparisonoffloatpresentationtypes">7</a></strong><br>
<strong>functools module, <a href="#mapfilterreduce">11</a>, <a href="#partial">12</a>, <a href="#decorator">13</a>, <a href="#sortable">16</a></strong><br>
<strong>futures, <a href="#threadpool">30</a></strong> </p>
<strong>format, <a href="#format">6</a>-<a href="#comparisonofpresentationtypes">7</a></strong><br>
<strong>functools module, <a href="#mapfilterreduce">11</a>, <a href="#partial">12</a>, <a href="#debuggerexample">13</a>, <a href="#sortable">16</a></strong><br>
<strong>futures, <a href="#threadpoolexecutor">30</a></strong> </p>
<h3 id="g">G</h3>
<p><strong>generators, <a href="#generator">4</a>, <a href="#comprehensions">11</a></strong><br>
<strong>global keyword, <a href="#nonlocal">12</a></strong></p>
@ -92,14 +92,14 @@
<strong>nonlocal keyword, <a href="#nonlocal">12</a></strong><br>
<strong>numpy library, <a href="#numpy">37</a>-<a href="#indexing">38</a></strong> </p>
<h3 id="o">O</h3>
<p><strong>open function, <a href="#open">22</a>-<a href="#file">23</a></strong><br>
<p><strong>open function, <a href="#open">22</a>-<a href="#modes">23</a></strong><br>
<strong>operator module, <a href="#operator">31</a></strong><br>
<strong>os commands, <a href="#oscommands">24</a>-<a href="#shellcommands">25</a></strong><br>
<strong>os module, <a href="#path">23</a>, <a href="#oscommands">24</a>-<a href="#shellcommands">25</a></strong> </p>
<h3 id="p">P</h3>
<p><strong>pandas library, <a href="#pandas">44</a></strong><br>
<strong>partial function, <a href="#partial">12</a>, <a href="#functionscannotbevaluessotheymustbewrapped">20</a></strong><br>
<strong>path, <a href="#path">23</a>-<a href="#pathlib">24</a></strong><br>
<strong>partial function, <a href="#partial">12</a>, <a href="#userdefinedfunctionscannotbevaluessotheymustbewrapped">20</a></strong><br>
<strong>path, <a href="#path">23</a>-<a href="#direntry">24</a></strong><br>
<strong>pickle module, <a href="#pickle">25</a></strong><br>
<strong>pillow library, <a href="#image">39</a></strong><br>
<strong>plotting, <a href="#plot">34</a>, <a href="#plotly">47</a></strong><br>

2
pdf/index_for_pdf_print.html

@ -34,7 +34,7 @@
<strong>coroutine, 33</strong><br>
<strong>counter, 2, 4, 12, 17</strong><br>
<strong>csv module, 26, 34, 46</strong><br>
<strong>curses module, 34</strong><br>
<strong>curses module, 33, 34</strong><br>
<strong>cython, 49</strong> </p>
<h3 id="d">D</h3>
<p><strong>dataclasses module, 12, 15</strong><br>

Loading…
Cancel
Save