Skip to content
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

Merged
merged 1 commit into from
Aug 20, 2020
Merged

Fix Read The Docs Build #567

merged 1 commit into from
Aug 20, 2020

Conversation

michaeljones
Copy link
Collaborator

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 appending index.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 the index.html issue though. Well we can just make sure we link to that directly but it is a shame if that is necessary.

@michaeljones
Copy link
Collaborator Author

Addresses: #475

Copy link
Contributor

@utzig utzig left a 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!

readthedocs.yml Outdated Show resolved Hide resolved
@michaeljones
Copy link
Collaborator Author

I have a personal preference for not hiding files though I would prefer more tools allowed for putting stuff in a config folder. That said, perhaps those two views are somewhat contradictory. Happy to do whatever the maintainers prefer. I've changed it to have a ..

Copy link
Contributor

@utzig utzig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vermeeren vermeeren linked an issue Aug 20, 2020 that may be closed by this pull request
@vermeeren vermeeren self-assigned this Aug 20, 2020
@vermeeren vermeeren self-requested a review August 20, 2020 20:34
@vermeeren vermeeren added bug Problem in existing code documentation Generated html, changelog, inline comments regression Something broke that worked in the past labels Aug 20, 2020
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.
Copy link
Collaborator

@vermeeren vermeeren left a 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.

@vermeeren vermeeren merged commit 5b509ff into master Aug 20, 2020
@vermeeren vermeeren deleted the readthedocs branch August 20, 2020 20:42
vermeeren added a commit that referenced this pull request Aug 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Problem in existing code documentation Generated html, changelog, inline comments regression Something broke that worked in the past
Projects
None yet
Development

Successfully merging this pull request may close these issues.

readthedocs.org Out of sync
3 participants