autonomys / subspace-docs

Official Documentation for Subspace Labs & the Subspace Network
MIT License
13 stars 37 forks source link

Implement URL slugs #676

Closed EmilFattakhov closed 4 weeks ago

EmilFattakhov commented 1 month ago

This PR:

I very carefully worked on setting up the redirect so hopefully all the links that have been posted or linked anywhere before should continue working. Any suggestions on the slugs implementation and naming are welcome!

netlify[bot] commented 1 month ago

Deploy Preview for subspace-docs-staging ready!

Name Link
Latest commit f325aa5fbd2abc16b224047f5ef2584cc4e215b4
Latest deploy log https://app.netlify.com/sites/subspace-docs-staging/deploys/6704468760df870008747f3b
Deploy Preview https://deploy-preview-676--subspace-docs-staging.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

jim-counter commented 1 month ago

Are we keeping the root /docs/ path? Is there the possibility to ditch it? It makes sense to do this job just once.

Do slugs support paths? Something about slugs like /auto-consensus conveys no context that this link takes you to a page about developing on Autonomys using our SDK. Maybe I'm old-fashioned about they way I look at URLs.

EmilFattakhov commented 1 month ago

Do slugs support paths? Something about slugs like /auto-consensus conveys no context that this link takes you to a page about developing on Autonomys using our SDK. Maybe I'm old-fashioned about they way I look at URLs.

I was also thinking about that, but the more specific we will try to be, the longer the URL become :) Yes, the paths are supported, we can generalize them into /docs/farming, /docs/staking, /docs/develop, /docs/community, or the same paths but without the /docs part if I'm able to find where this is coming from :)

EmilFattakhov commented 1 month ago

Are we keeping the root /docs/ path? Is there the possibility to ditch it? It makes sense to do this job just once.

We should be able to, investigating where it's coming from

jim-counter commented 1 month ago

We should be able to, investigating where it's coming from

Part of the deploy config?

jim-counter commented 1 month ago

we can generalize them into /docs/farming, /docs/staking, /docs/develop, /docs/community, or the same paths but without the /docs part if I'm able to find where this is coming from :)

I like this idea.

EmilFattakhov commented 4 weeks ago

Closed with the merge of https://github.com/autonomys/subspace-docs/pull/677