Skip to content

Commit 447d7c2

Browse files
committed
site: add sidebar links + fixes.
1 parent 3870891 commit 447d7c2

File tree

4 files changed

+40
-5
lines changed

4 files changed

+40
-5
lines changed

doc/_static/pypi-logo.svg

Lines changed: 1 addition & 0 deletions
Loading

doc/_templates/sidebar/links.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<div style="padding: 0 var(--sidebar-item-spacing-horizontal); margin-bottom: 1rem; display: flex; gap: 0.75rem;">
2+
<a href="https://github.com/pydoit/doit" title="GitHub" style="color: var(--color-foreground-secondary);">
3+
<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16" width="1.25rem" height="1.25rem"><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></svg>
4+
</a>
5+
<a href="https://x.com/pydoit" title="X/Twitter" style="color: var(--color-foreground-secondary);">
6+
<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16" width="1.25rem" height="1.25rem"><path d="M12.6.75h2.454l-5.36 6.142L16 15.25h-4.937l-3.867-5.07-4.425 5.07H.316l5.733-6.57L0 .75h5.063l3.495 4.633L12.601.75Zm-.86 13.028h1.36L4.323 2.145H2.865z"/></svg>
7+
</a>
8+
<a href="https://pypi.org/project/doit/" title="PyPI">
9+
<img src="{{ pathto('_static/pypi-logo.svg', 1) }}" alt="PyPI" width="20" height="18">
10+
</a>
11+
</div>

doc/conf.py

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676

7777
# non-default configuration for doit
7878
html_favicon = '_static/favico.ico'
79+
html_title = 'pydoit'
7980
html_show_sourcelink = False
8081
html_extra_path = ['index.html', 'robots.txt', 'google726fc03ab55ebbfc.html']
8182
html_logo = '_static/doit-logo-small.png'
@@ -106,13 +107,35 @@
106107
#
107108
# The default sidebars (for documents that don't match any pattern) are
108109
# defined by theme itself. Builtin themes are using these templates by
109-
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
110-
# 'searchbox.html']``.
111-
#
110+
html_sidebars = {
111+
'**': [
112+
'sidebar/brand.html',
113+
'sidebar/links.html',
114+
'sidebar/search.html',
115+
'sidebar/scroll-start.html',
116+
'sidebar/navigation.html',
117+
'sidebar/scroll-end.html',
118+
]
119+
}
120+
112121
html_theme_options = {
113122
"source_repository": "https://github.com/pydoit/doit/",
114123
"source_branch": "master",
115124
"source_directory": "doc/",
125+
"footer_icons": [
126+
{
127+
"name": "GitHub",
128+
"url": "https://github.com/pydoit/doit",
129+
"html": '<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16"><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></svg>',
130+
"class": "",
131+
},
132+
{
133+
"name": "X/Twitter",
134+
"url": "https://x.com/pydoit",
135+
"html": '<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16"><path d="M12.6.75h2.454l-5.36 6.142L16 15.25h-4.937l-3.867-5.07-4.425 5.07H.316l5.733-6.57L0 .75h5.063l3.495 4.633L12.601.75Zm-.86 13.028h1.36L4.323 2.145H2.865z"/></svg>',
136+
"class": "",
137+
},
138+
],
116139
}
117140

118141

doc/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ <h2>Project Details</h2>
472472
<div class="container">
473473
<div class="row">
474474
<div class="col-lg-4 text-center-md">
475-
<p>&copy; 2018. pydoit.org / Eduardo Schettino (schettino72)</p>
475+
<p>&copy; 2008-2026. pydoit.org / Eduardo Schettino (schettino72)</p>
476476
</div>
477477
<div class="col-lg-8 text-right text-center-md">
478478
<p>Template design by <a href="https://bootstrapious.com/free-templates">Bootstrapious Templates </a></p>
@@ -484,7 +484,7 @@ <h2>Project Details</h2>
484484
</footer>
485485
</div>
486486
<!-- Javascript files-->
487-
<script src="_static/jquery.js"></script>
487+
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
488488
<script src="_static/vendor/bootstrap/js/bootstrap.min.js"></script>
489489
<script src="_static/vendor/owl.carousel/owl.carousel.min.js"></script>
490490
<!-- Google Analytics 4 -->

0 commit comments

Comments
 (0)