Skip to content

Commit 5e8f0ba

Browse files
docs: try dpdata online (#552)
Signed-off-by: Jinzhe Zeng <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 57c5004 commit 5e8f0ba

File tree

12 files changed

+2632
-19
lines changed

12 files changed

+2632
-19
lines changed

.readthedocs.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ version: 2
33
build:
44
os: ubuntu-22.04
55
tools:
6-
python: "3.11"
6+
python: "mambaforge-22.9"
7+
conda:
8+
environment: docs/rtd_environment.yml
79
sphinx:
810
configuration: docs/conf.py
911
formats: all
10-
python:
11-
install:
12-
- requirements: docs/requirements.txt

docs/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"numpydoc",
5050
"m2r2",
5151
"sphinxarg.ext",
52+
"jupyterlite_sphinx",
5253
]
5354

5455
# Add any paths that contain templates here, relative to this directory.
@@ -202,3 +203,7 @@ def setup(app):
202203
"monty": ("https://guide.materialsvirtuallab.org/monty/", None),
203204
"h5py": ("https://docs.h5py.org/en/stable/", None),
204205
}
206+
207+
# jupyterlite
208+
jupyterlite_contents = "./nb"
209+
jupyterlite_bind_ipynb_suffix = False

docs/environment.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: dpdata
2+
channels:
3+
- https://repo.mamba.pm/emscripten-forge
4+
- https://repo.mamba.pm/conda-forge
5+
dependencies:
6+
- numpy
7+
- scipy
8+
- monty
9+
- wcmatch
10+
- pip:
11+
- ..

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Welcome to dpdata's documentation!
1111
:caption: Contents:
1212

1313
Overview <self>
14+
try_dpdata
1415
cli
1516
formats
1617
drivers

0 commit comments

Comments
 (0)