Skip to content

Commit b53d697

Browse files
nashifAnas Nashif
authored andcommitted
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: Anas Nashif <[email protected]>
1 parent ec53c8a commit b53d697

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,10 @@
158158

159159

160160
if tags.has('release'):
161+
is_release = True
161162
docs_title = 'Docs / %s' %(version)
162163
else:
164+
is_release = False
163165
docs_title = 'Docs'
164166

165167
# The name for this set of Sphinx documents. If None, it defaults to
@@ -354,6 +356,7 @@
354356
html_context = {
355357
'show_license': html_show_license,
356358
'docs_title': docs_title,
359+
'is_release': is_release,
357360
}
358361

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

0 commit comments

Comments
 (0)