-
-
Notifications
You must be signed in to change notification settings - Fork 201
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
Fix Read The Docs Build #567
Conversation
Addresses: #475 |
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.
Thanks for adding this! Checking the docs it looks like the name could also be .readthedocs.yaml
, with the "." prefix that is, so it stays hidden in a ls
. I wonder if that would not be a better option here!
I have a personal preference for not hiding files though I would prefer more tools allowed for putting stuff in a |
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
The python version is to try to make sure it uses at least 3.5 as that is what the setup.py file says should work. We also try to get it to install the packages as required in the setup.py file. I am very out of date with Python packaging though.
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.
Rebased a bit for cleaner history, all is good.
With this configuration in place it seems to pass: https://readthedocs.org/projects/breathe/builds/
It seemed to previously be running with Python 2, I guess? Given that it was failing on annotations. https://readthedocs.org/projects/breathe/builds/11704046/
The config opts into the v2 settings for read the docs which seems to run Python 3 by default but we go further to set the Python version to 3.5 and ask it to install the dependences from setup.py.
I am very out of date with the Python ecosystem though so it might that there are better ways. Seems to work though.
Though oddly,
https://breathe.readthedocs.io/en/readthedocs/
shows the old version with Sphinx 1.2.2 referenced at the bottom but appendingindex.html
to the end (https://breathe.readthedocs.io/en/readthedocs/index.html
) seems more up to date and references Sphinx 3.2.1. That said, I have no idea what the docs are meant to look like at the moment so maybe they're both different kinds of wrong. Not sure of the best way to resolve theindex.html
issue though. Well we can just make sure we link to that directly but it is a shame if that is necessary.