-
Notifications
You must be signed in to change notification settings - Fork 7
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
Blog post: partially or completely override the build process #345
Conversation
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.
Looks good, with some modifications.
We recommend using [`build.jobs`](https://docs.readthedocs.io/en/stable/config-file/v2.html#build-jobs) over [`build.commands`](https://docs.readthedocs.io/en/stable/config-file/v2.html#build-commands), | ||
as it offers the same functionality as `build.commands`, but in a more structured way that allows you to define different commands for each format, | ||
while also supporting installing system dependencies via `build.apt_packages`. |
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.
We should probably put a section in the docs about when each should be used. I think build.commands
is basically for when you want us to run no additional setup, and the reason apt_packages doesn't work is because we aren't doing any kind of environment setup, right?
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.
build.jobs can also be used to not run any additional steps, they are basically the same now.
preview at https://readthedocs-about--345.org.readthedocs.build/blog/2025/01/override-build-process-with-build-jobs/index.html
Closes https://github.com/readthedocs/readthedocs-ops/issues/1582
📚 Documentation preview 📚: https://readthedocs-about--345.org.readthedocs.build/