Skip to content

Commit

Permalink
Removed autodoc classes from sphinx docs extensions
Browse files Browse the repository at this point in the history
Align setup.cfg and tox.ini markup
  • Loading branch information
robmoorman committed Nov 23, 2016
1 parent a88f6fe commit 2b25a98
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 22 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ __pycache__/
.tox/
.coverage
.DS_Store
.python-version
*.egg-info/
*.py[cod]
coverage.xml
Expand Down
1 change: 0 additions & 1 deletion docs/requirements.txt

This file was deleted.

5 changes: 0 additions & 5 deletions docs/source/api/index.rst

This file was deleted.

13 changes: 3 additions & 10 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,8 @@
# 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('../../src'))
sys.path.insert(0, os.path.abspath('../../tests'))

os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
import django
django.setup()
# import os
# import sys

# -- General configuration ------------------------------------------------

Expand All @@ -35,7 +28,7 @@
# 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']
extensions = []

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand Down
2 changes: 0 additions & 2 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ Contents:
.. toctree::
:maxdepth: 2

api/index

Indices and tables
==================

Expand Down
8 changes: 4 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[isort]
line_length = 80
line_length=80

[flake8]
exclude=src/wagtailbakery/migrations/
max-line-length = 80
max-line-length=80

[tool:pytest]
DJANGO_SETTINGS_MODULE = tests.settings
django_find_project = false
DJANGO_SETTINGS_MODULE=tests.settings
django_find_project=false

[wheel]
universal=1

0 comments on commit 2b25a98

Please sign in to comment.