-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Create make.bat for building sphinx docs on Windows #981
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
Conversation
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.
It runs for me but raises a bunch of warnings, and the dependency install had a speedbump. I didn't have the There are a bunch of warnings of this nature: c:\python\pvlib-python\pvlib-python\docs\sphinx\source\clearsky.rst:: WARNING: image file not readable: savefiglocation-basic.png When I look at the generated files
there are broken links to the missing figures. Not sure what I should look for to see why the figures are missing. When processing WARNING:matplotlib.legend:No handles with labels found to put in legend. |
Thanks for trying it out @cwhanse.
Not sure if there's a good way to avoid that. I think we do want a newer version of docutils than 0.14. Maybe worth a note in #982?
I saw similar issues -- see the note in the original post, but it was fixed by upgrading ipython to
Not sure about this one. I don't see it in my builds. |
Yes
With ipython=7.15.0 (I was on 6.X.X) Exception occurred: Since clearsky.rst hasn't changed, must be a difference between your configuration and mine. Any ideas? |
Not really. If you post a |
python 3.6.4 Emailed you the freeze file. |
From a clean py3.6 environment, the make file almost runs to completion with the following dependencies: sphinx, sphinx_rtd_theme, nbsphinx, ipython and pillow. sphinx hangs and complains about the re-use of |
I've sometimes have builds hang on windows that pick up again like nothing happened when I hit enter a few times to "wake it up". No clue why, but I'm inclined to blame the windows command prompt.
Is |
No, but it used to be. Seems like the build problems are not directly related to adding the |
thanks @kanderso-nrel |
Tests addedUpdates entries todocs/sphinx/source/api.rst
for API changes.docs/sphinx/source/whatsnew
for all changes. Includes link to the GitHub Issue with:issue:`num`
or this Pull Request with:pull:`num`
. Includes contributor name and/or GitHub username (link with:ghuser:`user`
).New code is fully documented. Includes numpydoc compliant docstrings, examples, and comments where necessary.This is the stock script from Sphinx. Works on my Windows test machine, would be good if someone else could verify it works for them as well.
In case this will help someone searching in the future: building the docs on Windows with ipython 7.8.0 caused lots of warnings like
WARNING: image file not readable: savefiglocation-basic.png
. It appears to be some issue with backslashes in filepaths (note the lack of separation betweensavefig
andlocation-basic.png
). Didn't see any warnings on Linux with the same ipython version. Upgrading to 7.15.0 fixed it.I also noticed this warning:
source/whatsnew/v0.3.0.txt:51: WARNING: undefined label: api (if the link has no caption the label must precede a section header)
. Here's the link it's talking about: https://pvlib-python.readthedocs.io/en/stable/whatsnew.html#id85,(Moved to API reference in GH258)
Apparently it links out to the pandas docs now and I only noticed it from a transient network quirk that caused the pandas intersphinx inventory to not load when I was building the docs. Probably not a big deal, but thought I'd mention it.