3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-06 14:24:08 +00:00

Update docs theme

Signed-off-by: Claire Xenia Wolf <claire@clairexen.net>
This commit is contained in:
Claire Xenia Wolf 2021-11-29 16:51:54 +01:00
parent 882d5b3a96
commit 38562a5bb9
4 changed files with 49 additions and 17 deletions

9
docs/source/conf.diff Normal file
View file

@ -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'

View file

@ -7,7 +7,7 @@ copyright ='2021 YosysHQ GmbH'
html_theme = 'press' html_theme = 'press'
html_logo = '../static/logo.png' html_logo = '../static/logo.png'
html_favicon = '../static/favico.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']} html_sidebars = {'**': ['util/searchbox.html', 'util/sidetoc.html']}
# These folders are copied to the documentation's HTML output # These folders are copied to the documentation's HTML output
@ -24,3 +24,5 @@ html_theme_options = {
('Website', 'https://www.yosyshq.com'), ('Website', 'https://www.yosyshq.com'),
], ],
} }
extensions = ['sphinx.ext.autosectionlabel']

1
docs/static/custom.css vendored Normal file
View file

@ -0,0 +1 @@
/* empty */

View file

@ -1,35 +1,55 @@
h1, h3, p.topic-title, a.current, a:hover, h1, h3, p.topic-title, .content li.toctree-l1 > a {
.content li.toctree-l1 > a { color: #d6368f !important;
color: #d6368f !important;
} }
h2, p.admonition-title, dt, h2, p.admonition-title, dt, .content li.toctree-l2 > a {
.content li.toctree-l2 > a { color: #4b72b8;
color: #4b72b8;
} }
a { a {
color: #8857a3; color: #8857a3;
} }
a.external { a.current, a:hover, a.external {
color: #d6368f; color: #d6368f !important;
text-decoration: underline; }
a.external:hover {
text-decoration: underline;
}
p {
text-align: justify;
} }
.vp-sidebar a { .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 { .vp-sidebar .toctree-l1.current a {
border-left: 0.5rem solid #6ecbd7; border-left: 0.5rem solid #6ecbd7;
} }
.vp-sidebar .toctree-l1 a.current { .vp-sidebar .toctree-l1 a.current {
border-left: 0.5rem solid #8857a3; border-left: 0.5rem solid #8857a3;
} }
.injected .rst-current-version, .injected .rst-current-version, .injected dt {
.injected dt { color: #6ecbd7 !important;
color: #6ecbd7 !important;
} }