forked from the-turing-way/the-turing-way
-
Notifications
You must be signed in to change notification settings - Fork 2
/
netlify.toml
104 lines (91 loc) · 3.04 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
[build]
base = "book/"
command = "make deps && make pathways"
environment = { PYTHON_VERSION = "3.8" }
publish = "website/_build/html"
# Do not build deploy previews for branches from all-contributors bot
[context.deploy-preview]
ignore = '''
if echo $HEAD | grep "^all-contributors"; then
return 0
else
return 1
fi
'''
# A redirect rule with all the supported properties
[[redirects]]
# Root page changed in https://github.com/the-turing-way/the-turing-way/pull/2994
from = "https://the-turing-way.netlify.app/welcome"
to = "https://book.the-turing-way.org/index.html"
# The default HTTP status code is 301, but you can define a different one.
status = 301
force = true
# A redirect rule with all the supported properties
[[redirects]]
# Root page changed in https://github.com/the-turing-way/the-turing-way/pull/2994
from = "https://the-turing-way.netlify.app/welcome.html"
to = "https://book.the-turing-way.org/index.html"
# The default HTTP status code is 301, but you can define a different one.
status = 301
force = true
# A redirect rule with all the supported properties
[[redirects]]
from = "https://the-turing-way.netlify.app"
to = "https://book.the-turing-way.org/index.html"
# The default HTTP status code is 301, but you can define a different one.
status = 301
force = true
[[redirects]]
from = "https://the-turing-way.netlify.app/introduction/*"
to = "https://book.the-turing-way.org/index.html"
# The default HTTP status code is 301, but you can define a different one.
status = 301
force = true
[[redirects]]
from = "/reproducible-research"
to = "/reproducible-research/reproducible-research"
# The default HTTP status code is 301, but you can define a different one.
status = 301
force = true
[[redirects]]
from = "/communication"
to = "/communication/communication"
# The default HTTP status code is 301, but you can define a different one.
status = 301
force = true
[[redirects]]
from = "/collaboration"
to = "/collaboration/collaboration"
# The default HTTP status code is 301, but you can define a different one.
status = 301
force = true
[[redirects]]
from = "/project-design"
to = "/project-design/project-design"
# The default HTTP status code is 301, but you can define a different one.
status = 301
force = true
[[redirects]]
from = "/ethical-research"
to = "/ethical-research/ethical-research"
# The default HTTP status code is 301, but you can define a different one.
status = 301
force = true
[[redirects]]
from = "/community-handbook"
to = "/community-handbook/community-handbook"
# The default HTTP status code is 301, but you can define a different one.
status = 301
force = true
[[redirects]]
from = "/version_control/*"
to = "/reproducible-research/vcs"
# The default HTTP status code is 301, but you can define a different one.
status = 301
force = true
[[redirects]]
from = "/binderhub/*"
to = "/reproducible-research/binderhub"
# The default HTTP status code is 301, but you can define a different one.
status = 301
force = true