-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
Copy pathhatch.toml
40 lines (40 loc) · 1.3 KB
/
hatch.toml
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
[envs.docs]
dependencies = [
"mkdocs~=1.5.2",
"mkdocs-material~=9.4.6",
# Plugins
"mkdocs-minify-plugin~=0.7.1",
"mkdocs-git-revision-date-localized-plugin~=1.2.0",
"mkdocstrings-python~=1.10.0",
"mkdocs-redirects~=1.2.1",
"mkdocs-glightbox~=0.3.4",
"mkdocs-pdf-export-plugin~=0.5.10",
"weasyprint~=56.1.0",
# Extensions
"mkdocs-click~=0.8.0",
"pymdown-extensions~=10.3.0",
"mkpatcher~=1.0.2",
# Necessary for syntax highlighting in code blocks
"pygments~=2.16.1",
# Validation
# https://github.com/linkchecker/linkchecker/pull/669#issuecomment-1267236287
"linkchecker @ git+https://github.com/linkchecker/linkchecker.git@d9265bb71c2054bf57b8c5734a4825d62505c779",
]
# API & CLI documentation
post-install-commands = [
"pip install -e ./datadog_checks_base[deps,http] -e ./datadog_checks_dev[cli]",
"pip install -e ./ddev",
]
[envs.docs.env-vars]
# Use a set timestamp for reproducible builds, see:
# https://reproducible-builds.org/specs/source-date-epoch/
SOURCE_DATE_EPOCH = "1580601600"
[envs.docs.scripts]
build = "mkdocs build --clean --strict {args}"
serve = "mkdocs serve --dev-addr localhost:8000 {args}"
validate = "linkchecker --config .linkcheckerrc site"
# https://github.com/linkchecker/linkchecker/issues/678
build-check = [
"build --no-directory-urls",
"validate",
]