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 title of projections.rst #1983

Merged
merged 3 commits into from
Jan 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions docs/make_projection.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,16 +134,21 @@ def create_instance(prj_cls, instance_args):
'reference', 'projections.rst')
table = open(fname, 'w')

notes = """
header = """
.. (comment): DO NOT EDIT this file.
.. It is auto-generated by running : cartopy/docs/make_projection.py
.. Please adjust by making changes there.
.. It is included in the repository only to aid detection of changes.

.. _cartopy_projections:

Cartopy projection list
=======================


"""
table.write(textwrap.dedent(notes))

table.write(textwrap.dedent(header))

def prj_class_sorter(cls):
return (PRJ_SORT_ORDER.get(cls.__name__, 100),
Expand Down
7 changes: 5 additions & 2 deletions docs/source/reference/projections.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

.. _cartopy_projections:


Cartopy projection list
=======================


PlateCarree
-----------

Expand Down Expand Up @@ -563,5 +568,3 @@ SouthPolarStereo
ax = plt.axes(projection=ccrs.SouthPolarStereo())
ax.coastlines(resolution='110m')
ax.gridlines()