-
-
Notifications
You must be signed in to change notification settings - Fork 816
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
Use dirhtml builder for Read the Docs #965
Conversation
We call RTD is looking for an Will update. |
Hi @ezio-melotti. Thanks for the ping on a readthedocs-related issue 👍🏼 I read the PR but I'm not sure to understand how I can be useful here. Are you suggesting that Read the Docs should also check for |
I pinged you for a few reasons:
|
Yes, we're overriding the build and running Sphinx our own way via Lines 7 to 9 in 05f6d0c
|
@ezio-melotti Got it! All your bullets make sense and this is good feedback 👍🏼
When using There are some "inconsistencies" in the config file currently that we plan to achieve in the v3 of it. We didn't want to introduce too many changes together with
This does not work like you are describing on purpose. Instead of looking for builder's name output we decided to look for format type (html, pdf, epub, etc). The idea behind this is to be able to support more generic doctools that are not Sphinx. Currently, we only support HTML, but we planned to support all the other formats as well.
What would expect from Read the Docs to do in this case? (I'm asking a general/open question without mentioning any idea to not interfere in your answer 😄 ) |
I'm not to familiar with what RTD does behind the scenes, but the way the This is not a big deal and in a way it even seems more explicit and flexible (which is good!), but it also feel a bit hackish and not too easy to figure out. |
Here you are describing exactly one of the benefits of "let Read the Docs to handle the build" over "overwrite the build process completely with a custom one 100% managed by the user". When Read the Docs handles the build it has a lot more data about how that process will be and can make accurate decisions on behalf of the user automatically. On the other hand, if the build is customized, Read the Docs cannot know what will be the out of those command and where it will end 1 IMHO, if your build process follow the standards and is compatible with the regular Read the Docs build process, As you can see, there are pros and cons for each of the approaches considered here and I don't think Read the Docs will be able to have the best of the two until we implemented what I mentioned in the note 1 --but we are not ready to start working on that yet. I know that I'm not giving you a concrete answer here or "what to do next?" or "how Read the Docs could help on these cases?", but I hope that at least it clarifies why we can't know exactly what's happening under Footnotes
|
Thank you for your comment, now I definitely have a better understanding of how everything works. |
Follow on from #933, we should use the dirhtml builder instead of html, so the redirects work as before.
Example redirect: