doc: override html theme for old version

Change-Id: Id949ca8c1d81c0eaa8b7d2d388fee8e6a80f756b
This commit is contained in:
Mehdi Abaakouk 2017-04-22 11:16:45 +02:00
parent 657b66f1b0
commit f8569ccab6
5 changed files with 10 additions and 2 deletions

View File

@ -2,7 +2,7 @@
Gnocchi - Metric as a Service
===============================
.. image:: doc/source/gnocchi-logo.png
.. image:: doc/source/_static/gnocchi-logo.png
Gnocchi is a multi-tenant timeseries, metrics and resources database. It
provides an `HTTP REST`_ interface to create and manipulate the data. It is

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 91 KiB

After

Width:  |  Height:  |  Size: 91 KiB

View File

@ -184,3 +184,12 @@ scv_banner_greatest_tag = True
scv_priority = 'branches'
scv_whitelist_branches = ('master', '^stable/(2\.1|2\.2|[3-9]\.)')
scv_whitelist_tags = ("^[2-9]\.",)
here = os.path.dirname(os.path.realpath(__file__))
html_static_path_abs = ",".join([os.path.join(here, p) for p in html_static_path])
# Override some conf for old version
scv_overflow = ("-D", "html_theme=sphinx_rtd_theme",
"-D", "html_theme_options.logo_only=True",
"-D", "html_logo=gnocchi-logo.png",
"-D", "html_favicon=gnocchi-icon.png",
"-D", "html_static_path=%s" % html_static_path_abs)

View File

@ -134,7 +134,6 @@ deps = .[file,postgresql,test,doc]
pytimeparse
retrying
# for 3.x doc
sphinx_rtd_theme
oslosphinx
commands =
pifpaf -g GNOCCHI_INDEXER_URL run postgresql -- sphinx-versioning build doc/source doc/build/html