diff --git a/mkdocs.yml b/mkdocs.yml index ba93e6dd6..db9db0252 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,6 +1,8 @@ site_name: Safe-DS Python Library repo_url: https://github.com/Safe-DS/Stdlib repo_name: Safe-DS/Stdlib +edit_uri: edit/main/docs/ +site_url: !ENV READTHEDOCS_CANONICAL_URL nav: - Home: diff --git a/readthedocs.yml b/readthedocs.yml index a44150b2a..cd0e3de4d 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -4,13 +4,21 @@ build: os: ubuntu-22.04 tools: python: '3.10' - jobs: - # https://docs.readthedocs.io/en/stable/build-customization.html#install-dependencies-with-poetry - post_create_environment: - - pip install poetry - - poetry config virtualenvs.create false - post_install: - - poetry install --with docs + commands: + - pip install poetry + - poetry config virtualenvs.create false + - poetry install --with docs + - cat mkdocs.yml + - mkdocs build --clean --site-dir $READTHEDOCS_OUTPUT/html --config-file mkdocs.yml +# Once https://github.com/readthedocs/readthedocs.org/issues/8529 is fixed, replace the commands above with the +# following to use the default RTD build steps again: +# jobs: +# # https://docs.readthedocs.io/en/stable/build-customization.html#install-dependencies-with-poetry +# post_create_environment: +# - pip install poetry +# - poetry config virtualenvs.create false +# post_install: +# - poetry install --with docs mkdocs: configuration: mkdocs.yml