File tree Expand file tree Collapse file tree 3 files changed +16
-15
lines changed Expand file tree Collapse file tree 3 files changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,14 @@ build_app:
2828 @echo " $( ATTN_COLOR) ==> build_app $( NO_COLOR) "
2929 @python setup.py build dist
3030
31+ .PHONY : docs
32+ docs :
33+ @echo " $( ATTN_COLOR) ==> docs $( NO_COLOR) "
34+ @rm -rf ./docs/_build
35+ @tox -e docs
36+ @cd ./docs/_build && zip -r docs_html.zip . -x " .*" -x " __MACOSX"
37+ @echo " $( ATTN_COLOR) ==> Docs pages can be found at ./docs/_build/html, docs bundle available at ./docs/_build/docs_html.zip"
38+
3139.PHONY : test
3240test :
3341 @echo " $( ATTN_COLOR) ==> test $( NO_COLOR) "
Original file line number Diff line number Diff line change 11Welcome to the API reference for the Splunk SDK for Python, which describes the modules that are included in the SDK.
22For more information, see the `Splunk Developer Portal <http://dev.splunk.com/view/python-sdk/SP-CAAAEBB >`_.
33
4- .. toctree ::
5- :maxdepth: 2
6- :name: SDK for Python API Reference
7-
8- binding
9- client
10- data
11- results
12- modularinput
13- searchcommands
14- searchcommandsvalidators
15-
16-
174:doc: `binding `
185--------------
196
Original file line number Diff line number Diff line change 11[tox]
2- envlist = clean,py27,py37
2+ envlist = clean,docs, py27,py37
33skipsdist = {env:TOXBUILD:false}
44
55[testenv:pep8]
@@ -26,7 +26,7 @@ application-import-names = splunk-sdk-python
2626passenv = LANG
2727setenv = SPLUNK_HOME =/opt/splunk
2828 INPUT_EXAMPLE_UPLOAD =/opt/splunk/var/log/splunk/splunkd_ui_access.log
29- whitelist_externals = true
29+ allowlist_externals = make
3030deps = pytest
3131 pytest-cov
3232 xmlrunner
@@ -41,3 +41,9 @@ commands =
4141deps = coverage
4242skip_install = true
4343commands = coverage erase
44+
45+ [testenv:docs]
46+ description = invoke sphinx-build to build the HTML docs
47+ basepython = python3.7
48+ deps = sphinx >= 1.7.5, < 2
49+ commands = make -C docs/ html
You can’t perform that action at this time.
0 commit comments