|
14 | 14 | import sys |
15 | 15 |
|
16 | 16 | sys.path.insert(0, os.path.abspath("..")) |
| 17 | +import DECIMER |
| 18 | +from datetime import datetime |
17 | 19 |
|
18 | 20 | # -- Project information ----------------------------------------------------- |
19 | 21 |
|
20 | 22 | 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 | +) |
22 | 28 | 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 | +) |
27 | 34 |
|
28 | 35 | # -- General configuration --------------------------------------------------- |
29 | 36 |
|
|
78 | 85 | # further. For a list of options available for each theme, see the |
79 | 86 | # documentation. |
80 | 87 | # |
81 | | -# Material theme options (see theme.conf for more information) |
82 | 88 | html_theme_options = { |
83 | 89 | "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", |
87 | 108 | }, |
88 | 109 | "sidebar_hide_name": True, |
89 | 110 | "navigation_with_keys": True, |
90 | 111 | "top_of_page_button": "edit", |
91 | 112 | } |
92 | 113 |
|
| 114 | + |
93 | 115 | # Add any paths that contain custom static files (such as style sheets) here, |
94 | 116 | # relative to this directory. They are copied after the builtin static files, |
95 | 117 | # so a file named "default.css" will overwrite the builtin "default.css". |
|
0 commit comments