Commit a724bade authored by Spencer Williams's avatar Spencer Williams
Browse files

customizable legacy link

parent e785df53
......@@ -4,5 +4,4 @@ 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 inventory
make SPHINXOPTS='-n -W' clean html
......@@ -56,7 +56,9 @@ html_sidebars = {
'sourcelink.html']
}
html_theme_options = {
'display_legacy_link': True
'display_legacy_link': True,
'legacy_link_url': 'https://developer.rigado.com',
'legacy_link_title': 'Foo'
}
......
from os import path
__version__ = '0.0.12'
__version__ = '0.0.13'
def get_html_theme_path():
"""Return list of HTML theme paths."""
......
......@@ -38,7 +38,7 @@
</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>
<a class="button" href="{{ theme_legacy_link_url }}" title="{{ theme_legacy_link_title }}">{{ theme_legacy_link_title }}</a>
</li>
{%- endif %}
</ul>
......
......@@ -10,6 +10,8 @@ use_search = True
use_global_toc = True
display_version = True
display_legacy_link =
legacy_link_url =
legacy_link_title =
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