Skip to content

Commit 0ba5e83

Browse files
committed
deploy the botogram website to netlify
1 parent 477a6d7 commit 0ba5e83

File tree

6 files changed

+48
-0
lines changed

6 files changed

+48
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ __pycache__
77
*.py[oc]
88

99
/.cache
10+
11+
/.netlify/build

.netlify/Makefile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.PHONY: build website docs clean
2+
3+
build: website docs
4+
5+
website: $(patsubst website/%,build/%,$(shell find website/ -type f))
6+
7+
docs:
8+
cd .. && invoke docs
9+
@rm -rf build/docs
10+
cp -r ../build/docs build/docs
11+
12+
build/%: website/%
13+
@mkdir -p $(dir $@)
14+
cp $< $@
15+
16+
clean:
17+
rm -rf build

.netlify/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
invoke==0.11.1

.netlify/runtime.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.6

.netlify/website

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../website

netlify.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[build]
2+
base = ".netlify"
3+
publish = ".netlify/build"
4+
command = "make"
5+
6+
# Permanent redirect from the netlify domain to the canonical domain
7+
#[[redirects]]
8+
from = "https://org-pietroalbini-botogram.netlify.com/*"
9+
to = "https://botogram.pietroalbini.org/:splat"
10+
status = 301
11+
force = true
12+
13+
# Redirect to the latest docs
14+
[[redirects]]
15+
from = "/docs/"
16+
to = "/docs/0.5/"
17+
status = 302
18+
19+
# Security headers
20+
[[headers]]
21+
for = "/*"
22+
[headers.values]
23+
X-Frame-Options = "DENY"
24+
X-Xss-Protection = "1; mode=block"
25+
X-Content-Type-Options = "nosniff"
26+
Referrer-Policy = "no-referrer"

0 commit comments

Comments
 (0)