Commit 1037f304 authored by Anas Nashif's avatar Anas Nashif
Browse files

doc: add a new template variable



Signify if the documentation is for a release or if it is the
development version from master.

Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
parent d278473d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -158,8 +158,10 @@ if tags.has('daily') or tags.has('release'):


if tags.has('release'):
    is_release = True
    docs_title = 'Docs / %s' %(version)
else:
    is_release = False
    docs_title = 'Docs'

# The name for this set of Sphinx documents.  If None, it defaults to
@@ -344,6 +346,7 @@ breathe_default_project = "Zephyr"
html_context = {
    'show_license': html_show_license,
    'docs_title': docs_title,
    'is_release': is_release,
}

extlinks = {'jira': ('https://jira.zephyrproject.org/browse/%s', '')}