Skip to content

Commit 7be1e9f

Browse files
authored
Merge pull request Kohulan#63 from Kohulan/development
fix: read the docs theme
2 parents 1e5cab6 + f6732e7 commit 7be1e9f

File tree

1 file changed

+31
-9
lines changed

1 file changed

+31
-9
lines changed

docs/conf.py

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,23 @@
1414
import sys
1515

1616
sys.path.insert(0, os.path.abspath(".."))
17+
import DECIMER
18+
from datetime import datetime
1719

1820
# -- Project information -----------------------------------------------------
1921

2022
project = "DECIMER-Image_Transformer"
21-
copyright = "2023, Kohulan Rajan"
23+
version = DECIMER.__version__
24+
current_year = datetime.today().year
25+
copyright = "2019-{}, Kohulan Rajan at the Friedrich Schiller University Jena".format(
26+
current_year
27+
)
2228
author = "Kohulan Rajan"
23-
24-
# The full version, including alpha/beta/rc tags
25-
release = "2.3.0"
26-
29+
rst_prolog = """
30+
.. |current_year| replace:: {}
31+
""".format(
32+
current_year
33+
)
2734

2835
# -- General configuration ---------------------------------------------------
2936

@@ -78,18 +85,33 @@
7885
# further. For a list of options available for each theme, see the
7986
# documentation.
8087
#
81-
# Material theme options (see theme.conf for more information)
8288
html_theme_options = {
8389
"light_css_variables": {
84-
"color-brand-primary": "red",
85-
"color-brand-content": "#CC3333",
86-
"color-admonition-background": "orange",
90+
"color-brand-primary": "#E37B74",
91+
"color-brand-content": "#E37B74",
92+
"color-code-background": "#F8F8F8",
93+
"color-code-border": "#E37B74",
94+
"color-admonition-background": "#FEECEC",
95+
"color-link": "#E37B74",
96+
"color-pre-background": "#F8F8F8",
97+
"color-pre-border": "#E37B74",
98+
},
99+
"dark_css_variables": {
100+
"color-brand-primary": "#E37B74",
101+
"color-brand-content": "#E37B74",
102+
"color-code-background": "#222222",
103+
"color-code-border": "#E37B74",
104+
"color-admonition-background": "#331E1C",
105+
"color-link": "#E37B74",
106+
"color-pre-background": "#222222",
107+
"color-pre-border": "#E37B74",
87108
},
88109
"sidebar_hide_name": True,
89110
"navigation_with_keys": True,
90111
"top_of_page_button": "edit",
91112
}
92113

114+
93115
# Add any paths that contain custom static files (such as style sheets) here,
94116
# relative to this directory. They are copied after the builtin static files,
95117
# so a file named "default.css" will overwrite the builtin "default.css".

0 commit comments

Comments
 (0)