File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Expand file tree Collapse file tree 3 files changed +17
-3
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/html && 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 138138# Custom sidebar templates, maps document names to template names.
139139#html_sidebars = {
140140html_sidebars = {
141- '**' : ['localtoc.html' , ' globaltoc.html' , 'searchbox.html' ],
141+ '**' : ['globaltoc.html' , 'searchbox.html' ],
142142}
143143
144144# Additional templates that should be rendered to pages, maps page names to
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