Skip to content

Commit

Permalink
docs: add api doc and use the previous spiders doc
Browse files Browse the repository at this point in the history
Signed-off-by: Spiros Delviniotis <spirosdelviniotis@gmail.com>
  • Loading branch information
spirosdelviniotis committed May 12, 2017
1 parent bd1b9b9 commit 158e324
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 16 deletions.
2 changes: 1 addition & 1 deletion docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ services:
image: hepcrawl_base
environment: *env_variables
tty: true
command: bash -c "py.test tests/unit -vv && sphinx-build -nNW docs docs/_build/html && python setup.py sdist && ls dist/*"
command: bash -c "py.test tests/unit -vv && make -C docs html && python setup.py sdist && ls dist/*"
volumes: *common_volumes

celery:
Expand Down
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
SPHINXAPIDOC = sphinx-apidoc -f -o $(SOURCEDIR) $(CODEDIR)
SPHINXAPIDOC = sphinx-apidoc -M -P -f -o $(SOURCEDIR) $(CODEDIR) -E $(CODEDIR)/spiders

.PHONY: help
help:
Expand Down
3 changes: 2 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ this part of the documentation is for you.
.. toctree::
:maxdepth: 2

_source/hepcrawl
_source/hepcrawl.rst
spiders

Additional Notes
----------------
Expand Down
13 changes: 0 additions & 13 deletions docs/api.rst → docs/spiders.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,6 @@
.. currentmodule:: hepcrawl


API
===

.. automodule:: hepcrawl
:members:

Items
-----

.. automodule:: hepcrawl.items
:members:


Spiders
-------

Expand Down

0 comments on commit 158e324

Please sign in to comment.