Skip to content

Commit 904342e

Browse files
authored
Fix readthedocs (#135)
* Reshuffle dependencies * Fix the docs even more * Move doc -> docs * Readthedocs config
1 parent d5873a7 commit 904342e

37 files changed

+1017
-83
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ coverage.xml
5656
*.log
5757

5858
# Sphinx documentation
59-
doc/_build/
59+
docs/_build/
6060

6161
# PyBuilder
6262
target/

.readthedocs.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: 2
2+
3+
sphinx:
4+
configuration: docs/conf.py
5+
6+
build:
7+
os: ubuntu-24.04
8+
tools:
9+
python: "3.13"
10+
jobs:
11+
pre_create_environment:
12+
- asdf plugin add uv
13+
- asdf install uv latest
14+
- asdf global uv latest
15+
create_environment:
16+
- uv venv "${READTHEDOCS_VIRTUALENV_PATH}"
17+
install:
18+
- UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" uv sync --frozen --group docs

Justfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,6 @@ publish: build
4141

4242
examples:
4343
uv run --extra all python -m physt.examples
44+
45+
docs:
46+
uv run --extra all sphinx-build -b html docs/ docs/_build/html

README.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ uv run --with "physt[terminal]>=0.8.3" -m physt.examples
2727

2828
## Command-line interface (experimental)
2929

30-
You can run (and install) `physt` as a command-line application to quickly analyse
30+
You can run (and install) `physt` as a command-line application to quickly analyse
3131
data files. This functionality is currently in development.
3232

3333
```shell
@@ -52,7 +52,7 @@ hist << 190 # <--- add a forgotten value
5252
hist.plot() # <--- and plot it
5353
```
5454

55-
![Heights plot](doc/heights.png)
55+
![Heights plot](docs/heights.png)
5656

5757
## 2D example
5858

@@ -65,7 +65,7 @@ iris_hist = h2(iris["sepal_length"], iris["sepal_width"], "pretty", bin_count=[1
6565
iris_hist.plot(show_zero=False, cmap="gray_r", show_values=True);
6666
```
6767

68-
![Iris 2D plot](doc/iris-2d.png)
68+
![Iris 2D plot](docs/iris-2d.png)
6969

7070
## 3D directional example
7171

@@ -86,19 +86,18 @@ h = special_histograms.spherical(data)
8686
h.projection("theta", "phi").plot.globe_map(density=True, figsize=(7, 7), cmap="rainbow")
8787
```
8888

89-
![Directional 3D plot](doc/globe.png)
89+
![Directional 3D plot](docs/globe.png)
9090

9191
See more in docstring's and notebooks:
9292

93-
- Basic tutorial: <http://nbviewer.jupyter.org/github/janpipek/physt/blob/dev/doc/tutorial.ipynb>
94-
- Binning: <http://nbviewer.jupyter.org/github/janpipek/physt/blob/dev/doc/binning.ipynb>
95-
- 2D histograms: <http://nbviewer.jupyter.org/github/janpipek/physt/blob/dev/doc/2d_histograms.ipynb>
96-
- Special histograms (polar, spherical, cylindrical - *beta*): <http://nbviewer.jupyter.org/github/janpipek/physt/blob/dev/doc/special_histograms.ipynb>
97-
- Adaptive histograms: <http://nbviewer.jupyter.org/github/janpipek/physt/blob/dev/doc/adaptive_histogram.ipynb>
98-
- Use dask for large (not "big") data - *alpha*: <http://nbviewer.jupyter.org/github/janpipek/physt/blob/dev/doc/dask.ipynb>
99-
- Geographical bins . *alpha*: <http://nbviewer.jupyter.org/github/janpipek/physt/blob/dev/doc/geospatial.ipynb>
100-
- Plotting with vega backend: <http://nbviewer.jupyter.org/github/janpipek/physt/blob/dev/doc/vega-examples.ipynb>
101-
...and others, see the `doc` directory.
93+
- Basic tutorial: <http://nbviewer.jupyter.org/github/janpipek/physt/blob/dev/docs/tutorial.ipynb>
94+
- Binning: <http://nbviewer.jupyter.org/github/janpipek/physt/blob/dev/docs/binning.ipynb>
95+
- 2D histograms: <http://nbviewer.jupyter.org/github/janpipek/physt/blob/dev/docs/2d_histograms.ipynb>
96+
- Special histograms (polar, spherical, cylindrical - *beta*): <http://nbviewer.jupyter.org/github/janpipek/physt/blob/dev/docs/special_histograms.ipynb>
97+
- Adaptive histograms: <http://nbviewer.jupyter.org/github/janpipek/physt/blob/dev/docs/adaptive_histogram.ipynb>
98+
- Use dask for large (not "big") data - *alpha*: <http://nbviewer.jupyter.org/github/janpipek/physt/blob/dev/docs/dask.ipynb>
99+
- Geographical bins . *alpha*: <http://nbviewer.jupyter.org/github/janpipek/physt/blob/dev/docs/geospatial.ipynb>
100+
...and others, see the `docs` directory.
102101

103102
## Installation
104103

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)