Skip to content

Commit

Permalink
add to build to readthedocs (#215)
Browse files Browse the repository at this point in the history
* add to build to readthedocs

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* use python 3.9 in readthedocs.yaml

* remove python.version

* use python 3.11

* 3.10

* add pyyaml==5.3.1 to docs

* add mkdocs.yml

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update path

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jacob Bieker <[email protected]>
  • Loading branch information
3 people authored Jan 29, 2024
1 parent d82dd24 commit 8a0be80
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
version: 2
mkdocs: {} # tell readthedocs to use mkdocs
python:
version: 3.7
install:
- method: pip
path: .
- requirements: docs/requirements.txt

# the build.os and build.tools section is mandatory
build:
os: ubuntu-20.04 # for consistency, matches the one used for CI
tools:
python: "3.10"
2 changes: 1 addition & 1 deletion docs/.readthedocs-custom-steps.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
steps:
- |
pydoc-markdown --build --site-dir "$PWD/_build/html"
pydoc-markdown --build --site-dir "$READTHEDOCS_OUTPUT/html"
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
readthedocs-custom-steps==0.5.1
jinja2<3.1.0
pydoc-markdown
pyyaml==5.3.1
5 changes: 5 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
site_name: Satip
site_url: https://github.com/openclimatefix/Satip
nav:
- Home: README.md
theme: readthedocs

0 comments on commit 8a0be80

Please sign in to comment.