Skip to content

Commit

Permalink
Remove docs/source, adding apidoc to docs/Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
itsderek23 committed May 13, 2020
1 parent 9e43775 commit 9e1459a
Show file tree
Hide file tree
Showing 15 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ instance/

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

# PyBuilder
target/
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ version: 2

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

# Optionally set the version of Python and requirements required to build your docs
python:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ 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/source/ whisk
sphinx-apidoc -o docs/ whisk
$(MAKE) -C docs clean
$(MAKE) -C docs html
$(BROWSER) docs/_build/html/index.html
Expand Down
3 changes: 2 additions & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
SPHINXOPTS =
SPHINXBUILD = python -msphinx
SPHINXPROJ = whisk
SOURCEDIR = source/
SOURCEDIR = .
BUILDDIR = _build

# Put it first so that "make" without argument is like "make help".
Expand All @@ -17,4 +17,5 @@ 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
sphinx-apidoc -o $(SOURCEDIR) ../$(SPHINXPROJ)
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
File renamed without changes.
1 change: 1 addition & 0 deletions docs/contributing.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.. include:: ../CONTRIBUTING.rst
1 change: 1 addition & 0 deletions docs/history.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.. include:: ../HISTORY.rst
File renamed without changes.
File renamed without changes.
File renamed without changes.
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/source/contributing.rst

This file was deleted.

1 change: 0 additions & 1 deletion docs/source/history.rst

This file was deleted.

1 change: 0 additions & 1 deletion docs/source/readme.md

This file was deleted.

File renamed without changes.

0 comments on commit 9e1459a

Please sign in to comment.