Skip to content

Commit

Permalink
Switch to the pipenv and Sphinx>=1.8 to build docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
svetlyak40wt committed Jan 13, 2019
1 parent 9b4c30f commit d847fc0
Show file tree
Hide file tree
Showing 5 changed files with 230 additions and 4 deletions.
15 changes: 15 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]

[packages]
sphinx = ">=1.8"
pygments-cl-repl = "*"
sphinx-bootstrap-theme = "*"
sphinxcontrib-cldomain = {git = "https://github.com/40ants/sphinxcontrib-cldomain.git",editable = true}

[requires]
python_version = "2.7"
210 changes: 210 additions & 0 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions build-docs-on-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ set -e
# TRAVIS_BRANCH=reblocks, but TRAVIS_PULL_REQUEST_BRANCH=the-branch
# and TRAVIS_PULL_REQUEST=42 where 42 is a pull request number
if [ "$TRAVIS_BRANCH" = "reblocks" -a "$TRAVIS_PULL_REQUEST" = "false" -a "$LISP" = "ccl" ]; then
sudo pip install -r docs/requirements.txt
./build-docs.ros
sudo pip install pipenv
pipenv install
pipenv run ./build-docs.ros
else
echo "Skipping documentation build because environment is not suitable."
fi
2 changes: 1 addition & 1 deletion docs/requirements.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# to build documentation
sphinx
sphinx>=1.8
pygments-cl-repl
sphinx-bootstrap-theme
releases
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
'sphinx.ext.autosectionlabel',
'sphinxcontrib.cldomain',
'sphinxcontrib.hyperspec',
'releases',
# 'releases', # it does not work with Sphinx >= 1.8 yet
]

from os.path import join, dirname, realpath, expandvars
Expand Down

0 comments on commit d847fc0

Please sign in to comment.