Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Documentation
sphinx
Commits
a724bade
Commit
a724bade
authored
Jun 03, 2019
by
Spencer Williams
Browse files
customizable legacy link
parent
e785df53
Changes
5
Hide whitespace changes
Inline
Side-by-side
scripts/test.sh
View file @
a724bade
...
...
@@ -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
test-doc/source/conf.py
View file @
a724bade
...
...
@@ -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'
}
...
...
theme/sphinx_rigado_theme/__init__.py
View file @
a724bade
from
os
import
path
__version__
=
'0.0.1
2
'
__version__
=
'0.0.1
3
'
def
get_html_theme_path
():
"""Return list of HTML theme paths."""
...
...
theme/sphinx_rigado_theme/layout.html
View file @
a724bade
...
...
@@ -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>
...
...
theme/sphinx_rigado_theme/theme.conf
View file @
a724bade
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment