docs
docs copied to clipboard
Sidebar reorganisation proposal
Prompted by #6791, I wanted to share a plan for the page sidebar to address a few longstanding issues.
Current sidebar
Overall aims
- Stop using the page sidebar for links other than table of contents. Links here are inaccessible on narrower viewports.
- Create space for new helpful links, notably to https://community.astro.build
Proposal
- Move our edit and translate links down to the bottom of the page content. An edit link is displayed there already currently, we’d add the translation one.
- Create a new page footer below the pagination arrows for additional links. Initially these would be our current “Contribute” and “Give Feedback” items from the sidebar, plus a new “Community” link.
Overall the result would look something like this:
Just adding my approval here! I love this idea because it always bothered me that some links were not available in certain viewport sizes.
Now that we have https://community.astro.build and hope to use it for more, docs doesn't have to be the place that links to absolutely everything! If we link to just the community site, then people can get what they want in the right spot!
Still happy with this proposal!
I would love to collaborate on this and come up with an better solution to the current implementation.
Are we still liking this @delucis ? Is this something that we're happy to have community members attempt?
Definitely! Happy to provide any guidance if anyone would like to attempt all or some of this.
Now that I've some more time, would love to take this on @delucis!
Bring it, @SatanshuMishra ! 😄
Quick Clarification @delucis. For the footer below the pagination, should a new component be created? Or do you think adding it to the pagination component is sufficient?
Depending on what we want to add to this, a new component may be the way to go. However, if we want to keep it to simple links, may be too much abstraction for a simple problem.
should a new component be created? Or do you think adding it to the pagination component is sufficient?
Either is probably fine to start with — we can always move things around. Personally, I'd probably make a dedicated component for the links and then add it to footer.
Thanks @SatanshuMishra!