Skip to content

Commit c7e3acf

Browse files
authored
Update docs (#29)
* fix broken links * add job to test the docs * fix links to RTD * remove RTD config * remove sphinx_nbexamples * add coverage test * use [email protected] * fix email
1 parent cdda979 commit c7e3acf

File tree

11 files changed

+73
-105
lines changed

11 files changed

+73
-105
lines changed

.circleci/config.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2.1
22

33
orbs:
4-
psyplot: psyplot/[email protected].19
4+
psyplot: psyplot/[email protected].24
55
mattermost-plugin-notify: nathanaelhoun/[email protected]
66

77
executors:
@@ -50,17 +50,25 @@ workflows:
5050
name: test-matplotlib-latest
5151
parallelism: << pipeline.parameters.parallelism >>
5252
run-job: << pipeline.parameters.test-matplotlib-latest >>
53+
pytest_args: --cov=psy_simple
5354
build_refs: true
5455
requires:
5556
- install
5657
- psyplot/test-parallel:
5758
name: test-matplotlib-3.3
5859
parallelism: << pipeline.parameters.parallelism >>
5960
run-job: << pipeline.parameters.test-matplotlib-3_3 >>
61+
pytest_args: --cov=psy_simple
6062
build_refs: true
6163
packages: matplotlib=3.3
6264
requires:
6365
- install
66+
- psyplot/build-docs:
67+
name: test-docs
68+
run-job: << pipeline.parameters.build_docs >>
69+
builders: linkcheck
70+
requires:
71+
- install
6472
- mattermost-plugin-notify/approval-notification:
6573
name: notify-deploy
6674
context: mattermost
@@ -70,6 +78,7 @@ workflows:
7078
requires:
7179
- test-matplotlib-latest
7280
- test-matplotlib-3.3
81+
- test-docs
7382
- hold-for-deploy:
7483
type: approval
7584
requires:

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Added
9999
-----
100100
* Changelog
101101
* ``interp_bounds`` formatoption for the ``plot2d`` plot method (see the
102-
`docs <https://psyplot.readthedocs.io/projects/psy-simple/en/latest/api/psy_simple.plotters.html#psy_simple.plotters.Simple2DPlotter.interp_bounds>`__)
102+
`docs <https://psyplot.github.io/psy-simple/api/psy_simple.plotters.html#psy_simple.plotters.Simple2DPlotter.interp_bounds>`__)
103103
* Added the ``fldmean`` plot method that can be used to directly calculate and
104104
plot the mean over the x- and y-dimensions
105105

README.rst

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ psy-simple: The psyplot plugin for simple visualizations
1717
* - implementations
1818
- |supported-versions| |supported-implementations|
1919

20-
.. |docs| image:: http://readthedocs.org/projects/psy-simple/badge/?version=latest
21-
:alt: Documentation Status
22-
:target: http://psy-simple.readthedocs.io/en/latest/?badge=latest
20+
.. |docs| image:: https://img.shields.io/github/deployments/psyplot/psy-simple/github-pages
21+
:alt: Documentation
22+
:target: http://psyplot.github.io/psy-simple/
2323

2424
.. |circleci| image:: https://circleci.com/gh/psyplot/psy-simple/tree/master.svg?style=svg
2525
:alt: CircleCI
@@ -70,21 +70,18 @@ It provides the basics for all the more advanced and specialized plugins like
7070
the psy-maps_ or psy-reg_ plugin.
7171

7272
See the full documentation on
73-
`readthedocs.org <http://psyplot.readthedocs.io/projects/psy-simple>`__ for all
74-
`plot methods`_ and examples_.
73+
`psyplot.github.io/psy-simple/ <http://psyplot.github.io/psy-simple>`__ for all
74+
`plot methods`_, and checkout the examples_.
7575

76-
.. _psy-maps: http://psyplot.readthedocs.io/projects/psy-maps/
77-
.. _psy-reg: http://psyplot.readthedocs.io/projects/psy-reg/
78-
.. _plot methods: http://psyplot.readthedocs.io/projects/psy-simple/en/latest/plot_methods
79-
.. _examples: http://psyplot.readthedocs.io/projects/psy-simple/en/latest/examples
76+
.. _psy-maps: http://psyplot.github.io/psy-maps/
77+
.. _psy-reg: http://psyplot.github.io/psy-reg/
78+
.. _plot methods: http://psyplot.github.io/psy-simple/plot_methods
79+
.. _examples: http://psyplot.github.io/examples/
8080

8181
Copyright
8282
---------
83-
Copyright (C) 2021 Helmholtz-Zentrum Hereon
84-
85-
Copyright (C) 2020-2021 Helmholtz-Zentrum Geesthacht
86-
87-
Copyright (C) 2016-2021 University of Lausanne
83+
Copyright © 2021 Helmholtz-Zentrum Hereon, 2020-2021 Helmholtz-Zentrum
84+
Geesthacht, 2016-2021 University of Lausanne
8885

