Add doctest capability to the docs, run it in Travis CI
This commit is contained in:
@@ -6,5 +6,7 @@ python:
|
|||||||
- "pypy"
|
- "pypy"
|
||||||
install:
|
install:
|
||||||
- pip install -r dev_requirements.txt --use-mirrors
|
- pip install -r dev_requirements.txt --use-mirrors
|
||||||
|
- python setup.py develop
|
||||||
script:
|
script:
|
||||||
- python setup.py test
|
- python setup.py test
|
||||||
|
- make -C docs doctest
|
||||||
|
|||||||
@@ -6,6 +6,11 @@
|
|||||||
Welcome to Elasticsearch's documentation!
|
Welcome to Elasticsearch's documentation!
|
||||||
=========================================
|
=========================================
|
||||||
|
|
||||||
|
.. doctest::
|
||||||
|
|
||||||
|
>>> from elasticsearch import Elasticsearch
|
||||||
|
>>> es = Elasticsearch()
|
||||||
|
|
||||||
Contents:
|
Contents:
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
|
|||||||
Reference in New Issue
Block a user