Skip to content

Commit 730fcbe

Browse files
authored
Merge pull request #8 from openpathsampling/docs
Finish up docs on RTD
2 parents 1915097 + a3c1706 commit 730fcbe

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

docs/conf.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,18 @@
2121
make_param_main(f)
2222

2323
# -- Project information -----------------------------------------------------
24+
import pkg_resources
25+
import packaging.version
2426

2527
project = 'OpenPathSampling CLI'
2628
copyright = '2019-2020, David W.H. Swenson'
2729
author = 'David W.H. Swenson'
2830

2931
# The full version, including alpha/beta/rc tags
30-
# TODO: get this from the release like other projects do
31-
release = '0.0.1'
32+
release = pkg_resources.get_distribution('openpathsampling-cli').version
33+
version = packaging.version.Version(release).base_version
34+
35+
master_doc = 'index'
3236

3337

3438
# -- General configuration ---------------------------------------------------

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
cython # see if this helps MDTraj
22
numpy
33

4+
packaging
45
sphinx-click

0 commit comments

Comments
 (0)