8986
This file is part of psy-simple and is released under the GNU LGPL-3.O license.
9087
See COPYING and COPYING.LESSER in the root of the repository for full
@@ -100,4 +97,4 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10097
GNU LGPL-3.0 license for more details.
10198

10299
You should have received a copy of the GNU LGPL-3.0 license
103-
along with this program. If not, see <https://www.gnu.org/licenses/>.
100+
along with this program. If not, see https://www.gnu.org/licenses/.

docs/conf.py

Lines changed: 16 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -70,25 +70,15 @@
7070
'IPython.sphinxext.ipython_directive',
7171
'psyplot.sphinxext.extended_napoleon',
7272
'autodocsumm',
73-
'sphinx_nbexamples',
7473
]
7574

7675
# Add any paths that contain templates here, relative to this directory.
7776
templates_path = ['_templates']
7877

79-
# on_rtd is whether we are on readthedocs.org, this line of code grabbed from
80-
# docs.readthedocs.org
81-
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
82-
8378
# process the examples if they don't exist already
8479
process_examples = (
8580
not osp.exists(osp.join(osp.dirname(__file__), 'examples')))
8681

87-
if on_rtd:
88-
spr.call([sys.executable] +
89-
('-m ipykernel install --user --name python3 '
90-
'--display-name python3').split())
91-
9282
if not osp.exists(osp.join(osp.dirname(__file__), 'api')):
9383
spr.check_call(['bash', 'apigen.bash'])
9484

@@ -164,18 +154,13 @@
164154
# The theme to use for HTML and HTML Help pages. See the documentation for
165155
# a list of builtin themes.
166156

167-
if not on_rtd: # only import and set the theme if we're building docs locally
168-
import sphinx_rtd_theme
169-
html_theme = 'sphinx_rtd_theme'
170-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
171-
172-
# Add any paths that contain custom static files (such as style sheets)
173-
# here, relative to this directory. They are copied after the builtin
174-
# static files, so a file named "default.css" will overwrite the builtin
175-
# "default.css".
176-
html_static_path = ['_static']
157+
html_theme = 'sphinx_rtd_theme'
177158

178-
# otherwise, readthedocs.org uses their theme by default, so no need to specify
159+
# Add any paths that contain custom static files (such as style sheets)
160+
# here, relative to this directory. They are copied after the builtin
161+
# static files, so a file named "default.css" will overwrite the builtin
162+
# "default.css".
163+
html_static_path = ['_static']
179164

180165
# Output file base name for HTML help builder.
181166
htmlhelp_basename = 'psy-simpledoc'
@@ -231,23 +216,18 @@
231216

232217
# Example configuration for intersphinx: refer to the Python standard library.
233218
intersphinx_mapping = {
234-
'pandas': ('http://pandas.pydata.org/pandas-docs/stable/', None),
219+
'pandas': ('https://pandas.pydata.org/pandas-docs/stable/', None),
235220
'numpy': ('https://docs.scipy.org/doc/numpy/', None),
236-
'matplotlib': ('http://matplotlib.org/', None),
237-
'sphinx': ('http://www.sphinx-doc.org/en/stable/', None),
238-
'xarray': ('http://xarray.pydata.org/en/stable/', None),
239-
'cartopy': ('http://scitools.org.uk/cartopy/docs/latest/', None),
240-
'mpl_toolkits': ('http://matplotlib.org/basemap/', None),
241-
'psyplot': ('https://psyplot.readthedocs.io/en/dev', None),
242-
'psy_maps': (
243-
'https://psyplot.readthedocs.io/projects/psy-maps/en/latest/', None),
244-
'psy_reg': ('https://psyplot.readthedocs.io/projects/psy-reg/en/latest/',
245-
None),
221+
'matplotlib': ('https://matplotlib.org/stable/', None),
222+
'sphinx': ('https://www.sphinx-doc.org/en/stable/', None),
223+
'xarray': ('https://xarray.pydata.org/en/stable/', None),
224+
'cartopy': ('https://scitools.org.uk/cartopy/docs/latest/', None),
225+
'mpl_toolkits': ('https://matplotlib.org/basemap/', None),
226+
'psyplot': ('https://psyplot.github.io/psyplot/', None),
227+
'psy_maps': ('https://psyplot.github.io/psy-maps/', None),
228+
'psy_reg': ('https://psyplot.github.io/psy-reg/', None),
229+
'python': ('https://docs.python.org/3/', None),
246230
}
247-
if six.PY3:
248-
intersphinx_mapping['python'] = ('https://docs.python.org/3.7/', None)
249-
else:
250-
intersphinx_mapping['python'] = ('https://docs.python.org/2.7/', None)
251231

252232

253233
def group_formatoptions(app, what, name, obj, section, parent):

docs/environment.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ dependencies:
1313
- psy-simple
1414
- psyplot-gui
1515
- autodocsumm
16-
- sphinx-nbexamples
1716
- pip

