File: tox.ini

package info (click to toggle)
sphinx-togglebutton 0.3.2-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 148 kB
  • sloc: javascript: 139; python: 94; makefile: 18
file content (38 lines) | stat: -rw-r--r-- 772 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# To use tox, see https://tox.readthedocs.io

[tox]
envlist = py39-sphinx3

[testenv]
# only recreate the environment when we use `tox -r`
recreate = false

[testenv:docs]
description = Build the documentation
extras =
    sphinx
deps =
    -e.
    sphinx_rtd_theme
    furo
    alabaster
commands =
    sphinx-build \
        -n -b {posargs:html} docs/ docs/_build/{posargs:html}

[testenv:docs-live]
description = Auto-build and preview the documentation in the browser
deps =
    -e.
    sphinx-autobuild
    sphinx_rtd_theme
    furo
    alabaster
extras =
    sphinx
commands =
    sphinx-autobuild \
        --re-ignore _build/.* \
        --watch sphinx_togglebutton \
        --port 0 --open-browser \
        -n -b {posargs:html} docs/ docs/_build/{posargs:html}