Skip to content

[WIP]DOC: Fixed more warnings #20542

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

Merged
merged 4 commits into from
Apr 4, 2018

Conversation

TomAugspurger
Copy link
Contributor

Also trying to fail on warnings. I think it's not working yet.

Upstream issue with linking to section headers in nbsphinx.
@@ -499,7 +499,7 @@ Other Enhancements
- ``DataFrame.to_excel()`` has a new ``freeze_panes`` parameter to turn on Freeze Panes when exporting to Excel (:issue:`15160`)
- ``pd.read_html()`` will parse multiple header rows, creating a MutliIndex header. (:issue:`13434`).
- HTML table output skips ``colspan`` or ``rowspan`` attribute if equal to 1. (:issue:`15403`)
- :class:`pandas.io.formats.style.Styler` template now has blocks for easier extension, :ref:`see the example notebook <style.ipynb#Subclassing>` (:issue:`15649`)
Copy link
Member

Choose a reason for hiding this comment

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

From what I read in https://nbsphinx.readthedocs.io/en/0.3.2/a-normal-rst-file.html#links-to-notebooks-ye-olde-way, the above should actually work? Or should it be a relative link? (../style.ipynb) I think there is value in being able to reference the subsection

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Lost my comment.

Those should work, but newer nbsphinxes seem to have issues with them. I think spatialaudio/nbsphinx#174 is tracking this.

Copy link
Member

Choose a reason for hiding this comment

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

We can also pin nbsphinx to 0.3.1 (the new release breaking this is only from last day)

(but not sure if that is worth it for this one link ..)

Copy link

Choose a reason for hiding this comment

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

If you use :ref:-style links, the link has to be relative to the base source directory and it has to start with as slash (since version 0.3.0, see https://github.com/spatialaudio/nbsphinx/blob/master/NEWS.rst and the link mentioned above, look at the "Note" section in the end).
This is a breaking change between 0.3.0 and older versions.

AFAICT, the issue spatialaudio/nbsphinx#174 is not related to :ref:-style links. It's a problem with re-writing "normal" reST links and its interactions with the "plot directive" from matplotlib (but it might also appear with other extensions?).

Copy link
Member

Choose a reason for hiding this comment

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

@mgeier Thanks for the input! So it should just be the slash that is missing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @mgeier, somehow I read that note about the / multiple times and missed it :)

@codecov
Copy link

codecov bot commented Mar 30, 2018

Codecov Report

Merging #20542 into master will increase coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #20542      +/-   ##
==========================================
+ Coverage   91.81%   91.84%   +0.02%     
==========================================
  Files         152      152              
  Lines       49259    49260       +1     
==========================================
+ Hits        45229    45242      +13     
+ Misses       4030     4018      -12
Flag Coverage Δ
#multiple 90.23% <ø> (+0.02%) ⬆️
#single 41.89% <ø> (ø) ⬆️
Impacted Files Coverage Δ
pandas/core/series.py 93.85% <0%> (ø) ⬆️
pandas/plotting/_converter.py 66.81% <0%> (+1.73%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c4b4a81...230c29a. Read the comment docs.

@TomAugspurger
Copy link
Contributor Author

I've removed the changes to the DocBuilder with the errors since I haven't been able to get it working yet. I'll try again once we're error free.

@TomAugspurger
Copy link
Contributor Author

Merging. Down to 2 warnings now.

/tmp/doc/source/index.rst.rst: WARNING: file not found: 'pandas.pdf'
/tmp/doc/source/index.rst.rst: WARNING: file not found: 'pandas.zip'

@TomAugspurger TomAugspurger merged commit 6d610a4 into pandas-dev:master Apr 4, 2018
@TomAugspurger TomAugspurger deleted the doc-more-warnings branch April 4, 2018 19:20
@mgeier
Copy link

mgeier commented Apr 5, 2018

The warnings sound very much like spatialaudio/nbsphinx#174, feel free to contribute there.

@TomAugspurger
Copy link
Contributor Author

Ah, interesting, I'll take a look.

In this case the files really may not exist, since we don't do the PDF builds on our CI.

@mgeier
Copy link

mgeier commented Apr 8, 2018

@TomAugspurger I assume the warning is caused by this:

`PDF Version <pandas.pdf>`__
`Zipped HTML <pandas.zip>`__

... which would be exactly the same case as spatialaudio/nbsphinx#174.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants