Verified Commit cd6d9d7a authored by Dan Allen's avatar Dan Allen
Browse files

add redirects for old asciidoc.org pages

parent 86ac1306
......@@ -15,6 +15,7 @@ asciidoctor.ConverterFactory.register(new DocumentModelConverter(), ['json'])
module.exports = function (eleventyConfig, rest) {
eleventyConfig.addPassthroughCopy('pages/**/*.{jpg,png,gif,svg,webp,ico,txt,json,webmanifest,xml,woff2}')
eleventyConfig.addPassthroughCopy('pages/_redirects')
eleventyConfig.setBrowserSyncConfig({
files: ['_site/**/*'],
open: false
......
......@@ -2,7 +2,17 @@
publish = "_site"
command = "npm run build"
[build.environment]
NODE_VERSION = "16"
[[headers]]
for = "/assets/subfont/*.woff2"
[headers.values]
Cache-Control = "public,max-age=604800"
# the following redirects get appended to the redirects defined in the _redirects file
#[[redirects]]
#from = "https://asciidoc.netlify.app/*"
#to = "https://asciidoc.org/:splat"
#status = 301
#force = true
/a2x.1.html https://asciidoc-py.github.io/a2x.1.html 301!
/asciidocapi.html https://asciidoc-py.github.io/asciidocapi.html 301!
/faq.html https://asciidoc-py.github.io/faq.html 301!
/INSTALL.html https://asciidoc-py.github.io/INSTALL.html 301!
/manpage.html https://asciidoc-py.github.io/manpage.html 301!
/userguide.html https://asciidoc-py.github.io/userguide.html 301!
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment