Skip to content

Commit e26cf45

Browse files
committed
Refreshing more docs
1 parent fe61997 commit e26cf45

3 files changed

Lines changed: 7 additions & 264 deletions

File tree

Makefile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ docs-venv:
5555
fi
5656
. $(DOCSVENV)/bin/activate && pip install -q -r doc-requirements.txt
5757

58-
docs: docs-venv conf.py $(MANPAGES) docsite/source/index.rst
58+
docs: docs-venv $(MANPAGES) docsite/source/index.rst
5959
. $(DOCSVENV)/bin/activate && cd docsite && make html
6060

6161
# Add examples to the RTD docs by taking it from the README
@@ -94,10 +94,6 @@ viewcover: ci-unittests
9494
xdg-open htmlcov/index.html; \
9595
fi
9696

97-
conf.py: docsite/source/conf.py.in
98-
sed "s/%VERSION%/$(VERSION)/" $< > docsite/source/conf.py
99-
100-
10197
build: clean
10298
@echo "#############################################"
10399
@echo "# Building sdist + wheel"

docsite/source/conf.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
# serve to show the default.
1313

1414
import sys, os
15+
16+
_version_file = os.path.join(os.path.dirname(__file__), '..', '..', 'VERSION')
17+
with open(_version_file) as _vf:
18+
_version = _vf.read().strip()
1519
try:
1620
import sphinx_rtd_theme
1721
except ImportError:
@@ -55,9 +59,9 @@
5559
# built documents.
5660
#
5761
# The short X.Y version.
58-
version = '2.0.0'
62+
version = _version
5963
# The full version, including alpha/beta/rc tags.
60-
release = '2.0.0'
64+
release = _version
6165

6266
# The language for content autogenerated by Sphinx. Refer to documentation
6367
# for a list of supported languages.

docsite/source/conf.py.in

Lines changed: 0 additions & 257 deletions
This file was deleted.

0 commit comments

Comments
 (0)