Skip to content

Commit cb619b2

Browse files
committed
Update sphinx, remove custom theme and adjust rtd-theme
1 parent 54d535e commit cb619b2

File tree

6 files changed

+56
-17
lines changed

6 files changed

+56
-17
lines changed

.gitmodules

-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
[submodule "sphinx_theme"]
2-
path = source/_themes/cryptomator_theme
3-
url = https://github.com/cryptomator/sphinx_rtd_theme.git

requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
sphinx==3.5.4
2-
sphinx_rtd_theme==0.5.2
1+
sphinx==6.1.3
2+
sphinx_rtd_theme==1.1.1

source/_static/css/overrides.css

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/** css/overrides.css
2+
This is bound to the sphinx-rtd-theme version defined in requirements.txt
3+
4+
For documentation about the rtd-theme, see https://docs.readthedocs.io/en/stable/guides/adding-custom-css.html
5+
**/
6+
7+
/* This line is theme specific - it includes the base theme CSS */
8+
@import 'theme.css'; /* for the Read the Docs theme */
9+
10+
.wy-menu-vertical header, .wy-menu-vertical p.caption {
11+
color: #49B04A;
12+
line-height: 32px;
13+
font-weight: 700;
14+
text-transform: uppercase;
15+
font-size: 85%;
16+
white-space: nowrap;
17+
}
18+
a:hover {
19+
color: #66CC68;
20+
}
21+
a {
22+
color: #49b04a;
23+
cursor: pointer;
24+
}
25+
.wy-side-nav-search input[type="text"] {
26+
width: 100%;
27+
border-radius: 50px;
28+
padding: 6px 12px;
29+
border-color: #407F41;
30+
}
31+
32+
.rst-content .note .admonition-title, .rst-content .note .wy-alert-title, .rst-content .seealso .admonition-title, .rst-content .seealso .wy-alert-title, .rst-content .wy-alert-info.admonition-todo .admonition-title, .rst-content .wy-alert-info.admonition-todo .wy-alert-title, .rst-content .wy-alert-info.admonition .admonition-title, .rst-content .wy-alert-info.admonition .wy-alert-title, .rst-content .wy-alert-info.attention .admonition-title, .rst-content .wy-alert-info.attention .wy-alert-title, .rst-content .wy-alert-info.caution .admonition-title, .rst-content .wy-alert-info.caution .wy-alert-title, .rst-content .wy-alert-info.danger .admonition-title, .rst-content .wy-alert-info.danger .wy-alert-title, .rst-content .wy-alert-info.error .admonition-title, .rst-content .wy-alert-info.error .wy-alert-title, .rst-content .wy-alert-info.hint .admonition-title, .rst-content .wy-alert-info.hint .wy-alert-title, .rst-content .wy-alert-info.important .admonition-title, .rst-content .wy-alert-info.important .wy-alert-title, .rst-content .wy-alert-info.tip .admonition-title, .rst-content .wy-alert-info.tip .wy-alert-title, .rst-content .wy-alert-info.warning .admonition-title, .rst-content .wy-alert-info.warning .wy-alert-title, .rst-content .wy-alert.wy-alert-info .admonition-title, .wy-alert.wy-alert-info .rst-content .admonition-title, .wy-alert.wy-alert-info .wy-alert-title {
33+
background: #66CC68;
34+
}
35+
36+
.rst-content .note, .rst-content .seealso, .rst-content .wy-alert-info.admonition, .rst-content .wy-alert-info.admonition-todo, .rst-content .wy-alert-info.attention, .rst-content .wy-alert-info.caution, .rst-content .wy-alert-info.danger, .rst-content .wy-alert-info.error, .rst-content .wy-alert-info.hint, .rst-content .wy-alert-info.important, .rst-content .wy-alert-info.tip, .rst-content .wy-alert-info.warning, .wy-alert.wy-alert-info {
37+
background: #EBF5EB;
38+
}

source/_themes/cryptomator_theme

-1
This file was deleted.

source/conf.py

+16-11
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
author = 'Cryptomator Contributors'
2525

2626
# The short X.Y version
27-
version = '1.6'
27+
version = '1.7'
2828
# The full version, including alpha/beta/rc tags
29-
release = '1.6.0'
29+
release = '1.7.0'
3030

3131

3232
# -- General configuration ---------------------------------------------------
@@ -60,12 +60,12 @@
6060
#
6161
# This is also used if you do content translation via gettext catalogs.
6262
# Usually you set "language" from the command line for these cases.
63-
language = None
63+
language = 'en'
6464

6565
# List of patterns, relative to source directory, that match files and
6666
# directories to ignore when looking for source files.
6767
# This pattern also affects html_static_path and html_extra_path.
68-
exclude_patterns = ['_themes/*']
68+
#exclude_patterns = ['_themes/*']
6969

7070
# The name of the Pygments (syntax highlighting) style to use.
7171
pygments_style = None
@@ -77,7 +77,7 @@
7777
# a list of builtin themes.
7878
#
7979
html_theme = 'sphinx_rtd_theme'
80-
html_theme_path = ['_themes/cryptomator_theme', ]
80+
#html_theme_path = ['_themes/cryptomator_theme', ]
8181

8282
# Theme options are theme-specific and customize the look and feel of a theme
8383
# further. For a list of options available for each theme, see the
@@ -91,17 +91,22 @@
9191
'includehidden': True,
9292
'titles_only': False,
9393
'logo_only' : True,
94+
'style_nav_header_background': '#49B04A',
95+
'display_version': True,
96+
'prev_next_buttons_location': 'bottom',
97+
'style_external_links': True,
98+
'vcs_pageview_mode': '',
9499
}
95100

96101
# Add any paths that contain custom static files (such as style sheets) here,
97102
# relative to this directory. They are copied after the builtin static files,
98103
# so a file named "default.css" will overwrite the builtin "default.css".
99104
#
100-
#html_static_path = ['_static']
101-
#html_css_files = [
102-
# 'css/custom.css',
103-
#]
104-
#html_style = 'css/custom.css'
105+
html_static_path = ['_static']
106+
html_css_files = [
107+
'css/custom.css',
108+
]
109+
html_style = 'css/overrides.css'
105110

106111
# Custom sidebar templates, must be a dictionary that maps document names
107112
# to template names.
@@ -197,4 +202,4 @@
197202
# -- Options for todo extension ----------------------------------------------
198203

199204
# If true, `todo` and `todoList` produce output, else they produce nothing.
200-
todo_include_todos = True
205+
todo_include_todos = True
29.3 KB
Loading

0 commit comments

Comments
 (0)