Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 9e37381

Browse files
Nicolas Cornualexsavulescu
andauthored
Publish documentation on ReadTheDocs (#468)
Co-authored-by: Alexandru Săvulescu <[email protected]>
1 parent c7a186b commit 9e37381

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

.readthedocs.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
3+
conda:
4+
environment: docs/conda_environment.yml
5+
6+
python:
7+
install:
8+
- requirements: docs/docs_requirements.txt

docs/conda_environment.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: base
2+
channels:
3+
- conda-forge
4+
- defaults
5+
dependencies:
6+
- bison
7+
- cmake
8+
- doxygen

docs/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,8 @@
7070
]
7171

7272
nbsphinx_allow_errors = True
73+
74+
import os
75+
if os.environ.get("READTHEDOCS"):
76+
os.system("rm -rf BUILD && mkdir BUILD && cd BUILD && cmake -DCORENRN_ENABLE_MPI=OFF ../.. && make doxygen")
77+
html_extra_path = ['BUILD/docs']

0 commit comments

Comments
 (0)