Skip to content

Commit

Permalink
Sphinx updates
Browse files Browse the repository at this point in the history
  • Loading branch information
itsderek23 committed May 13, 2020
2 parents ee195ae + fa5774f commit 8dc7a2b
Show file tree
Hide file tree
Showing 15 changed files with 32 additions and 204 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ instance/

# Sphinx documentation
docs/_build/
docs/modules.rst
docs/whisk*

# PyBuilder
target/
Expand Down
16 changes: 16 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.7
install:
- requirements: docs/requirements.txt
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ coverage: ## check code coverage quickly with the default Python
docs: ## generate Sphinx HTML documentation, including API docs
rm -f docs/whisk.rst
rm -f docs/modules.rst
sphinx-apidoc -o docs/ whisk
$(MAKE) -C docs clean
$(MAKE) -C docs html
$(BROWSER) docs/_build/html/index.html
Expand Down
1 change: 0 additions & 1 deletion docs/authors.rst

This file was deleted.

8 changes: 5 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'recommonmark']
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'recommonmark', 'autoapi.extension']

autoapi_dirs = ['../whisk']
autoapi_ignore = ['*/template/*']

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand Down Expand Up @@ -85,7 +88,7 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'alabaster'
html_theme = 'sphinx_rtd_theme'

# Theme options are theme-specific and customize the look and feel of a
# theme further. For a list of options available for each theme, see the
Expand Down Expand Up @@ -160,7 +163,6 @@
'Miscellaneous'),
]


# app setup hook
# see https://github.com/readthedocs/recommonmark/blob/master/docs/conf.py#L293
def setup(app):
Expand Down
2 changes: 0 additions & 2 deletions docs/index_old.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ Welcome to whisk's documentation!
:maxdepth: 2
:caption: Contents:

readme
installation
usage
modules
contributing
authors
history

Indices and tables
Expand Down
7 changes: 0 additions & 7 deletions docs/modules.rst

This file was deleted.

1 change: 1 addition & 0 deletions docs/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.. include:: ../README.md
1 change: 0 additions & 1 deletion docs/readme.rst

This file was deleted.

6 changes: 6 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Dependencies required for building docs
# conf.py calls import whisk, which will fail without these.
Click>=7.0
cookiecutter>=1.7.2
boto3
sphinx-autoapi
62 changes: 0 additions & 62 deletions docs/whisk.cli.commands.project.rst

This file was deleted.

29 changes: 0 additions & 29 deletions docs/whisk.cli.commands.rst

This file was deleted.

37 changes: 0 additions & 37 deletions docs/whisk.cli.rst

This file was deleted.

61 changes: 0 additions & 61 deletions docs/whisk.rst

This file was deleted.

2 changes: 2 additions & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ pytest==4.6.5
pytest-runner==5.1
check-manifest
recommonmark # Markdown in sphinx - https://www.sphinx-doc.org/en/master/usage/markdown.html
sphinx_rtd_theme
sphinx-autoapi

0 comments on commit 8dc7a2b

Please sign in to comment.