Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Ocarina
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
TASTE
Ocarina
Commits
a0b4899c
Commit
a0b4899c
authored
Apr 29, 2014
by
yoogx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Get year and version from environment
parent
1031e26a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
doc/conf.py
doc/conf.py
+14
-4
No files found.
doc/conf.py
View file @
a0b4899c
...
...
@@ -11,7 +11,7 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
import
sys
,
os
import
sys
,
os
,
time
import
sphinx_bootstrap_theme
# If extensions (or modules to document with autodoc) are in another directory,
...
...
@@ -40,18 +40,28 @@ source_suffix = '.rst'
# The master toctree document.
master_doc
=
'index'
def
get_copyright
():
return
u'2003-2009 Telecom ParisTech, 2009-%s ISAE, ESA'
%
time
.
strftime
(
"%Y"
)
# General information about the project.
project
=
u'Ocarina'
copyright
=
u'2003-2009 Telecom ParisTech, 2009-2014 ISAE, ESA'
copyright
=
get_copyright
()
def
get_version
():
"""Extract the version from configure.in"""
for
line
in
file
(
"../configure.ac"
).
readlines
():
if
line
.
startswith
(
"AC_INIT"
):
return
line
.
split
(
","
)[
1
]
raise
Exception
(
"Cannot find version number"
)
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version
=
'2.0w'
version
=
get_version
()
# The full version, including alpha/beta/rc tags.
release
=
'2.0w'
release
=
version
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment