Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Trigger Distribution
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Trigger Distribution
Commits
8d91dbdd
Commit
8d91dbdd
authored
Jan 13, 2023
by
Dimitris Lampridis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: automate versioning of docs
parent
63748f7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
conf.py
doc/conf.py
+5
-4
No files found.
doc/conf.py
View file @
8d91dbdd
...
@@ -69,10 +69,11 @@ author = u'Dimitris Lampridis <dimitris.lampridis@cern.ch>'
...
@@ -69,10 +69,11 @@ author = u'Dimitris Lampridis <dimitris.lampridis@cern.ch>'
# |version| and |release|, also used in various other places throughout the
# |version| and |release|, also used in various other places throughout the
# built documents.
# built documents.
#
#
# The short X.Y version.
import
os
version
=
u'1.0'
import
re
# The full version, including alpha/beta/rc tags.
release
=
u'1.0'
release
=
os
.
popen
(
'git describe --tags'
)
.
read
()
.
strip
()
version
=
re
.
sub
(
'^v'
,
''
,
release
.
split
(
'-'
)[
0
])
# The language for content autogenerated by Sphinx. Refer to documentation
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
# 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