From 38562a5bb981d353180d41f306d2defe1758bdbd Mon Sep 17 00:00:00 2001 From: Claire Xenia Wolf Date: Mon, 29 Nov 2021 16:51:54 +0100 Subject: [PATCH] Update docs theme Signed-off-by: Claire Xenia Wolf --- docs/source/conf.diff | 9 +++++++ docs/source/conf.py | 4 +++- docs/static/custom.css | 1 + docs/static/yosyshq.css | 52 ++++++++++++++++++++++++++++------------- 4 files changed, 49 insertions(+), 17 deletions(-) create mode 100644 docs/source/conf.diff create mode 100644 docs/static/custom.css diff --git a/docs/source/conf.diff b/docs/source/conf.diff new file mode 100644 index 0000000..055201d --- /dev/null +++ b/docs/source/conf.diff @@ -0,0 +1,9 @@ +--- a/docs/source/conf.py ++++ b/docs/source/conf.py +@@ -1,5 +1,5 @@ + #!/usr/bin/env python3 +-project = 'YosysHQ Docs' ++project = 'YosysHQ SBY' + author = 'YosysHQ GmbH' + copyright ='2021 YosysHQ GmbH' + diff --git a/docs/source/conf.py b/docs/source/conf.py index 7db553c..1d4cbeb 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -7,7 +7,7 @@ copyright ='2021 YosysHQ GmbH' html_theme = 'press' html_logo = '../static/logo.png' html_favicon = '../static/favico.png' -html_css_files = ['yosyshq.css'] +html_css_files = ['yosyshq.css', 'custom.css'] html_sidebars = {'**': ['util/searchbox.html', 'util/sidetoc.html']} # These folders are copied to the documentation's HTML output @@ -24,3 +24,5 @@ html_theme_options = { ('Website', 'https://www.yosyshq.com'), ], } + +extensions = ['sphinx.ext.autosectionlabel'] diff --git a/docs/static/custom.css b/docs/static/custom.css new file mode 100644 index 0000000..40a8c17 --- /dev/null +++ b/docs/static/custom.css @@ -0,0 +1 @@ +/* empty */ diff --git a/docs/static/yosyshq.css b/docs/static/yosyshq.css index e0118a8..02d2bdb 100644 --- a/docs/static/yosyshq.css +++ b/docs/static/yosyshq.css @@ -1,35 +1,55 @@ -h1, h3, p.topic-title, a.current, a:hover, -.content li.toctree-l1 > a { - color: #d6368f !important; +h1, h3, p.topic-title, .content li.toctree-l1 > a { + color: #d6368f !important; } -h2, p.admonition-title, dt, -.content li.toctree-l2 > a { - color: #4b72b8; +h2, p.admonition-title, dt, .content li.toctree-l2 > a { + color: #4b72b8; } a { - color: #8857a3; + color: #8857a3; } -a.external { - color: #d6368f; - text-decoration: underline; +a.current, a:hover, a.external { + color: #d6368f !important; +} + +a.external:hover { + text-decoration: underline; +} + +p { + text-align: justify; } .vp-sidebar a { - color: #d6368f; + color: #d6368f; +} + +.vp-sidebar li li a { + color: #4b72b8; +} + +.vp-sidebar h3 { + padding-left: 1.5rem !important; +} + +.vp-sidebar ul a { + padding-left: 1.5rem !important; +} + +.vp-sidebar ul ul a { + padding-left: 3rem !important; } .vp-sidebar .toctree-l1.current a { - border-left: 0.5rem solid #6ecbd7; + border-left: 0.5rem solid #6ecbd7; } .vp-sidebar .toctree-l1 a.current { - border-left: 0.5rem solid #8857a3; + border-left: 0.5rem solid #8857a3; } -.injected .rst-current-version, -.injected dt { - color: #6ecbd7 !important; +.injected .rst-current-version, .injected dt { + color: #6ecbd7 !important; } -- 2.30.2