Skip to content

Commit

Permalink
doc: support official website theme
Browse files Browse the repository at this point in the history
Jira: ZEP-1512
Change-Id: I795b1cdec3eb6096c97e2b97013184914102dccf
Signed-off-by: Anas Nashif <[email protected]>
  • Loading branch information
nashif authored and Anas Nashif committed Jan 5, 2017
1 parent b7b2318 commit 457ae38
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

if tags.has('daily') or tags.has('release'):
html_theme = 'zephyr-docs-theme'
html_theme_path = ['./themes']


# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
html_title = "Zephyr Project Documentation"
Expand Down Expand Up @@ -201,7 +206,7 @@
html_show_sphinx = False

# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
html_show_copyright = True
html_show_copyright = tags.has('development')

# If true, license is shown in the HTML footer. Default is True.
html_show_license = True
Expand Down
2 changes: 1 addition & 1 deletion doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Zephyr Project Documentation
Documentation for the development branch of Zephyr can be found at
https://www.zephyrproject.org/doc/

.. only:: development
.. only:: (development or daily)

Welcome to the Zephyr Project's documentation. This is the documentation of the
master tree under development (version |version|).
Expand Down

0 comments on commit 457ae38

Please sign in to comment.