Skip to content
This repository has been archived by the owner on Aug 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #141 from dstansby/napolean
Browse files Browse the repository at this point in the history
Switch to using Napoleon for docstrings
  • Loading branch information
dstansby committed Feb 7, 2020
1 parent e2bffa8 commit 53b45ee
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
4 changes: 2 additions & 2 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
#

# You can set these variables from the command line.
SPHINXOPTS =
SPHINXOPTS = --keep-going -W
SPHINXBUILD = python -m sphinx
PAPER =
BUILDDIR = build

# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source -W
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source

Expand Down
8 changes: 8 additions & 0 deletions doc/source/changes.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Changelog
=========

0.4.3
-----

- Improved the error thrown when trying to use
:class`pfsspy.tracing.FotranTracer` without the ``streamtracer`` module
installed.
- Fixed some layout issues in the documentation.

0.4.2
-----

Expand Down
5 changes: 2 additions & 3 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,12 @@
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
'sphinx.ext.napoleon',
'sphinx.ext.mathjax',
'sphinx_automodapi.automodapi',
'numpydoc',
'sphinx_gallery.gen_gallery',
]
numpydoc_show_class_members = False

napoleon_google_docstring = False

sphinx_gallery_conf = {
'examples_dirs': '../../examples',
Expand Down
2 changes: 0 additions & 2 deletions requirements/docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
graphviz
pillow
sphinx-automodapi>=0.10
numpydoc
sunpy_sphinx_theme
sphinx_rtd_theme
sphinx-gallery
sphinx>2

0 comments on commit 53b45ee

Please sign in to comment.