-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add readthedocs config #6
Conversation
.readthedocs.yaml
Outdated
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html | ||
python: | ||
install: | ||
- requirements: fme/docs/requirements-pinned.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the reason to not just give the fme/docs/requirements.txt
and fme/requirements.txt
files? We will have to remember to recompile the requirements-pinned.txt
when those change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two reasons:
- I wasn't sure that would work (whether you could specify two files), and testing changes requires waiting for sphinx to recompile on RTD which takes a little while
- RTD strongly recommends pinning the package versions (see comment from the template directly above this), which makes sense for something as public-facing as docs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay. Yeah I do see the rationale for pinning, but given the relatively infrequent updates to this repo, probably won't make much of a practical difference either way.
Also FYI I am having a hard time getting automatic builds to work for this, even though the github web hook is set up and says it's working. Currently I'm launching builds manually. |
Huh weird. Okay well yeah let's just build manually for now, and can sort out automating later on. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR adds configuration needed for readthedocs. A test RTD project is created here. This will be removed and re-created under the main branch and a long-term name after this PR is merged.
Changes:
Added
.readthedocs.yaml
Added pinned requirements in
docs/requirements-pinned.txt
to be used by RTDTests added