Use hatch on RTD#402
Conversation
|
A PR has been generated to the instance repo: You can check out the PR to preview your changes |
|
Down from 44s to 26s. |
Zethson
left a comment
There was a problem hiding this comment.
Great!
However, I wonder whether we lose the fail on warning here.
does not have a-W and we're deleting the sphinx section.
|
it should probably be added to |
Zethson
left a comment
There was a problem hiding this comment.
Now I think it should be good.
|
Not sure why we didn't have this in |
|
Actually, why does this work? https://about.readthedocs.com/blog/2024/12/deprecate-config-files-without-sphinx-or-mkdocs-config/ We should need a configuration key. |
|
Read the last sentence of your link:
|
There was a problem hiding this comment.
About the -W flag: since Sphinx 8.1 it no longer cancels the build, so we get a -1 exit code and also fully built docs, which I think is perfect for the CLI. “Something is wrong” but you can inspect the complete docs.
I wish it was possible to have RTD’s PR status check fail while also having it upload the docs, that would be perfection.
I updated the dependency to sphinx >=8.1 so users can rely on that behavior.
|
I think if you provide a custom build command, the entire |
Trying to get RTD to build the docs with hatch.
If this works, it would be an alternative to #400