Skip to content

Commit

Permalink
doc: use tag based versioning
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Cafasso <noxdafox@gmail.com>
  • Loading branch information
noxdafox committed Dec 10, 2017
1 parent 2775a98 commit f559a10
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 4 additions & 2 deletions doc/clips.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
CLIPS API
=========
CLIPS
=====

:version: |version|

Namespaces
----------
Expand Down
8 changes: 6 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,14 @@
# |version| and |release|, also used in various other places throughout the
# built documents.
#
version_path = os.path.join(
os.path.dirname(__file__), '..', 'version.py')

# The short X.Y version.
version = '0.2.0'
with open(version_path) as version_file:
version = version_file.read().split('=')[-1].strip().replace('"', '')
# The full version, including alpha/beta/rc tags.
release = '0.2.0'
release = version

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ API documentation
.. toctree::
:maxdepth: 2

modules
clips

Indices and tables
==================
Expand Down

0 comments on commit f559a10

Please sign in to comment.