Skip to content

Commit

Permalink
Merge pull request #317 from tomasstolker/documentation
Browse files Browse the repository at this point in the history
Building documentation with Python 3.6
  • Loading branch information
tomasstolker committed Mar 15, 2019
2 parents 4e55198 + 33a1b46 commit 5d49620
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 17 deletions.
5 changes: 5 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
build:
image: latest

python:
version: 3.6
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ docs:
rm -f docs/pynpoint.readwrite.rst
rm -f docs/pynpoint.processing.rst
rm -f docs/pynpoint.util.rst
sphinx-apidoc -o docs/ pynpoint
sphinx-apidoc -o docs pynpoint
$(MAKE) -C docs clean
$(MAKE) -C docs html

Expand Down
22 changes: 6 additions & 16 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#

import os
import sys

sys.path.insert(0, os.path.abspath('..'))
# causes error on rtd
# import pynpoint
sys.path.insert(0, os.path.abspath('../'))


# -- Project information -----------------------------------------------------
Expand Down Expand Up @@ -47,6 +45,7 @@
# ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.napoleon',
]

# Add any paths that contain templates here, relative to this directory.
Expand All @@ -73,17 +72,8 @@
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']

# If true, sectionauthor and moduleauthor directives will be shown in the
# output. They are ignored by default.
#
show_authors = False

# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
#
html_show_copyright = True

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
pygments_style = None


# -- Options for HTML output -------------------------------------------------
Expand Down Expand Up @@ -162,7 +152,7 @@
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'PynPoint.tex', 'PynPoint Documentation',
author, 'manual'),
'Tomas Stolker, Markus Bonse, Sascha Quanz, and Adam Amara', 'manual'),
]


Expand All @@ -183,7 +173,7 @@
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'PynPoint', 'PynPoint Documentation',
author, 'PynPoint', 'One line description of project.',
author, 'PynPoint', 'Pipeline for processing and analysis of high-contrast imaging data',
'Miscellaneous'),
]

Expand Down

0 comments on commit 5d49620

Please sign in to comment.