Skip to content

Commit

Permalink
Merge pull request #36 from QuLogic/redir-contribute
Browse files Browse the repository at this point in the history
Redirect development guides from /stable to /devdocs
  • Loading branch information
tacaswell authored Dec 7, 2023
2 parents 6fdba76 + d955879 commit 06f901b
Showing 1 changed file with 13 additions and 0 deletions.
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

0 comments on commit 06f901b

Please sign in to comment.