Update docs theme
authorClaire Xenia Wolf <claire@clairexen.net>
Mon, 29 Nov 2021 15:51:54 +0000 (16:51 +0100)
committerClaire Xenia Wolf <claire@clairexen.net>
Mon, 29 Nov 2021 15:51:54 +0000 (16:51 +0100)
Signed-off-by: Claire Xenia Wolf <claire@clairexen.net>
docs/source/conf.diff [new file with mode: 0644]
docs/source/conf.py
docs/static/custom.css [new file with mode: 0644]
docs/static/yosyshq.css

diff --git a/docs/source/conf.diff b/docs/source/conf.diff
new file mode 100644 (file)
index 0000000..055201d
--- /dev/null
@@ -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'
index 7db553c3dbac7372dae034732d63fd1a37e8feeb..1d4cbeb6e3a458d9a893ed97240ea14aaa6c5c56 100644 (file)
@@ -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 (file)
index 0000000..40a8c17
--- /dev/null
@@ -0,0 +1 @@
+/* empty */
index e0118a8a4e42333a35ad1c4d28cbe52dc9a1c7e4..02d2bdb505da86b8fe5af40c55061ad193faa779 100644 (file)
@@ -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;
 }