Commit 57aeba11 authored by Spencer Williams's avatar Spencer Williams
Browse files

Merge branch 'baker' into 'master'

Baker updates

See merge request documentation/sphinx!2
parents e73e95c1 bd80c67e
#!/usr/bin/env bash
set -e
cd test-doc
# -n makes more warnings happen
# -W makes warnings into errors
# inventory just builds the inventory. it's the fastest builder.
make SPHINXOPTS='-n -W' clean html
......@@ -55,6 +55,9 @@ html_sidebars = {
'relations.html',
'sourcelink.html']
}
html_theme_options = {
'display_legacy_link': True
}
# -- Options for LaTeX output ------------------------------------------------
......
from os import path
__version__ = '0.0.6'
__version__ = '0.0.8'
def get_html_theme_path():
"""Return list of HTML theme paths."""
......
......@@ -36,6 +36,11 @@
<li class="nav-item nav-item-0">
<a href="/"><img class="logo" src="{{ pathto('_static/images/logo.png', 1) }}" alt="{{ shorttitle|e }}"/></a>
</li>
{%- if theme_display_legacy_link %}
<li id="legacyportalbutton" class="nav-item">
<a class="button" href="https://developer.rigado.com" title="Legacy DeviceOps Documentation">Legacy DeviceOps Documentation</a>
</li>
{%- endif %}
</ul>
</div>
{%- endblock %}
......@@ -105,4 +110,9 @@
{% endtrans %}
{%- endif %}
</div>
<script type="text/javascript">
$(document).ready(function() {
$("a[href^='http']").attr('target','_blank');
});
</script>
{%- endblock %}
......@@ -112,6 +112,16 @@ div.related li.right {
font-size: 0.85em;
}
li#legacyportalbutton a {
display: inline-block;
float: right;
margin-right: 40px;
margin-top: 8px;
padding: 0.2em 2em;
vertical-align: top;
width: auto;
}
div.bodywrapper {
margin-left: 216px;
}
......
......@@ -9,6 +9,7 @@ analytics_domain =
use_search = True
use_global_toc = True
display_version = True
display_legacy_link =
footerbgcolor = #ffffff
footertextcolor = #1d1d1d
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment