Commit 1d6259ed authored by Anas Nashif's avatar Anas Nashif Committed by 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 12784125
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -126,8 +126,10 @@ if tags.has('daily') or tags.has('release'):
    html_theme_path = ['./themes']

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
@@ -312,4 +314,5 @@ breathe_default_project = "Zephyr"
html_context = {
    'show_license': html_show_license,
    'docs_title': docs_title,
    'is_release': is_release,
}