Skip to content

Commit e1e46a3

Browse files
authored
Merge pull request #144 from DoubleML/dev
Update website, change to new logo
2 parents aa6585c + e62abb6 commit e1e46a3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+11570
-3631
lines changed

doc/_static/css/custom.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/* PYDATA THEME */
2+
html[data-theme="dark"] img:not(.only-dark):not(.dark-light) {
3+
filter: brightness(1) contrast(1) !important;
4+
}
5+
6+
html[data-theme="dark"] .bd-content img:not(.only-dark):not(.dark-light) {
7+
background: none !important;
8+
border-radius: 0;
9+
}
10+
11+
html[data-theme="light"] {
12+
--pst-color-primary: #0063BC;
13+
}
14+
15+
html[data-theme="dark"] {
16+
--pst-color-primary: #0092ff;
17+
}
18+
19+
/* BOOTSTRAP */
20+
.card {
21+
background: none !important;
22+
}

doc/_static/logo.png

181 KB
Loading

doc/_static/logo_dark.png

241 KB
Loading

doc/_templates/logo.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
11
<p class="logo" style="text-align:center;"><a href="{{ pathto(master_doc)|e }}">
22
<img class="logo" src="{{ pathto('logo.png', 1)|e }}" alt="Logo" width="65%" height="65%">
33
</a></p>
4+
5+
<script type="text/javascript">
6+
// Change the logo depending on the theme
7+
var logo = document.querySelector('img.logo');
8+
var observer = new MutationObserver(function(mutations) {
9+
const dark = document.documentElement.dataset.theme == 'dark';
10+
if (dark) {
11+
logo.src = "{{ pathto('logo_dark.png', 1)|e }}";
12+
} else {
13+
logo.src = "{{ pathto('logo.png', 1)|e }}";
14+
}
15+
});
16+
observer.observe(document.documentElement, {attributes: true, attributeFilter: ['data-theme']});
17+
</script>
Lines changed: 3 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,5 @@
11
<style>
2-
3-
.toc-entry {
4-
list-style: none;
5-
margin-left: 0em;
6-
min-height: 50px;
7-
border-left: 2px solid rgba(var(--pst-color-text-base), 1);
8-
padding: 0 0 50px 0px;
9-
position: relative;
10-
}
11-
.toc-entry:last-child{
12-
border-left: 0;
13-
left: 2px;
14-
}
15-
16-
.toc-entry::after{
17-
border-left: 0;
18-
position: absolute;
19-
left: -8px;
20-
top: 0px;
21-
content: " ";
22-
border: 2px solid rgba(255, 255, 255, 1);
23-
border-radius: 500%;
24-
background: rgba(var(--pst-color-toc-link-active), 1);
25-
height: 15px;
26-
width: 15px;
27-
}
28-
29-
.toc-entry:hover::after {
30-
background: rgba(var(--pst-color-link-hover), 1);
31-
transition: all 200ms ease-in-out;
32-
}
33-
34-
.toc-entry > .nav-link {
35-
position: relative;
36-
font-size: small;
37-
font-weight: 600;
38-
text-align: left;
39-
margin: 0;
40-
top: -5px;
41-
color: rgba(var(--pst-color-text-base), 1);
42-
}
43-
44-
.toc-entry > .nav-link.active {
45-
color: rgba(255, 255, 255, 1);
46-
font-size: medium;
47-
background-color: rgba(var(--pst-color-toc-link-active), 1);
48-
border-bottom-right-radius: 20px;
49-
border-top-right-radius: 20px;
50-
border-left: 0;
51-
margin-left: 2px;
52-
padding-right: 15px;
53-
top: -7px;
54-
transition: background-color 200ms ease-in-out, color 200ms ease-in-out, border 200ms ease-in-out, font-size 200ms ease-in-out;
55-
}
56-
2+
.toc-entry {
3+
padding-top: 0.5em;
4+
}
575
</style>
58-

doc/api/api.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _python_api:
2+
13
API reference
24
=============
35

doc/conf.py

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
'nbsphinx',
4242
'sphinx_gallery.load_style',
4343
'sphinx_copybutton',
44-
'sphinx_panels',
44+
'sphinx_design',
4545
'jupyter_sphinx',
4646
]
4747

@@ -72,10 +72,11 @@
7272
html_theme_options = {
7373
'github_url': 'https://github.com/DoubleML/doubleml-for-py',
7474
'navigation_with_keys': False,
75+
"header_links_before_dropdown": 6,
7576
}
7677

