-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Allow custom run steps in .readthedocs.yml #8963
Comments
Hi! Thanks for opening this issue. We have been considering adding custom steps/commands already but we haven't had the time to jump into this, yet. We created some design documents to discuss these ideas in #8190 and #8215. Please, provide any feedback you may have on those PRs that are the ones that we will come back to when we start working on this. Thanks! |
Hi! In a few hours, we are deploying a new feature that will allow people to call arbitrary commands at different moments in the build process (see #9016). For example, build:
os: ubuntu-20.04
jobs:
post_install:
- pydoc-markdown --build --site-dir "$PWD/_build/html" I think this new config key, |
Besides, we are tracking "running arbitrary commands overriding Read the Docs ones" in #9062. So, I think we will be able to close this issue once you confirm us that the new config key |
@humitos I got it working. One issue is that I had to force install a different version of mkdocs that fixes this bug in mkdocs. The bug is that jinja2 3.1.0 breaks mkdocs and that causes the build to fail. Apparently "MkDocs version 1.2.4 was just released with only a fix for this, as well as version 1.3.0 with more new features." Please can you upgrade the version of mkdocs that readthedocs uses to one that isn't broken. I've made a separate issue for this. |
Hi @mcarans! Thanks a lot for giving it a try! I'm happy that it worked for you. I'm going to close this issue then, but feel free to re-open it if you consider. |
Currently to run custom steps in the readthedocs build process requires using a library readthedocs-custom-steps. it would be great if it were possible to run custom steps directly in .readthedocs.yml. This would need to be combined with direct specification of Python requirements in .readthedocs.yml as has previously been raised in #5572.
I could envisage something like the following:
.readthedocs.yml
This would replace using readthedocs-custom-steps as follows:
.readthedocs.yml
docs/.readthedocs-requirements.txt
pyroject.toml:
The text was updated successfully, but these errors were encountered: