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

Improve docs for Cython extensions #1169

Merged
merged 6 commits into from
Nov 6, 2018
Merged

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Nov 5, 2018

Rationale

Both .geodesic and .trace are documented, but do not show up in the docs. There are currently errors and/or bad looking bits that are not fixed because they never show up. We can also use Cython's embedsignature option to avoid copying out signatures in docs.

Implications

Fixes #996.

This means we don't need to duplicate the signature in the reST files
and just leave it to autodoc.
These means we can just use backticks and don't need to add a specific
:func:, :class:, etc.
Also fix errors: return values were treated as multiple types; __cinit__
is not read as a constructor; types were missing.
@QuLogic
Copy link
Member Author

QuLogic commented Nov 5, 2018

In the outline, cartopy.geodesic is no longer empty and cartopy.trace is linked to something.

Copy link
Contributor

@dopplershift dopplershift left a comment

Choose a reason for hiding this comment

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

Looks like a nice clean up.

@dopplershift dopplershift added this to the 0.17 milestone Nov 6, 2018
@dopplershift dopplershift merged commit cf338ed into SciTools:master Nov 6, 2018
@QuLogic QuLogic deleted the cython-docs branch November 6, 2018 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cartopy.geodesic is undocumented
2 participants