Uses a (custom) vuepress plugin to overwrite all generated pages with a new redirect
html that does a JS redirect in 5 seconds after explaining it. Some pages have
specific redirects to their new versions, some are done in groups (e.g.
schemas pages all go to /specs/schemas/), and the remainder just go to
ipld.io/specs.
I unarchived this repo to get this in. After merge, the Github Action in here will build the site and push to gh-pages which will replace the old HTML with this new one. I'll re-archive after merge.
Most interesting 2 pieces in this PR are the redirect template, and the list of redirects in the array. I've mostly plucked out important pages and easy redirects. Many are just going to get a general redirect to ipld.io/specs though.
Uses a (custom) vuepress plugin to overwrite all generated pages with a new redirect html that does a JS redirect in 5 seconds after explaining it. Some pages have specific redirects to their new versions, some are done in groups (e.g. schemas pages all go to /specs/schemas/), and the remainder just go to ipld.io/specs.
Closes: https://github.com/protocol/infra/issues/818
I unarchived this repo to get this in. After merge, the Github Action in here will build the site and push to gh-pages which will replace the old HTML with this new one. I'll re-archive after merge.
Most interesting 2 pieces in this PR are the redirect template, and the list of redirects in the array. I've mostly plucked out important pages and easy redirects. Many are just going to get a general redirect to ipld.io/specs though.
e.g. of the dag-cbor page: