From d73c40e8f345a995ff9959e434971c5ca77c0c3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Thu, 2 Jul 2020 11:46:45 +0200 Subject: [PATCH] Added Cython to ToC --- README.md | 2 +- index.html | 2 +- parse.js | 2 +- web/script_2.js | 11 ++++++----- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index d1e0326..1946e2b 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Contents **   ** **5. Data:** **             ** **[`JSON`](#json)**__,__ **[`Pickle`](#pickle)**__,__ **[`CSV`](#csv)**__,__ **[`SQLite`](#sqlite)**__,__ **[`Bytes`](#bytes)**__,__ **[`Struct`](#struct)**__,__ **[`Array`](#array)**__,__ **[`Memory_View`](#memory-view)**__,__ **[`Deque`](#deque)**__.__ **   ** **6. Advanced:** **   ** **[`Threading`](#threading)**__,__ **[`Operator`](#operator)**__,__ **[`Introspection`](#introspection)**__,__ **[`Metaprograming`](#metaprograming)**__,__ **[`Eval`](#eval)**__,__ **[`Coroutines`](#coroutines)**__.__ **   ** **7. Libraries:** **      ** **[`Progress_Bar`](#progress-bar)**__,__ **[`Plot`](#plot)**__,__ **[`Table`](#table)**__,__ **[`Curses`](#curses)**__,__ **[`Logging`](#logging)**__,__ **[`Scraping`](#scraping)**__,__ **[`Web`](#web)**__,__ **[`Profile`](#profiling)**__,__ -**                                 ** **[`NumPy`](#numpy)**__,__ **[`Image`](#image)**__,__ **[`Audio`](#audio)**__,__ **[`Games`](#pygame)**__,__ **[`Data`](#pandas)**__.__ +**                                 ** **[`NumPy`](#numpy)**__,__ **[`Image`](#image)**__,__ **[`Audio`](#audio)**__,__ **[`Games`](#pygame)**__,__ **[`Data`](#pandas)**__,__ **[`Cython`](#cython)**__.__ Main diff --git a/index.html b/index.html index ac3aac6..288ff4d 100644 --- a/index.html +++ b/index.html @@ -231,7 +231,7 @@ pre.prettyprint { '5. Data': [JSON, Pickle, CSV, SQLite, Bytes, Struct, Array, Memory_View, Deque], '6. Advanced': [Threading, Operator, Introspection, Metaprograming, Eval, Coroutine], '7. Libraries': [Progress_Bar, Plot, Table, Curses, Logging, Scraping, Web, Profile, - NumPy, Image, Audio, Games, Data] + NumPy, Image, Audio, Games, Data, Cython] } diff --git a/parse.js b/parse.js index 7bbb41d..907e9c5 100755 --- a/parse.js +++ b/parse.js @@ -26,7 +26,7 @@ const TOC = ' \'5. Data\': [JSON, Pickle, CSV, SQLite, Bytes, Struct, Array, Memory_View, Deque],\n' + ' \'6. Advanced\': [Threading, Operator, Introspection, Metaprograming, Eval, Coroutine],\n' + ' \'7. Libraries\': [Progress_Bar, Plot, Table, Curses, Logging, Scraping, Web, Profile,\n' + - ' NumPy, Image, Audio, Games, Data]\n' + + ' NumPy, Image, Audio, Games, Data, Cython]\n' + '}\n' + '\n'; diff --git a/web/script_2.js b/web/script_2.js index 4731a6c..f360f08 100644 --- a/web/script_2.js +++ b/web/script_2.js @@ -7,7 +7,7 @@ const TOC = ' \'5. Data\': [JSON, Pickle, CSV, SQLite, Bytes, Struct, Array, Memory_View, Deque],\n' + ' \'6. Advanced\': [Threading, Operator, Introspection, Metaprograming, Eval, Coroutine],\n' + ' \'7. Libraries\': [Progress_Bar, Plot, Table, Curses, Logging, Scraping, Web, Profile,\n' + - ' NumPy, Image, Audio, Games, Data]\n' + + ' NumPy, Image, Audio, Games, Data, Cython]\n' + '}\n'; const TOC_MOBILE = @@ -35,7 +35,8 @@ const TOC_MOBILE = ' \'7. Libraries\': [Progress_Bar, Plot, Table,\n' + ' Curses, Logging, Scraping,\n' + ' Web, Profile, NumPy,\n' + - ' Image, Audio, Games, Data]\n' + + ' Image, Audio, Games, Data,\n' + + ' Cython]\n' + '}\n'; @@ -56,14 +57,14 @@ if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine var TOC_SCREEN_WIDTH_CUTOFF = 667 if (isMobile && window.screen.width < TOC_SCREEN_WIDTH_CUTOFF) { - $(`code:contains(ToC)`).html(TOC_MOBILE); + $(`code:contains(ToC)`).html(TOC_MOBILE).css("line-height", "1.4em"); } function updateToc() { if (isMobile && window.screen.width < TOC_SCREEN_WIDTH_CUTOFF) { - $(`code:contains(ToC)`).html(TOC_MOBILE); + $(`code:contains(ToC)`).html(TOC_MOBILE).css("line-height", "1.4em"); } else { - $(`code:contains(ToC)`).html(TOC); + $(`code:contains(ToC)`).html(TOC).css("line-height", "1em"); } } window.addEventListener("orientationchange", updateToc, false);