ipld / specs

Content-addressed, authenticated, immutable data structures
Other
592 stars 108 forks source link

feat: redirect to ipld.io/specs/, with some specifics #378

Closed rvagg closed 2 years ago

rvagg commented 2 years ago

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:

Screenshot 2022-06-28 at 4 08 29 pm
rvagg commented 2 years ago

beautiful, thanks for your expertise on this one @lidel

rvagg commented 2 years ago

seems to be working as expected