From 975da0c2645fa5a0b4868bc3bdb6b7a5d7ac9a1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 31 Dec 2024 20:14:11 +0100 Subject: [PATCH] Removed links to PDF --- README.md | 3 +-- index.html | 9 ++++----- parse.js | 5 ++--- pdf/README.md | 1 - 4 files changed, 7 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index dbbd3fa..284a7d0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ Comprehensive Python Cheatsheet =============================== -[Download text file](https://raw.githubusercontent.com/gto76/python-cheatsheet/main/README.md), [Buy PDF](https://transactions.sendowl.com/products/78175486/4422834F/view), [Fork me on GitHub](https://github.com/gto76/python-cheatsheet) or [Check out FAQ](https://github.com/gto76/python-cheatsheet/wiki/Frequently-Asked-Questions). +[Download text file](https://raw.githubusercontent.com/gto76/python-cheatsheet/main/README.md), [Fork me on GitHub](https://github.com/gto76/python-cheatsheet) or [Check out FAQ](https://github.com/gto76/python-cheatsheet/wiki/Frequently-Asked-Questions). ![Monty Python](web/image_888.jpeg) @@ -3591,7 +3591,6 @@ if __name__ == '__main__': Index ----- -* **Only available in the [PDF](https://transactions.sendowl.com/products/78175486/4422834F/view).** * **Ctrl+F / ⌘F is usually sufficient.** * **Searching `'#'` on the [webpage](https://gto76.github.io/python-cheatsheet/) will limit the search to the titles.** * **Click on the title's `'πŸ”—'` to get a link to its section.** diff --git a/index.html b/index.html index b22cdb9..ad587b8 100644 --- a/index.html +++ b/index.html @@ -55,11 +55,11 @@ <body> <header> - <aside>December 27, 2024</aside> + <aside>December 31, 2024</aside> <a href="https://gto76.github.io" rel="author">Jure Ε orn</a> </header> - <div><h1 id="comprehensivepythoncheatsheet">Comprehensive Python Cheatsheet</h1><p class="banner"><sup><a href="https://raw.githubusercontent.com/gto76/python-cheatsheet/main/README.md">Download text file</a>, <a href="https://transactions.sendowl.com/products/78175486/4422834F/view">Buy PDF</a>, <a href="https://github.com/gto76/python-cheatsheet">Fork me on GitHub</a>, <a href="https://github.com/gto76/python-cheatsheet/wiki/Frequently-Asked-Questions">Check out FAQ</a> or <a href="index.html?theme=dark3">Switch to dark theme</a>. + <div><h1 id="comprehensivepythoncheatsheet">Comprehensive Python Cheatsheet</h1><p class="banner"><sup><a href="https://raw.githubusercontent.com/gto76/python-cheatsheet/main/README.md">Download text file</a>, <a href="https://github.com/gto76/python-cheatsheet">Fork me on GitHub</a>, <a href="https://github.com/gto76/python-cheatsheet/wiki/Frequently-Asked-Questions">Check out FAQ</a> or <a href="index.html?theme=dark3">Switch to dark theme</a>. </sup></p><p class="banner" style="margin-bottom: 20px; padding-bottom: 7px;"><img src="web/image_888.jpeg" alt="Monty Python"></p><script> // Changes the image and link to theme if URL ends with "index.html?theme=dark". if (window.location.search.search(/[?&]theme=dark/) !== -1) { @@ -2925,15 +2925,14 @@ $ deactivate <span class="hljs-comment"># Deactivates the active </code></pre></div> -<div><h2 id="index"><a href="#index" name="index">#</a>Index</h2><ul><li><strong>Only available in the <a href="https://transactions.sendowl.com/products/78175486/4422834F/view">PDF</a>.</strong></li> -<li><strong>Ctrl+F / ⌘F is usually sufficient.</strong></li> +<div><h2 id="index"><a href="#index" name="index">#</a>Index</h2><ul><li><strong>Ctrl+F / ⌘F is usually sufficient.</strong></li> <li><strong>Searching <code class="python hljs"><span class="hljs-string">'#<title>'</span></code> will limit the search to the titles.</strong></li> <li><strong>Click on the title's <code class="python hljs"><span class="hljs-string">'#'</span></code> to get a link to its section.</strong></li> </ul></div> <footer> - <aside>December 27, 2024</aside> + <aside>December 31, 2024</aside> <a href="https://gto76.github.io" rel="author">Jure Ε orn</a> </footer> diff --git a/parse.js b/parse.js index 7ab2986..eead0c9 100755 --- a/parse.js +++ b/parse.js @@ -334,7 +334,6 @@ const CYTHON_3 = '<span class="hljs-keyword">cdef</span> <span class="hljs-keyword">enum</span> <enum_name>: <member_name>, <member_name>, ...\n'; const INDEX = - '<li><strong>Only available in the <a href="https://transactions.sendowl.com/products/78175486/4422834F/view">PDF</a>.</strong></li>\n' + '<li><strong>Ctrl+F / ⌘F is usually sufficient.</strong></li>\n' + '<li><strong>Searching <code class="python hljs"><span class="hljs-string">\'#<title>\'</span></code> will limit the search to the titles.</strong></li>\n' + '<li><strong>Click on the title\'s <code class="python hljs"><span class="hljs-string">\'#\'</span></code> to get a link to its section.</strong></li>\n'; @@ -670,7 +669,7 @@ const DIAGRAM_18_B = "┃ β”‚ c 11 13 β”‚ c 2 2 β”‚ β”‚ ┃\n" + "┗━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━┷━━━━━━━━━━━━━┷━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━┛\n"; -const MENU = '<a href="https://raw.githubusercontent.com/gto76/python-cheatsheet/main/README.md">Download text file</a>, <a href="https://transactions.sendowl.com/products/78175486/4422834F/view">Buy PDF</a>, <a href="https://github.com/gto76/python-cheatsheet">Fork me on GitHub</a>, <a href="https://github.com/gto76/python-cheatsheet/wiki/Frequently-Asked-Questions">Check out FAQ</a> or <a href="index.html?theme=dark3">Switch to dark theme</a>.\n'; +const MENU = '<a href="https://raw.githubusercontent.com/gto76/python-cheatsheet/main/README.md">Download text file</a>, <a href="https://github.com/gto76/python-cheatsheet">Fork me on GitHub</a>, <a href="https://github.com/gto76/python-cheatsheet/wiki/Frequently-Asked-Questions">Check out FAQ</a> or <a href="index.html?theme=dark3">Switch to dark theme</a>.\n'; const DARK_THEME_SCRIPT = '<script>\n' + @@ -854,7 +853,7 @@ function fixHighlights() { $(`code:contains(cdef <ctype/type> <var_name> [= <obj>])`).html(CYTHON_1); $(`code:contains(cdef class <class_name>:)`).html(CYTHON_2); $(`code:contains(cdef enum <enum_name>: <member_name>, <member_name>, ...)`).html(CYTHON_3); - $(`ul:contains(Only available in)`).html(INDEX); + $(`ul:contains(Ctrl+F / ⌘F is usually sufficient.)`).html(INDEX); } function preventPageBreaks() { diff --git a/pdf/README.md b/pdf/README.md index 6e806f1..3c6d59b 100644 --- a/pdf/README.md +++ b/pdf/README.md @@ -1,6 +1,5 @@ How To Create PDF (on macOS) ============================ -**PDF file can also be purchased here: https://transactions.sendowl.com/products/78175486/4422834F/view** Setup