forked from writethedocs/www
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
67 lines (53 loc) · 1.67 KB
/
tox.ini
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[tox]
envlist = docs, yaml, lint, links, all_links
skipsdist = True
[travis]
python =
3.6: docs, yaml, lint, links, all_links
[travis:env]
TEST=
lint: lint
docs: docs
yaml: yaml
links: links
all_links: all_links
[testenv]
setenv =
BUILD_VIDEOS = True
passenv = MEETUP_API_KEY
deps = -rrequirements.txt
[testenv:docs]
changedir = {toxinidir}/docs
commands =
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:lint]
changedir = {toxinidir}/docs
whitelist_externals = vale
commands =
vale --glob='!_data/*' .
[testenv:yaml]
changedir = {toxinidir}/docs
whitelist_externals = yamllint
/bin/bash
/usr/bin/bash
commands =
yamllint -c ../.yamllint.yaml _data
bash _scripts/validate-yaml.sh
[testenv:links]
changedir = {toxinidir}/docs
allowlist_externals = htmlproofer
gem
commands_pre =
gem install html-proofer
commands =
sphinx-build -b dirhtml -d {envtmpdir}/doctrees . {envtmpdir}/html
htmlproofer {envtmpdir}/html --alt-ignore '/.*/' --file-ignore "/404/,/2013/,/2014/,/2015/,/2016/,/search\/index.html/" --url-ignore '/2015/,/meetup/,/linkedin/,/jobs.writethedocs.org/,/search\/index.html/' --allow-hash-href --internal-domains 'www.writethedocs.org' --disable-external
[testenv:all_links]
changedir = {toxinidir}/docs
allowlist_externals = htmlproofer
gem
commands_pre =
gem install html-proofer
commands =
sphinx-build -b dirhtml -d {envtmpdir}/doctrees . {envtmpdir}/html
htmlproofer {envtmpdir}/html --alt-ignore '/.*/' --url-ignore '/linkedin/,/jobs.writethedocs.org/' --allow-hash-href --internal-domains 'www.writethedocs.org'