-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathnetlify.toml
More file actions
36 lines (33 loc) · 1.41 KB
/
netlify.toml
File metadata and controls
36 lines (33 loc) · 1.41 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
[build]
publish = "site"
command = """
pip3 install --no-cache-dir -r requirements.txt &&
npm install pngquant &&
cp -R images/ docs/6.x/images/ && zensical build -f mkdocs-6.x.yml && rm -rf docs/6.x/images/ &&
cp -R images/ docs/7.x/images/ && zensical build -f mkdocs-7.x.yml && rm -rf docs/7.x/images/ &&
cp -R images/ docs/5.0/images/ && zensical build -f mkdocs-5.0.yml && rm -rf docs/5.0/images/ &&
cp -R images/ docs/deprecated/images/ && zensical build -f mkdocs-deprecated.yml && rm -rf docs/deprecated/images/ &&
cp -R images/ docs/ja/images/ && zensical build -f mkdocs-ja-6.x.yml && rm -rf docs/ja/images/ &&
cp -R images/ docs/tr/images/ && zensical build -f mkdocs-tr-6.x.yml && rm -rf docs/tr/images/ &&
cp -R images/ docs/pt-BR/images/ && zensical build -f mkdocs-pt-BR-4.8.yml && rm -rf docs/pt-BR/images/ &&
cp -R images/ docs/ar/images/ && zensical build -f mkdocs-ar-4.10.yml && rm -rf docs/ar/images/
"""
[[headers]]
for = "/*"
[headers.values]
Content-Security-Policy = "frame-ancestors *"
X-Content-Type-Options = "nosniff"
Strict-Transport-Security = "max-age=63072000; includeSubDomains"
# Redirect sitemap.xml requests from any path to the version root sitemap
[[redirects]]
from = "/*/sitemap.xml"
to = "/sitemap.xml"
status = 200
[[redirects]]
from = "/*/*/sitemap.xml"
to = "/sitemap.xml"
status = 200
[[redirects]]
from = "/*/*/*/sitemap.xml"
to = "/sitemap.xml"
status = 200