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:
28
28
@echo " $( ATTN_COLOR) ==> build_app $( NO_COLOR) "
29
29
@python setup.py build dist
30
30
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
+
31
39
.PHONY : test
32
40
test :
33
41
@echo " $( ATTN_COLOR) ==> test $( NO_COLOR) "
Original file line number Diff line number Diff line change 138
138
# Custom sidebar templates, maps document names to template names.
139
139
#html_sidebars = {
140
140
html_sidebars = {
141
- '**' : ['localtoc.html' , ' globaltoc.html' , 'searchbox.html' ],
141
+ '**' : ['globaltoc.html' , 'searchbox.html' ],
142
142
}
143
143
144
144
# Additional templates that should be rendered to pages, maps page names to
Original file line number Diff line number Diff line change 1
1
[tox]
2
- envlist = clean,py27,py37
2
+ envlist = clean,docs, py27,py37
3
3
skipsdist = {env:TOXBUILD:false}
4
4
5
5
[testenv:pep8]
@@ -26,7 +26,7 @@ application-import-names = splunk-sdk-python
26
26
passenv = LANG
27
27
setenv = SPLUNK_HOME =/opt/splunk
28
28
INPUT_EXAMPLE_UPLOAD =/opt/splunk/var/log/splunk/splunkd_ui_access.log
29
- whitelist_externals = true
29
+ allowlist_externals = make
30
30
deps = pytest
31
31
pytest-cov
32
32
xmlrunner
@@ -41,3 +41,9 @@ commands =
41
41
deps = coverage
42
42
skip_install = true
43
43
commands = 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