8000 Initial setup · matplotlib/matplotlib.org@2915827 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2915827

Browse files
commit 8000 ted
Initial setup
This currently has the normal full site, with overlays of the other projects and the brochure site.
0 parents  commit 2915827

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

Caddyfile

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Snippet to allow working with git checkouts of project sites that become
2+
# toplevel directories.
3+
(subproject) {
4+
# Caddy doesn't know this is a directory, so redirect to trailing / as
5+
# would usually happen for them.
6+
redir /{args.0} /{args.0}/ permanent
7+
8+
handle_path /{args.0}/* {
9+
root * {args.0}
10+
file_server
11+
}
12+
}
13+
14+
# Set this variable in the environment when running in production.
15+
{$SITE_ADDRESS::2015} {
16+
root * .
17+
18+
import subproject basemap
19+
import subproject cheatsheets
20+
import subproject governance
21+
import subproject matplotblog
22+
import subproject mpl-altair
23+
import subproject mpl-bench
24+
import subproject mpl-third-party
25+
26+
# Place the brochure site at the top level.
27+
import subproject mpl-brochure-site
28+
@brochure file {
29+
root mpl-brochure-site
30+
try_files {path}
31+
}
32+
rewrite / /mpl-brochure-site/index.html
33+
rewrite @brochure /mpl-brochure-site{http.matchers.file.relative}
34+
35+
# Finally try any of the versioned docs.
36+
handle {
37+
root * matplotlib.github.com
38+
file_server
39+
}
40+
}

0 commit comments

Comments
 (0)
0