forked from PrefectHQ/prefect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
50 lines (43 loc) · 1.21 KB
/
netlify.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
41
42
43
44
45
46
47
48
49
50
# Netlify settings
#
# Other Netlify files:
# - runtime.txt: version of Python to build with
#
# “command” is your build command,
#
[build]
base = ""
command = """
pip install --upgrade pip \
&& pip install --upgrade --upgrade-strategy eager -e ".[dev]" \
&& pip install git+https://${MKDOCS_INSIDERS_PAT}@github.com/PrefectHQ/mkdocs-material-insiders.git; \
prefect dev build-docs \
&& mkdocs build --config-file mkdocs.insiders.yml \
|| mkdocs build --config-file mkdocs.yml \
"""
publish = "site"
# redirect v1 traffic to docs-v1.prefect.io
[[redirects]]
from = "/core/*"
to = "https://docs-v1.prefect.io/core/:splat"
status = 301
[[redirects]]
from = "/orchestration/*"
to = "https://docs-v1.prefect.io/orchestration/:splat"
status = 301
[[redirects]]
from = "/api/*"
to = "https://docs-v1.prefect.io/api/:splat"
status = 301
[[redirects]]
from = "https://docs.prefect.io/migration_guide/"
to = "https://docs.prefect.io/migration-guide/"
status = 301
[[redirects]]
from = "https://orion-docs.prefect.io/migration_guide/"
to = "https://docs.prefect.io/migration-guide/"
status = 301
[[redirects]]
from = "https://orion-docs.prefect.io/*"
to = "https://docs.prefect.io/:splat"
status = 301