forked from PrefectHQ/prefect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
73 lines (61 loc) · 1.98 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Netlify settings
#
# Other Netlify files:
# - runtime.txt: version of Python to build with
# - package-lock.json: indicates we need node && npm installed
#
# “base” is directory to change to before starting build. if you set base:
# that is where we will look for package.json/.nvmrc/etc not repo root!
# “command” is your build command,
# “publish” is the directory to publish (relative to root of your repo),
#
[build]
base = ""
publish = "docs/.vuepress/dist"
command = 'export GIT_SHA=$COMMIT_REF && pip install -e ".[dev]" && npm run docs:build'
# redirect from /guide/core_concepts to /core/concepts
[[redirects]]
from = "/guide/core_concepts/*"
to = "/core/concepts/:splat"
# redirect from /core/task_library/ to /core/task_library/overview
[[redirects]]
from = "/core/task_library/"
to = "/core/task_library/overview.html"
## redirects for new Cloud / Server splits
#
# redirect from `cloud/cloud_concepts` to to `orchestration/concepts`
[[redirects]]
from = "/cloud/cloud_concepts/*"
to = "/orchestration/concepts/:splat"
# redirect from `/cloud/concepts` to `orchestration/concepts`
[[redirects]]
from = "/cloud/concepts/*"
to = "/orchestration/concepts/:splat"
# redirect from `api/unreleased` to `api/latest`
[[redirects]]
from = "/api/unreleased/*"
to = "/api/latest/:splat"
# redirect from `core/tutorials` to `core/advanced_tutorials`
[[redirects]]
from = "/core/tutorials/*"
to = "/core/advanced_tutorials/:splat"
# redirect from `cloud/agent` to `orchestration/agents`
[[redirects]]
from = "/cloud/agent/*"
to = "/orchestration/agents/:splat"
# redirect from straight `cloud/` to `orchestration/`
[[redirects]]
from = "/cloud/"
to = "/orchestration/"
# redirect from subpages in `cloud` to subpages in `orchestration`
[[redirects]]
from = "/cloud/*"
to = "/orchestration/:splat"
# redirect from /guide to /core
[[redirects]]
from = "/guide/*"
to = "/core/:splat"
[[redirects]]
from = "/*"
to = "/index.html"
status = 200