Skip to content

Commit ad4347e

Browse files
committed
change docs
1 parent ae4d420 commit ad4347e

4 files changed

Lines changed: 52 additions & 4 deletions

File tree

docs/_static/custom.css

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1-
.sidebar-logo img {
2-
max-width: 80px;
1+
.sidebar-github-link {
2+
padding: 0.5rem var(--sidebar-item-spacing-horizontal);
33
}
44

5-
.sidebar-brand-text {
6-
display: none;
5+
.sidebar-github-link a {
6+
display: inline-flex;
7+
align-items: center;
8+
gap: 0.4rem;
9+
font-size: 0.85rem;
10+
color: var(--color-sidebar-link-text--top-level);
11+
text-decoration: none;
12+
opacity: 0.7;
13+
transition: opacity 0.15s;
14+
}
15+
16+
.sidebar-github-link a:hover {
17+
opacity: 1;
718
}

docs/_templates/sidebar/brand.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
<div class="sidebar-search-container" method="get" action="{{ pathto('search') }}">
3+
<form class="sidebar-search" role="search" method="get" action="{{ pathto('search') }}">
4+
<input type="search" name="q" placeholder="Search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
5+
<label class="visually-hidden" for="search">Search</label>
6+
</form>
7+
</div>
8+
<div class="sidebar-github-link">
9+
<a href="https://github.com/quant-sci/dynaris" title="GitHub" target="_blank" rel="noopener">
10+
<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16" width="1em" height="1em">
11+
<path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path>
12+
</svg>
13+
<span>GitHub</span>
14+
</a>
15+
</div>

docs/conf.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,27 @@
3636
"source_repository": "https://github.com/quant-sci/dynaris",
3737
"source_branch": "main",
3838
"source_directory": "docs/",
39+
"top_of_page_buttons": ["view", "edit"],
40+
"navigation_with_keys": True,
41+
"footer_icons": [
42+
{
43+
"name": "GitHub",
44+
"url": "https://github.com/quant-sci/dynaris",
45+
"html": (
46+
'<svg stroke="currentColor" fill="currentColor" stroke-width="0" '
47+
'viewBox="0 0 16 16"><path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 '
48+
"3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37"
49+
"-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 "
50+
"1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64"
51+
"-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 "
52+
"2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82"
53+
".44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95"
54+
".29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013"
55+
' 0 0016 8c0-4.42-3.58-8-8-8z"></path></svg>'
56+
),
57+
"class": "",
58+
},
59+
],
3960
}
4061
html_static_path = ["_static"]
4162
html_css_files = ["custom.css"]

0 commit comments

Comments
 (0)