File tree Expand file tree Collapse file tree 4 files changed +13
-6
lines changed
Expand file tree Collapse file tree 4 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1515# add these directories to sys.path here. If the directory is relative to the
1616# documentation root, use os.path.abspath to make it absolute, like shown here.
1717#
18- # import os
19- # import sys
20- # sys.path.insert(0, os.path.abspath('.'))
18+ import os
19+ import sys
20+ sys .path .insert (0 , os .path .abspath ('.' ))
2121
22+ from version import __version__
2223
2324# -- General configuration ------------------------------------------------
2425
6667# built documents.
6768#
6869# The short X.Y version.
69- version = '1.0.0-alpha7'
70+ version = __version__
7071# The full version, including alpha/beta/rc tags.
71- release = '1.0.0-alpha7'
72+ release = __version__
7273
7374# The language for content autogenerated by Sphinx. Refer to documentation
7475# for a list of supported languages.
Original file line number Diff line number Diff line change 1+ __version__ = '1.0.2'
Original file line number Diff line number Diff line change 1818 "dev" : " webpack -w" ,
1919 "doc" : " cd doc; sphinx-autobuild -i '*~' -i '*.sw*' -i '#*#' . _build/html" ,
2020 "preversion" : " npm test" ,
21- "version" : " npm run build && git add release/ && npm run update-bower-version && git add bower.json" ,
21+ "version" : " npm run build && git add release/ && npm run update-bower-version && git add bower.json && npm run update-doc-version && git add doc/version.py " ,
2222 "postversion" : " git push && git push --tags" ,
2323 "update-bower-version" : " bash scripts/update-bower-version.sh" ,
24+ "update-doc-version" : " bash scripts/update-doc-version.sh" ,
2425 "autobuild-docs" : " cd doc && sphinx-autobuild . _build/html"
2526 },
2627 "devDependencies" : {
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -e
3+
4+ echo " __version__ = '$( node -p " var config = require('./package.json'); config.version" ) '" > doc/version.py
You can’t perform that action at this time.
0 commit comments