7778
# html_logo = '../img/logo.png'
78-
html_extra_path = ['../img/logo.png']
79+
html_extra_path = ['../img/logo.png', '../img/logo_dark.png']
7980
html_favicon = '../img/favicon.ico'
8081

8182
html_sidebars = {'**': ['logo.html',
@@ -93,6 +94,7 @@
9394
# relative to this directory. They are copied after the builtin static files,
9495
# so a file named "default.css" will overwrite the builtin "default.css".
9596
html_static_path = ['_static']
97+
html_css_files = ['css/custom.css']
9698

9799
# -- Extension configuration -------------------------------------------------
98100

@@ -125,18 +127,36 @@
125127
}
126128

127129
linkcheck_ignore = [
128-
'https://doi.org/10.1093/ectj/utaa001', # Valid DOI; Causes 403 Client Error: Forbidden for url:...
129-
'https://doi.org/10.1111/ectj.12097', # Valid DOI; Causes 403 Client Error: Forbidden for url:...
130-
'https://doi.org/10.2307/2171802', # Valid DOI; Causes 403 Client Error: Forbidden for url:...
131-
'https://doi.org/10.2307/1912705', # Valid DOI; Causes 403 Client Error: Forbidden for url:...
132-
'https://doi.org/10.1093/ectj/utaa027', # Valid DOI; Causes 403 Client Error: Forbidden for url:...
133-
'https://doi.org/10.1111/rssb.12026', # Valid DOI; Causes 403 Client Error: Forbidden for url:...
134-
'https://doi.org/10.1111/rssa.12623', # Valid DOI; Causes 403 Client Error: Forbidden for url:...
135-
'https://doi.org/10.1146/annurev-economics-012315-015826', # Valid DOI; Causes 403 Client Error: Forbidden for url:...
136-
'https://doi.org/10.1109/TIT.2014.2343629', # Valid DOI, Causes 418 Client Error: unknown for url:...
137-
'https://doi.org/10.1093/ectj/utaa001', # Valid DOI; Causes 403 Client Error: Forbidden for url:...
138-
'https://doi.org/10.1111/0034-6527.00321', # Valid DOI; Causes 403 Client Error: Forbidden for url:...
139-
'https://doi.org/10.1016/j.jeconom.2020.06.003', # Valid DOI; Causes 403 Client Error: Forbidden for url:...
130+
# Valid DOI; Causes 403 Client Error: Forbidden for url:...
131+
'https://doi.org/10.1093/ectj/utaa001',
132+
# Valid DOI; Causes 403 Client Error: Forbidden for url:...
133+
'https://doi.org/10.1111/ectj.12097',
134+
# Valid DOI; Causes 403 Client Error: Forbidden for url:...
135+
'https://doi.org/10.2307/2171802',
136+
# Valid DOI; Causes 403 Client Error: Forbidden for url:...
137+
'https://doi.org/10.2307/1912705',
138+
# Valid DOI; Causes 403 Client Error: Forbidden for url:...
139+
'https://doi.org/10.1093/ectj/utaa027',
140+
# Valid DOI; Causes 403 Client Error: Forbidden for url:...
141+
'https://doi.org/10.1111/rssb.12026',
142+
# Valid DOI; Causes 403 Client Error: Forbidden for url:...
143+
'https://doi.org/10.1111/rssa.12623',
144+
# Valid DOI; Causes 403 Client Error: Forbidden for url:...
145+
'https://doi.org/10.1146/annurev-economics-012315-015826',
146+
# Valid DOI, Causes 418 Client Error: unknown for url:...
147+
'https://doi.org/10.1109/TIT.2014.2343629',
148+
# Valid DOI; Causes 403 Client Error: Forbidden for url:...
149+
'https://doi.org/10.1093/ectj/utaa001',
150+
# Valid DOI; Causes 403 Client Error: Forbidden for url:...
151+
'https://doi.org/10.1111/0034-6527.00321',
152+
# Valid DOI; Causes 403 Client Error: Forbidden for url:...
153+
'https://doi.org/10.1016/j.jeconom.2020.06.003',
154+
# Valid DOI; Causes 403 Client Error: Forbidden for url:...
155+
'https://doi.org/10.1080/07350015.2021.1895815',
156+
# Valid DOI; Causes 403 Client Error: Forbidden for url:...
157+
'https://doi.org/10.1198/jbes.2010.07136',
158+
# Pipelines notebook has to be reworked
159+
'https://mlr3book.mlr-org.com/pipelines.html',
140160
]
141161

142162
# To execute R code via jupyter-execute one needs to install the R kernel for jupyter

doc/examples/R_double_ml_pension.ipynb

Lines changed: 830 additions & 87 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)