File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 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 * matpl otlib.github.com
38+ file_server
39+ }
40+ }
You can’t perform that action at this time.
0 commit comments