This page: make it work

This commit is contained in:
Domen Kožar 2020-06-15 18:06:41 +02:00
parent 9c84f7a601
commit 481228864a
No known key found for this signature in database
GPG Key ID: C2FFBCAFD2C24246
3 changed files with 8 additions and 5 deletions

View File

@ -8,5 +8,6 @@ print("Doing an initial build of the docs...")
build_docs()
server.watch("source/*.rst", build_docs)
server.watch("_templates/*.html", build_docs)
server.watch("source/**/*.rst", build_docs)
server.serve(root="build/html")

View File

@ -1,14 +1,16 @@
{%- if show_source and has_source and sourcename %}
<div class="widget navlinks">
<h3>{{ _('This Page') }}</h3>
<ul class="this-page-menu">
<li><a href="https://github.com/domenkozar/nix.dev/edit/master/{{ pathto('source/' + sourcename, true).replace('.txt','') }}"
<li><a href="https://github.com/domenkozar/nix.dev/edit/master/{{ ('source/' + sourcename).replace('.txt','') }}"
rel="nofollow"
target="_blank">{{ _('Edit this page') }}</a></li>
<li><a href="https://github.com/domenkozar/nix.dev/commits/master/{{ pathto('source/' + sourcename, true).replace('.txt','') }}"
<li><a href="https://github.com/domenkozar/nix.dev/commits/master/{{ ('source/' + sourcename).replace('.txt','') }}"
rel="nofollow"
target="_blank">{{ _('Page history') }}</a></li>
<li><a href="https://github.com/domenkozar/nix.dev/raw/master/{{ pathto('source/' + sourcename, true).replace('.txt','') }}"
<li><a href="https://github.com/domenkozar/nix.dev/raw/master/{{ ('source/' + sourcename).replace('.txt','') }}"
rel="nofollow"
target="_blank">{{ _('Source') }}</a></li>
</ul>
</div>
{%- endif %}

View File

@ -159,15 +159,15 @@ html_theme = "flask"
# Custom sidebar templates, maps document names to template names.
html_sidebars = {
'**': [
'searchbox.html',
'localtoc.html',
'relations.html',
'searchbox.html',
'srclinks.html',
],
'index': [
'searchbox.html',
'globaltoc.html',
'relations.html',
'searchbox.html',
'srclinks.html',
],
}