Repository navigation
Pin numpydoc to 0.8.0 (fix double autoescape) - #5961
Merged
Merged
Conversation
jrbourbeau
reviewed
Feb 28, 2020
jrbourbeau
left a comment
Member
There was a problem hiding this comment.
Thanks for the PR @gforsyth!
Member
|
Also, I suspect there's probably similar things happening over in |
Contributor
Author
Will do. Also testing out a potential fix in |
This is a temporary fix for the doubly escaped `*`s that are present in the current dask docs (and `pandas`, and `scipy`...). This issue started with `numpydoc=0.9.0` when `numpydoc` started escaping `*args` and `**kwargs`. sphinx autosummary _also_ escapes `*args` and `**kwargs`, so in conjunction, they end up double-escaped: ``` Client.run(self, function, \*args, \*\*kwargs) ``` There are a couple of different ways to fix this TheRightWay™ but this will make the docs prettier for now.
gforsyth
force-pushed
the
pin_numpydoc
branch
from
February 28, 2020 19:44
5baf931 to
edcf9d4
Compare
Contributor
Author
|
This is ready for another look @jrbourbeau ! |
jrbourbeau
approved these changes
Feb 28, 2020
jrbourbeau
left a comment
Member
There was a problem hiding this comment.
Thanks @gforsyth! This is in
Member
|
Also, I noticed this was your first PR to this repository. Welcome : ) |
Contributor
Author
|
Long time listener, first time caller. Thanks @jrbourbeau ! |
gforsyth
added a commit
to gforsyth/distributed
that referenced
this pull request
Feb 28, 2020
Similar to dask/dask#5961, recent changes to `numpydoc` lead to function signatures displayed using `autosummary` to have doubly-escaped `*`s. This commit swaps out `numpydoc` in favor of `napoleon` -- there are a couple of benefits: * no more double-escaped function signatures * one less dependency for docs (napoleon is shipped with sphinx) I've added a make target to automatically generate API docs using `sphinx-apidoc` but this isn't required for `autosummary` compatibility. It can always be added as a requirement of the `html` target at a later time.
gforsyth
added a commit
to gforsyth/distributed
that referenced
this pull request
Mar 14, 2020
Similar to dask/dask#5961, recent changes to `numpydoc` lead to function signatures displayed using `autosummary` to have doubly-escaped `*`s. This pins `numpydoc` to version 0.8.0 to avoid the regression until a patch is merged upstream. Also small changes to avoid a sphinx timeout looking for an intersphinx inventory, and a fixed a misformatted code-block
jrbourbeau
pushed a commit
to dask/distributed
that referenced
this pull request
Mar 14, 2020
Similar to dask/dask#5961, recent changes to `numpydoc` lead to function signatures displayed using `autosummary` to have doubly-escaped `*`s. This pins `numpydoc` to version 0.8.0 to avoid the regression until a patch is merged upstream. Also small changes to avoid a sphinx timeout looking for an intersphinx inventory, and a fixed a misformatted code-block
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a temporary fix for the doubly escaped
*s that are present inthe current dask docs (and
pandas, andscipy...).This issue started with
numpydoc=0.9.0whennumpydocstartedescaping
*argsand**kwargs. sphinx autosummary also escapes*argsand**kwargs, so in conjunction, they end up double-escaped:There are a couple of different ways to fix this TheRightWay™ but this
will make the docs prettier for now. Also a quickfix for a typo in the docs on
masterblack dask/flake8 dask