Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions templates/Caddyfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,19 @@ http://{{ caddy.addresses.main }}, http://{{ ansible_fqdn }} {
# Make search go to the actual docs instead of the mostly-empty brochure site.
redir /search.html /stable/search.html?{query} temporary

# Redirect contributing guides to latest version.
# If you go to /devel/...?reallystable=1 you can avoid the redirect.
@devel {
path /stable/devel /stable/devel/*
not query reallystable=1
}
handle @devel {
route {
uri strip_prefix /stable
redir * /devdocs{uri}
}
}

# Place the brochure site at the top level.
@brochure file {
root {{ caddy.site_dir }}/mpl-brochure-site
Expand Down