Skip to content

Commit 905858f

Browse files
authored
Merge pull request #21 from hermes-hmc/20-migrate
migrate to poetry, update theme, repair page
2 parents 1a5b837 + 2d9686a commit 905858f

File tree

6 files changed

+1242
-7
lines changed

6 files changed

+1242
-7
lines changed

.readthedocs.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: 2
2+
3+
build:
4+
os: ubuntu-20.04
5+
tools:
6+
python: "3.10"
7+
jobs:
8+
post_install:
9+
- pip install "poetry>=1.2.0,<1.3.0"
10+
- poetry config virtualenvs.create false
11+
- poetry install
12+
13+
# Build documentation with Sphinx
14+
sphinx:
15+
builder: html
16+
configuration: conf.py
17+
fail_on_warning: true

_static/custom.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
1+
.funding {
2+
font-size: 75%;
3+
position: absolute;
4+
bottom: 1rem;
5+
}
6+
7+
/* Workaround for sidebar scrollbar, see also https://github.com/executablebooks/sphinx-book-theme/issues/732 */
8+
.bd-sidebar-primary div#rtd-footer-container {
9+
position:fixed;
10+
}
11+
112
img.member {
213
max-width: 15%;
3-
border-radius: 50%;
14+
border-radius: 50% !important;
415
margin-top: 0.3em;
516
}
617

_templates/funding.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<div class="funding">
2+
Funded by the <i>Initiative and Networking Fund</i> of the
3+
<a href='https://www.helmholtz.de/en/about-us/structure-and-governance/initiating-and-networking/' target='_blank'>
4+
Helmholtz Association
5+
</a>
6+
in the framework of the
7+
<a href='https://helmholtz-metadaten.de' targe='_blank'>Helmholtz Metadata Collaboration</a>
8+
</div>

conf.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383

8484
# Custom sidebar templates, maps document names to template names.
8585
html_sidebars = {
86-
"**": ["sidebar-logo.html", "sbt-sidebar-nav.html"]
86+
"**": ["navbar-logo.html", "sbt-sidebar-nav.html", "funding.html"]
8787
}
8888

8989
# Enable and customize the permanent headerlinks with a nice icon (chain symbol from FontAwesome)
@@ -92,19 +92,19 @@
9292

9393
html_theme_options = {
9494
"home_page_in_toc": True,
95-
"extra_navbar": "<div>Funded by the <i>Initiative and Networking Fund</i> of the <a \
96-
href='https://www.helmholtz.de/en/about-us/structure-and-governance/initiating-and-networking/' \
97-
target='_blank'>Helmholtz Association</a> in the framework of the \
98-
<a href='https://helmholtz-metadaten.de' targe='_blank'>Helmholtz Metadata \
99-
Collaboration</a></div>",
10095
"repository_url": "https://github.com/hermes-hmc/project",
10196
"use_repository_button": True,
97+
"navigation_with_keys": False,
10298
}
10399

104100
html_css_files = [
105101
'custom.css',
106102
]
107103

104+
html_context = {
105+
"default_mode": "light",
106+
}
107+
108108
# -- Options for OpenGraph Tags ----------------------------------------------
109109

110110
ogp_site_url = "https://project.software-metadata.pub/"

0 commit comments

Comments
 (0)