Skip to content

Commit 9a60f9a

Browse files
author
Henry
committed
✨ Readthedocs configuration
1 parent 00598f1 commit 9a60f9a

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

.readthedocs.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# .readthedocs.yaml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Set the OS, Python version and other tools you might need
9+
build:
10+
os: ubuntu-22.04
11+
tools:
12+
python: "3.11"
13+
# You can also specify other tool versions:
14+
# nodejs: "19"
15+
# rust: "1.64"
16+
# golang: "1.19"
17+
18+
# Build documentation in the "docs/" directory with Sphinx
19+
sphinx:
20+
configuration: docs/conf.py
21+
22+
# Optionally build your docs in additional formats such as PDF and ePub
23+
# formats:
24+
# - pdf
25+
# - epub
26+
27+
# Optional but recommended, declare the Python requirements required
28+
# to build your documentation
29+
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
30+
python:
31+
install:
32+
- method: pip
33+
path: .
34+
extra_requirements:
35+
- docs

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,12 @@ Install vom [TestPyPI](https://test.pypi.org/project/rasmussenlab-mockup):
1616
pip install -i https://test.pypi.org/simple/ rasmussenlab-mockup
1717
```
1818

19-
> The package on PyPI is call `rasmussenlab-mockup` and not `mockup` as the package name is already taken. The import is still `import mockup`.
19+
> The package on PyPI is call `rasmussenlab-mockup` and not `mockup` as the package name is already taken. The import is still `import mockup`.
20+
21+
## Readthedocs
22+
23+
The documentation is build using readthedocs automatically. See
24+
[project on Readthedocs](https://readthedocs.org/projects/rasmussenlab-python-package/).
25+
26+
- make sure to enable build from PRs in the settings (advanded settings)
27+
- checkout configuration file: [`.readthedocs.yaml`](.readthedocs.yaml)

0 commit comments

Comments
 (0)