Skip to content

Commit

Permalink
Merge pull request #26 from brittonsmith/docs
Browse files Browse the repository at this point in the history
Add napoleon extension and error out on warnings in docs build.
  • Loading branch information
Nathan Goldbaum committed Oct 9, 2018
2 parents f833acd + 13f16cb commit f4ca788
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#

# You can set these variables from the command line.
SPHINXOPTS =
SPHINXOPTS = -W
SPHINXBUILD = sphinx-build
SPHINXPROJ = yt_astro_analysis
SOURCEDIR = source
Expand All @@ -17,4 +17,4 @@ help:
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
3 changes: 2 additions & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
'sphinx.ext.autodoc',
'sphinx.ext.imgmath',
'sphinx.ext.autosummary',
'sphinx.ext.intersphinx'
'sphinx.ext.intersphinx',
'sphinx.ext.napoleon'
]

intersphinx_mapping = \
Expand Down

0 comments on commit f4ca788

Please sign in to comment.