mirror of
https://github.com/nix-dot-dev/nix.dev.git
synced 2024-09-11 13:38:06 +03:00
This page: make it work
This commit is contained in:
parent
9c84f7a601
commit
481228864a
1
live.py
1
live.py
@ -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")
|
||||
|
@ -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 %}
|
@ -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',
|
||||
],
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user