-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path_redirects
49 lines (44 loc) · 1.68 KB
/
_redirects
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
---
# Redirect default Netlify subdomain to primary domain
https://sopel.netlify.com/* https://sopel.chat/:splat 301!
# Shortcuts used in plugins
## issues
/i/* https://github.com/sopel-irc/sopel/issues/:splat 302
## pull requests
/p/* https://github.com/sopel-irc/sopel/pull/:splat 302
# YAML front-matter-based redirects for renamed pages
{% for collection in site.collections
%}{% for page in collection.docs
%}{% for link in page.previously
%}{{ link }} {{ page.url }} 301
{% endfor %}{%
endfor %}{%
endfor
%}
# YAML front-matter-based redirects from "deleted" pages to their replacements
# The '!' makes them redirect even though the page exists
{% for collection in site.collections
%}{% for page in collection.docs
%}{% if page.redirect_to
%}{{ page.url }} {{ page.redirect_to }} 301!
{% endif %}{%
endfor %}{%
endfor
%}
# Hard-coded redirects for sections we've entirely replaced
# Old tutorials need to die; send people to the modern docs
# (this has to be after the `page.previously` rules so the old tutorial link
# about installing Sopel keeps pointing to the new Installing page)
/tutorials/* /docs/plugin.html 301
# Specific appendix pages that have been superseded
/appendix/formatting/ /docs/plugin/bot.html#do-it-with-style 301
# Moving package documentation to its own folder
/docs/api.html /docs/package/api.html 301
/docs/bot.html /docs/package/bot.html 301
/docs/config.html /docs/package/config.html 301
/docs/db.html /docs/package/db.html 301
/docs/irc.html /docs/package/irc.html 301
/docs/lifecycle.html /docs/package/lifecycle.html 301
/docs/plugin/internals.html /docs/package/plugins.html 301
/docs/trigger.html /docs/package/trigger.html 301