Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a8d34bb

Browse files
committed
Add explicit home link to sidebar
1 parent 279d3e8 commit a8d34bb

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def all_keybinds_documented():
212212
}
213213

214214
# Add any paths that contain templates here, relative to this directory.
215-
templates_path = []
215+
templates_path = ["docs/templates"]
216216

217217
# The suffix(es) of source filenames.
218218
# You can specify multiple suffix as a list of string:

docs/styles/dfhack.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ div.sphinxsidebar {
4949
overflow-y: auto;
5050
}
5151

52-
div.sphinxsidebar h3 > a {
52+
div.sphinxsidebar h3.logo-name a {
5353
border-bottom: 1px dotted #999;
5454
}
5555

docs/templates/about.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<p class="logo">
2+
<a href="{{ pathto(master_doc) }}">
3+
<img class="logo" src="{{ pathto('_static/' ~ theme_logo, 1) }}" alt="Logo"/>
4+
<h3 class="logo logo-name">Home</h3>
5+
</a>
6+
</p>

0 commit comments

Comments
 (0)