acrobit / docusaurus-plugin-auto-sidebars Goto Github PK
View Code? Open in Web Editor NEWA docusaurus plugin that generates the sidebar items automatically by filesystem structure
A docusaurus plugin that generates the sidebar items automatically by filesystem structure
hey, small feature request :)
would it be possible to let people define items as href links in the sidebar? this is possible with the default sidebar and would be super useful with the auto sidebar!
perhaps let people define them in the yaml? or even a seperate yaml. something where u could also define what folder they would be in, along with the label. maybe something like:
- folder1:
- links:
- ExampleSite: https://example.com
- Google: https://google.com
- subfolder1:
- links:
- Github: https://github.com
anyway just thought this might be a handy little feature ๐
Thanks for making this.
Would it be possible to add an option to reverse the order of elements on the Sidebar?
I've been naming my documents by date, but that means that the Sidebar displays everything in reverse chronological order.
I have a folder that I don't want to include in the sidebar, but the plugin seems to be including that as well, even if it isn't included in the sidebars.yaml file :(
Unrelated side note - I think the docs are wrong for specifying the custom path. It says docs
in the readme, but when I looked at the code, you're using path
.
Is any of this possible in the current implementation, I have scoured the example and docs but haven't been able to find anything.
Btw, very nice plugin.
This is my sidebars file - it doesn't throw an error.
This is the result. The arrows are where I am trying to get the files to show up (#1 & 4), the order of level 2 is alphabetical, not as in the sidebars.yml
Thanks
When I create a folder, add a markdown file in it, and don't define a sidebar.yaml
it will error, when using the plugin out of the box
TypeError: Cannot read property 'title' of undefined
at \node_modules\docusaurus-plugin-auto-sidebars\lib\generator.js:26:24
You might need a better way than just making it an empty string
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.