jonathanschndr / vitepress-plugin-auto-sidebar Goto Github PK
View Code? Open in Web Editor NEW:zap: Generate the VitePress sidebar through the folder structure
License: MIT License
:zap: Generate the VitePress sidebar through the folder structure
License: MIT License
Would be SOOO NICE! Then it would be soo much useful in combination with Netlify CMS / Decap CMS!
Thanks a lot for this great lib!
I just tried to use this in a pretty minimal Vitepress project and ran into two issues:
Stefnotch@STEFNOTCH-PC MINGW64 /c/Coding/GitHub/Other/Blog (main)
$ npm run dev
> dev
> vitepress dev docs
vitepress v1.0.0-alpha.40
failed to load config from C:\Coding\GitHub\Other\Blog\docs\.vitepress\config.ts
failed to start server. error:
ReferenceError: require is not defined in ES module scope, you can use import insteadad r/dist/vitepress-plugin-auto-sidebar.mjs:1:11
at file:///C:/Coding/GitHub/Other/Blog/node_modules/vitepress-plugin-auto-sidebar/dist/vitepress-plugin-auto-sidebar.mjs:1:11
at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
npm i vitepress-plugin-auto-sidebar
should probably be npm i -D vitepress-plugin-auto-sidebar
Following the vitepress offical guide for i18n: https://vitepress.dev/guide/i18n
When switched to a different locale, the sidebar link seems to still points to root.
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.