osu-atri / osu-dictionary

A simple "dictionary" for osu! enthusiasts
https://osu-atri.github.io/osu-dictionary/
MIT License
0 stars 1 forks source link

Add correspond sidebars to each pages #25

Closed NaughtyChas closed 2 months ago

NaughtyChas commented 2 months ago

While browsing our site, I noticed that displaying identical sidebar content across three different categories (文档, 术语表, osu!lazer 指南) accessed via the navbar seems a bit odd. To address this, I’ve made changes so that the categories will only display their correspond sidebar content. For instance, ‘osu!lazer 指南’ category now only displays pages from the ./docs/lazer folder, rather than showing content from the general ./docs folder.

Note that this pull request aims to introduce a new concept for improving the sidebar, further work and discussions has to be done before the merge of this PR.

Test deployment has failed since the new lazer document has not being merged to the main.

CloneWith commented 2 months ago

I used the new submodule to build the site and it went well.

However index pages of any sub category dont work in the sidebar. I'll try to fix it.