Skip to content

Redirect development guides from /stable to /devdocs #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 7, 2023
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