Skip to content

Commit

Permalink
Merge pull request #33 from wikimedia/docs-test-ci
Browse files Browse the repository at this point in the history
Use documentation builds as part of CI testing
  • Loading branch information
halfak committed Sep 16, 2019
2 parents 53dc135 + 16e5a1a commit 1e440eb
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 138 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ addons:
# command to install dependencies
install:
- pip install -r requirements.txt
- pip install -r docs/requirements.txt
- python setup.py install
- pip install twine
- pip install flake8
- python -m nltk.downloader stopwords

script:
- flake8 . --ignore=E722
- sphinx-build -anW -b html docs dist/docs
- sphinx-build -b linkcheck docs dist/docs

after_success:
- coverage report
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_static_path = []
32 changes: 3 additions & 29 deletions docs/reference/draftquality.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
.. _api_reference:

:orphan:

draftquality package
====================

Expand All @@ -8,32 +11,3 @@ Subpackages
.. toctree::

draftquality.feature_lists
draftquality.utilities

Submodules
----------

draftquality.about module
-------------------------

.. automodule:: draftquality.about
:members:
:undoc-members:
:show-inheritance:

draftquality.draftquality module
--------------------------------

.. automodule:: draftquality.draftquality
:members:
:undoc-members:
:show-inheritance:


Module contents
---------------

.. automodule:: draftquality
:members:
:undoc-members:
:show-inheritance:
22 changes: 0 additions & 22 deletions docs/reference/draftquality.utilities.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/reference/modules.rst

This file was deleted.

5 changes: 1 addition & 4 deletions draftquality/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
In this package, you'll find the
:mod:`feature lists <draftquality.feature_lists>` used to train models
for the supported wiki. There's a set of
:mod:`command-line utilities <draftquality.utilities>`
that are used to perform data pipeline operations specific to training and
testing a quality model.
for the supported wiki.
See the :ref:`API Reference <api_reference>` for low level details.
"""
Expand Down
46 changes: 0 additions & 46 deletions draftquality/draftquality.py

This file was deleted.

Empty file removed draftquality/utilities/__init__.py
Empty file.
24 changes: 0 additions & 24 deletions draftquality/utilities/fetch_text.py

This file was deleted.

5 changes: 0 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ def requirements(fname):
url=__url__, # noqa
license=__license__, # noqa
packages=find_packages(),
entry_points={
'console_scripts': [
'editquality=draftquality.draftquality:main'
],
},
long_description=read('README.md'),
install_requires=requirements('requirements.txt'),
classifiers=[
Expand Down

0 comments on commit 1e440eb

Please sign in to comment.