Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
FMC TDC 1ns 5cha
Commits
f3a3e73c
Commit
f3a3e73c
authored
Dec 16, 2022
by
Dimitris Lampridis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: make latest release available as a variable inside docs
parent
c1da766f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
Makefile
doc/Makefile
+1
-1
conf.py
doc/conf.py
+8
-0
introduction.rst
doc/introduction.rst
+1
-1
No files found.
doc/Makefile
View file @
f3a3e73c
...
...
@@ -8,7 +8,7 @@
# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS
=
-Drelease
=
$(
shell
git describe
)
-Dversion
=
$(
shell
git describe |
cut
-d
"-"
-f
1 |
tr
-d
"v"
)
SPHINXOPTS
=
SPHINXBUILD
?=
sphinx-build
SOURCEDIR
=
.
BUILDDIR
=
_build
...
...
doc/conf.py
View file @
f3a3e73c
...
...
@@ -26,6 +26,11 @@ project = 'FMC-TDC 1ns 5cha'
copyright
=
u'2022, CERN, documentation released under CC-BY-SA-4.0'
author
=
'Federico Vaga <federico.vaga@cern.ch>'
import
re
release
=
os
.
popen
(
'git describe --tags'
)
.
read
()
.
strip
()
version
=
re
.
sub
(
'^v'
,
''
,
release
.
split
(
'-'
)[
0
])
# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
...
...
@@ -109,3 +114,6 @@ breathe_projects_source = {
}
breathe_default_project
=
"fmctdc-lib"
# Will be appended to every rst source file in order to provide a reference to the latest version
rst_epilog
=
'.. |latest_release| replace::
%
s'
%
version
doc/introduction.rst
View file @
f3a3e73c
...
...
@@ -28,7 +28,7 @@ here. You can clone the GIT project with the following command::
Within the GIT respository, releases are marked with a TAG named
using the `Semantic Versioning`_. For example the latest release is
``v8.0.0``
. You can also find older releases with a different versioning
|latest_release|
. You can also find older releases with a different versioning
mechanism.
For each release we will publish the FPGA bitstream for all supported
...
...
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