From 22b1de658807e57012256046e0ebf21c651f3e92 Mon Sep 17 00:00:00 2001 From: Eugenio Parodi Date: Sun, 2 May 2021 16:31:22 +0100 Subject: [PATCH 1/2] Updated doc delivery --- Makefile | 4 ++-- docs/source/_static/theme_overrides.css | 16 +++++++++++++++- docs/source/index.rst | 5 +++-- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 4ac79aea..22adda24 100644 --- a/Makefile +++ b/Makefile @@ -42,9 +42,9 @@ buildTest: .venv deployDoc: git checkout gh-pages - rm -rf *.inv *.html *.js _* autogen.* + rm -rf *.inv *.html *.js _* autogen.* tutorial cp -a docs/build/html/* . - find *.html *.inv *.js autogen.TermTk _* | xargs git add + find *.html *.inv *.js autogen.TermTk _* tutorial | xargs git add git commit -m "Doc Updated" git push origin gh-pages git checkout main diff --git a/docs/source/_static/theme_overrides.css b/docs/source/_static/theme_overrides.css index 0a5d9ac7..dc8140ff 100644 --- a/docs/source/_static/theme_overrides.css +++ b/docs/source/_static/theme_overrides.css @@ -19,8 +19,9 @@ overflow: visible !important; } + /* Piercecco's Workaround */ .wy-menu p { - color: #55a5d9; + color: #66a5d9; height: 32px; line-height: 32px; padding: 0 1.618em; @@ -31,5 +32,18 @@ font-size: 85%; white-space: nowrap; } + /* Piercecco's Workaround */ + .toctree-wrapper p { + color: #175ba9; + height: 32px; + line-height: 32px; + padding: 0; + margin: 12px 0 0; + display: block; + font-weight: 700; + text-transform: uppercase; + font-size: 85%; + white-space: nowrap; + } } diff --git a/docs/source/index.rst b/docs/source/index.rst index cf9b339d..fcab6324 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -17,8 +17,9 @@ Welcome to pyTermTk's documentation! Intro ----- -pyTermTk_ is a Text-based user interface library (TUI_) -Evolved from the discontinued project pyCuT_ and inspired by a mix of Qt5_, GTK_, and tkinter_ api definition with a touch of personal interpretation +| pyTermTk_ is a Text-based user interface library (TUI_) +| Evolved from the discontinued project pyCuT_ and inspired by +| a mix of Qt5_, GTK_, and tkinter_ api definition with a touch of personal interpretation .. toctree:: From 207795fc3711ac46c16480f113e0e13b345143a8 Mon Sep 17 00:00:00 2001 From: Eugenio Parodi Date: Sun, 2 May 2021 16:37:26 +0100 Subject: [PATCH 2/2] Fixed some tutorial Links --- tutorial/001-helloworld.rst | 4 ++-- tutorial/002-layout.rst | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tutorial/001-helloworld.rst b/tutorial/001-helloworld.rst index 45688426..3a47cba0 100644 --- a/tutorial/001-helloworld.rst +++ b/tutorial/001-helloworld.rst @@ -23,7 +23,7 @@ Examples Example 1 --------- -Following is the code to execute `helloworld.001.py `_ in pyTermTk_: +Following is the code to execute `helloworld.001.py `_ in pyTermTk_: .. code:: python @@ -42,7 +42,7 @@ The above code produces the following output Example 2 - Your first Window ----------------------------- -Following is the code to execute `helloworld.002.py `_ in pyTermTk_: +Following is the code to execute `helloworld.002.py `_ in pyTermTk_: .. code:: python diff --git a/tutorial/002-layout.rst b/tutorial/002-layout.rst index 354e1787..196a71a2 100644 --- a/tutorial/002-layout.rst +++ b/tutorial/002-layout.rst @@ -1,11 +1,11 @@ .. _pyTermTk: https://github.com/ceccopierangiolieugenio/pyTermTk -.. _windows: https://ceccopierangiolieugenio.github.io/pyTermTk/TTkWidgets/window.html -.. _TTkLabel: https://ceccopierangiolieugenio.github.io/pyTermTk/autogen.TermTk/TermTk.TTkWidgets.label.html#TermTk.TTkWidgets.label.TTkLabel -.. _TTkLayouts: https://ceccopierangiolieugenio.github.io/pyTermTk/TTkLayouts/index.html -.. _TTkLayout: https://ceccopierangiolieugenio.github.io/pyTermTk/TTkLayouts/layout.html#TermTk.TTkLayouts.layout.TTkLayout -.. _TTkHBoxLayout: https://ceccopierangiolieugenio.github.io/pyTermTk/TTkLayouts/boxlayout.html#TermTk.TTkLayouts.boxlayout.TTkHBoxLayout -.. _TTkVBoxLayout: https://ceccopierangiolieugenio.github.io/pyTermTk/TTkLayouts/boxlayout.html#TermTk.TTkLayouts.boxlayout.TTkVBoxLayout -.. _TTkGridLayout: https://ceccopierangiolieugenio.github.io/pyTermTk/TTkLayouts/gridlayout.html#TermTk.TTkLayouts.gridlayout.TTkGridLayout +.. _windows: https://ceccopierangiolieugenio.github.io/pyTermTk/autogen.TermTk/TermTk.TTkWidgets.window.html +.. _TTkLabel: https://ceccopierangiolieugenio.github.io/pyTermTk/autogen.TermTk/TermTk.TTkWidgets.label.html +.. _TTkLayouts: https://ceccopierangiolieugenio.github.io/pyTermTk/autogen.TermTk/TermTk.TTkLayouts.html +.. _TTkLayout: https://ceccopierangiolieugenio.github.io/pyTermTk/autogen.TermTk/TermTk.TTkLayouts.layout.html#ttklayout +.. _TTkHBoxLayout: https://ceccopierangiolieugenio.github.io/pyTermTk/autogen.TermTk/TermTk.TTkLayouts.boxlayout.html#ttkhboxlayout +.. _TTkVBoxLayout: https://ceccopierangiolieugenio.github.io/pyTermTk/autogen.TermTk/TermTk.TTkLayouts.boxlayout.html#ttkvboxlayout +.. _TTkGridLayout: https://ceccopierangiolieugenio.github.io/pyTermTk/autogen.TermTk/TermTk.TTkLayouts.gridlayout.html#ttkgridlayout .. _Layout Example: https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tutorial/layout/example1.simple.layout.py .. _VBox Example: https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tutorial/layout/example2.simple.vbox.py