docs/index.rst

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ the psy-maps_ or psy-reg_ plugin.
1616
See the :ref:`plot_methods` and :ref:`gallery_examples` for more information.
1717

1818

19-
.. _psy-maps: http://psyplot.readthedocs.io/projects/psy-maps/
20-
.. _psy-reg: http://psyplot.readthedocs.io/projects/psy-reg/
19+
.. _psy-maps: http://psyplot.github.io/psy-maps/
20+
.. _psy-reg: http://psyplot.github.io/psy-reg/
2121

2222
.. start-badges
2323
@@ -30,15 +30,15 @@ See the :ref:`plot_methods` and :ref:`gallery_examples` for more information.
3030
* - docs
3131
- |docs|
3232
* - tests
33-
- |circleci| |appveyor| |requires| |codecov|
33+
- |circleci| |appveyor| |codecov|
3434
* - package
3535
- |version| |conda| |github| |zenodo|
3636
* - implementations
3737
- |supported-versions| |supported-implementations|
3838

39-
.. |docs| image:: http://readthedocs.org/projects/psy-simple/badge/?version=latest
40-
:alt: Documentation Status
41-
:target: http://psy-simple.readthedocs.io/en/latest/?badge=latest
39+
.. |docs| image:: https://img.shields.io/github/deployments/psyplot/psy-simple/github-pages
40+
:alt: Documentation
41+
:target: http://psyplot.github.io/psy-simple/
4242

4343
.. |circleci| image:: https://circleci.com/gh/psyplot/psy-simple/tree/master.svg?style=svg
4444
:alt: CircleCI
@@ -52,10 +52,6 @@ See the :ref:`plot_methods` and :ref:`gallery_examples` for more information.
5252
:alt: Coverage
5353
:target: https://codecov.io/gh/psyplot/psy-simple
5454

55-
.. |requires| image:: https://requires.io/github/psyplot/psy-simple/requirements.svg?branch=master
56-
:alt: Requirements Status
57-
:target: https://requires.io/github/psyplot/psy-simple/requirements/?branch=master
58-
5955
.. |version| image:: https://img.shields.io/pypi/v/psy-simple.svg?style=flat
6056
:alt: PyPI Package latest release
6157
:target: https://pypi.python.org/pypi/psy-simple
@@ -91,12 +87,33 @@ Documentation
9187

9288
installing
9389
plot_methods
94-
examples/index
9590
contribute
9691
api/psy_simple
9792
changelog
9893

9994

95+
Copyright
96+
---------
97+
Copyright © 2021 Helmholtz-Zentrum Hereon, 2020-2021 Helmholtz-Zentrum
98+
Geesthacht, 2016-2021 University of Lausanne
99+
100+
This file is part of psy-simple and is released under the GNU LGPL-3.O license.
101+
See COPYING and COPYING.LESSER in the root of the repository for full
102+
licensing details.
103+
104+
This program is free software: you can redistribute it and/or modify
105+
it under the terms of the GNU Lesser General Public License version 3.0 as
106+
published by the Free Software Foundation.
107+
108+
This program is distributed in the hope that it will be useful,
109+
but WITHOUT ANY WARRANTY; without even the implied warranty of
110+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
111+
GNU LGPL-3.0 license for more details.
112+
113+
You should have received a copy of the GNU LGPL-3.0 license
114+
along with this program. If not, see https://www.gnu.org/licenses/.
115+
116+
100117

101118
Indices and tables
102119
==================

docs/installing.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ How to install
1111
Installation using conda
1212
^^^^^^^^^^^^^^^^^^^^^^^^
1313
We highly recommend to use conda_ for installing psy-simple. After downloading
14-
the installer from anaconda_, you can install psy-simple simply via::
14+
the `miniconda installer`_, you can install psy-simple simply via::
1515

1616
$ conda install -c conda-forge psy-simple
1717

18-
.. _anaconda: https://www.continuum.io/downloads
19-
.. _conda: http://conda.io/
18+
.. _miniconda installer: https://conda.io/en/latest/miniconda.html
19+
.. _conda: https://docs.conda.io/en/latest/
2020

2121
Installation using pip
2222
^^^^^^^^^^^^^^^^^^^^^^
@@ -37,5 +37,5 @@ First, clone the github_ repository, and install psy-simple and pytest_. Then
3737

3838
$ pytest
3939

40-
.. _pytest: https://pytest.org/latest/contents.html
40+
.. _pytest: https://pytest.org/en/latest/contents.html
4141
.. _github: https://github.com/psyplot/psy-simple

psy_simple/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
__license__ = "LGPL-3.0-only"
3838

3939
__maintainer__ = "Philipp S. Sommer"
40-
__email__ = "philipp.sommer@hereon.de"
40+
__email__ = "psyplot@hereon.de"
4141

4242
__status__ = "Production"
4343

readthedocs.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

requirements.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)