Skip to content

Commit

Permalink
Add documentation via readthedocs.
Browse files Browse the repository at this point in the history
  • Loading branch information
matz-e committed Jul 8, 2024
1 parent fe55b29 commit 5e68b2c
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 4 deletions.
20 changes: 20 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 2

build:
os: ubuntu-22.04
tools:
python: "3.12"
jobs:
post_checkout:
- git submodule update --init
post_install:
- wget -qO- https://boostorg.jfrog.io/artifactory/main/release/1.85.0/source/boost_1_85_0.tar.bz2 | tar xjf -
- cd boost_1_85_0 && ./bootstrap.sh && ./b2 --prefix=../boost --with-serialization --with-filesystem --with-test install
- env CMAKE_PREFIX_PATH=boost SKBUILD_CMAKE_DEFINE="CMAKE_INSTALL_RPATH=$PWD/boost/lib;SI_MPI=OFF" pip install .

sphinx:
configuration: docs/source/conf.py

python:
install:
- requirements: docs/source/requirements.txt
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions docs/source/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mock
sphinx
sphinx-bluebrain-theme
File renamed without changes.
6 changes: 2 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,8 @@ commands =
ruff format --check

[testenv:docs]
changedir = doc
deps =
sphinx
sphinx-bluebrain-theme
changedir = docs
dep_file = docs/source/requirements.txt
# set warnings as errors using the -W sphinx option
commands = make html SPHINXOPTS=-W
allowlist_externals = make
Expand Down

0 comments on commit 5e68b2c

Please sign in to comment.