Skip to content

Commit

Permalink
Initial readthedocs config
Browse files Browse the repository at this point in the history
  • Loading branch information
Lasall committed Jan 4, 2025
1 parent 1866055 commit c0b5f30
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 4 deletions.
18 changes: 18 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: 2

build:
os: ubuntu-24.04
tools:
python: "3.12"
jobs:
post_install:
# Install package so the auto generation in eval-sh can access package imports
- pip install -e .

sphinx:
configuration: docs/conf.py

python:
install:
- requirements: requirements-dev.txt

4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ dist: pip

# Target to generate HTML documentation
docs: pip-dev
.venv/bin/sphinx-build -M html docs build/docs
. .venv/bin/activate; \
pip install -e .; \
sphinx-build -M html docs build/docs
@echo "Documentation generated to build/docs/html/."

# Target to read the HTML documentation
Expand Down
2 changes: 1 addition & 1 deletion docs/akkudoktoreos/serverapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Server API

```{eval-sh}
./scripts/generate_openapi_md.py | ./scripts/extract_markdown.py --input-stdin --start-line "**Version**:"
python ${READTHEDOCS_REPOSITORY_PATH:-.}/scripts/generate_openapi_md.py | python ${READTHEDOCS_REPOSITORY_PATH:-.}/scripts/extract_markdown.py --input-stdin --start-line "**Version**:"
```
2 changes: 1 addition & 1 deletion docs/develop/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```{eval-sh}
./scripts/extract_markdown.py --input-file CONTRIBUTING.md
python ${READTHEDOCS_REPOSITORY_PATH:-.}/scripts/extract_markdown.py --input-file ${READTHEDOCS_REPOSITORY_PATH:-.}/CONTRIBUTING.md
```
2 changes: 1 addition & 1 deletion docs/develop/getting_started.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Getting Started

```{eval-sh}
./scripts/extract_markdown.py --input-file README.md --start-line "## Getting Involved"
python ${READTHEDOCS_REPOSITORY_PATH:-.}/scripts/extract_markdown.py --input-file ${READTHEDOCS_REPOSITORY_PATH:-.}/README.md --start-line "## Getting Involved"
```

0 comments on commit c0b5f30

Please sign in to comment.