summaryrefslogtreecommitdiffstats
path: root/documentation/conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/conf.py')
-rw-r--r--documentation/conf.py18
1 files changed, 13 insertions, 5 deletions
diff --git a/documentation/conf.py b/documentation/conf.py
index 546ca723a9..66af9fa060 100644
--- a/documentation/conf.py
+++ b/documentation/conf.py
@@ -12,18 +12,25 @@
12# add these directories to sys.path here. If the directory is relative to the 12# add these directories to sys.path here. If the directory is relative to the
13# documentation root, use os.path.abspath to make it absolute, like shown here. 13# documentation root, use os.path.abspath to make it absolute, like shown here.
14# 14#
15# import os 15import os
16# import sys 16import sys
17# sys.path.insert(0, os.path.abspath('.'))
18
19import datetime 17import datetime
20 18
19current_version = "dev"
20
21# String used in sidebar
22version = 'Version: ' + current_version
23if current_version == 'dev':
24 version = 'Version: Current Development'
25# Version seen in documentation_options.js and hence in js switchers code
26release = current_version
27
28
21# -- Project information ----------------------------------------------------- 29# -- Project information -----------------------------------------------------
22project = 'The Yocto Project' 30project = 'The Yocto Project'
23copyright = '2010-%s, The Linux Foundation' % datetime.datetime.now().year 31copyright = '2010-%s, The Linux Foundation' % datetime.datetime.now().year
24author = 'The Linux Foundation' 32author = 'The Linux Foundation'
25 33
26
27# -- General configuration --------------------------------------------------- 34# -- General configuration ---------------------------------------------------
28 35
29# to load local extension from the folder 'sphinx' 36# to load local extension from the folder 'sphinx'
@@ -96,4 +103,5 @@ html_context = {
96 'css_files': [ 103 'css_files': [
97 '_static/theme_overrides.css', 104 '_static/theme_overrides.css',
98 ], 105 ],
106 'current_version': current_version,
99} 107}