Using Quarto with ReadTheDocs #10044
mfisher87
started this conversation in
Show and Tell
Replies: 1 comment 2 replies
-
|
I would also have a use-case for this! From the readthedocs documentation, there's an example of installing dependencies with uv, where uv itself is installed via asdf: # .readthedocs.yaml
version: 2
sphinx:
configuration: docs/conf.py
build:
os: ubuntu-24.04
tools:
python: "3.13"
jobs:
pre_create_environment:
- asdf plugin add uv
- asdf install uv latest
- asdf global uv latest
create_environment:
- uv venv "${READTHEDOCS_VIRTUALENV_PATH}"
install:
- UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" uv sync --frozen --group docsIt seems that this install job could be adapted to Quarto if it were available as an asdf plugin, so I created one here. I haven't tried it yet on readthedocs though... |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I normally deploy Quarto sites with GitHub Pages, but for some projects, I want to use ReadTheDocs especially for the "pull request preview" feature. I've been around the block a few times on pull request previews, and now for my sanity I just settle for ReadTheDocs and cross my fingers that previews become a first-class feature in GitHub Pages some day soon.
I feel the solution I landed on for this was quite hacky, so I'd love to see suggestions to improve it! I'm working on setting up a new RTD site, and of course will use Quarto 1.4 this time. Maybe if we clean this up we can add a page in the docs about using Quarto with RTD? 🚀
Here's my RTD config: https://github.com/nsidc/usaon-benefit-tool/blob/4cab422abd4ce26e7cf60320cb10a1781db97f44/.readthedocs.yaml
Beta Was this translation helpful? Give feedback.
All reactions