Skip to content

Commit

Permalink
Add explicit home link to sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
lethosor committed Jul 12, 2020
1 parent 279d3e8 commit a8d34bb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def all_keybinds_documented():
}

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

# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
Expand Down
2 changes: 1 addition & 1 deletion docs/styles/dfhack.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ div.sphinxsidebar {
overflow-y: auto;
}

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

Expand Down
6 changes: 6 additions & 0 deletions docs/templates/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<p class="logo">
<a href="{{ pathto(master_doc) }}">
<img class="logo" src="{{ pathto('_static/' ~ theme_logo, 1) }}" alt="Logo"/>
<h3 class="logo logo-name">Home</h3>
</a>
</p>

0 comments on commit a8d34bb

Please sign in to comment.