forked from the-turing-way/the-turing-way
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetlify.toml
More file actions
169 lines (146 loc) · 4.57 KB
/
netlify.toml
File metadata and controls
169 lines (146 loc) · 4.57 KB
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
[build]
base = "book/"
command = "make ci"
environment = { PYTHON_VERSION = "3.13" }
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
'''
# Enable other sites to access and cross-reference the-turing-way content dynamically
[[headers]]
for = "/*"
[headers.values]
access-control-allow-origin = "*"
# Wildcard redirect for old book url
[[redirects]]
from = "https://the-turing-way.netlify.app/*"
to = "https://book.the-turing-way.org/:splat"
status = 301
force = true
# Subdomain redirects
# Wildcard redirect for www.book to book
[[redirects]]
from = "https://www.book.the-turing-way.org/*"
to = "https://book.the-turing-way.org/:splat"
status = 301
force = true
# Redirects for the start page
[[redirects]]
from = "https://the-turing-way.org/*"
to = "https://the-turing-way.start.page/"
status = 302
force = true
[[redirects]]
from = "https://www.the-turing-way.org/*"
to = "https://the-turing-way.start.page/"
status = 302
force = true
# Other helper redirects
[[redirects]]
from = "https://git.the-turing-way.org/*"
to = "https://github.com/the-turing-way"
status = 302
force = true
[[redirects]]
from = "https://news.the-turing-way.org/*"
to = "https://buttondown.email/turingway/"
status = 302
force = true
[[redirects]]
from = "https://slack.the-turing-way.org/*"
to = "https://join.slack.com/t/theturingway/shared_invite/zt-25ng40psm-rcaEBwhrEzsV4hhR6dz5uA"
status = 302
force = true
[[redirects]]
from = "https://calendar.the-turing-way.org/*"
to = "https://calendar.google.com/calendar/embed?src=theturingway%40gmail.com"
status = 302
force = true
[[redirects]]
from = "https://ics.the-turing-way.org/*"
to = "https://calendar.google.com/calendar/ical/theturingway%40gmail.com/public/basic.ics"
status = 302
force = true
# Redirects for old welcome/home/index page urls to current
[[redirects]]
# index.html no longer exists using Jupyter Book 2
# Previously the home page redirects pointed to index.html
from = "https://book.the-turing-way.org/index.html"
to = "https://book.the-turing-way.org/"
# 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/welcome"
to = "https://book.the-turing-way.org/"
# 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/welcome.html"
to = "https://book.the-turing-way.org/"
# 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/"
# The default HTTP status code is 301, but you can define a different one.
status = 301
force = true
# Redirects for old chapter top level pages
[[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 for moved chapters
[[redirects]]
from = "/version_control/*"
to = "/reproducible-research/vcs/:splat"
# 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/:splat"
# The default HTTP status code is 301, but you can define a different one.
status = 301
force = true