Comments (8)
您好,由于 reco 主题使用 plugin-blog
插件渲染了非 md 文件生成的路径导致以上的问题,现已更新。
from vuepress-plugin-auto-sidebar.
根据 reco 主题默认配置测试结果 (由于网络问题,使用了外部图床)
from vuepress-plugin-auto-sidebar.
已成功使用, 另外请问, 该拓展是否支持目录遍历, 此拓展的readme
感觉是支持的, 可是示例中的配置感觉不支持.
感谢
from vuepress-plugin-auto-sidebar.
您好,在上面提供的截图示例目录层级为 docs>views>category1>2019
。
不太理解您说的目录遍历,可否举个例子说一下。
from vuepress-plugin-auto-sidebar.
重新查看了你的示例 前端->JAVASCRIPT 发现您的分组是通过 autoGroup-1: 分组名称
文件头提供的, 被我误认为了是基于目录分级(如下)实现的
docs
├── 前端
│ ├── JAVASCRIPT
│ │ └── 数组方法
│ │ │ └── ***.md
│ │ └── 对象方法
│ │ │ └── ***.md
│ │ └── 字符串方法
│ │ │ └── ***.md
│ ├── ***
│ ├── ***
│ ├── ***
│ └── README.md
原问题已经不是问题了, 因为我正在为我的文章添加分组, 原问题应该是:
docs
├── A
│ ├── a
│ │ └── a1.md
│ ├── b
│ │ └── b1.md
│ └── README.md
├── ***
└── README.md
这个目录得到的 关于 A
的侧边栏结果是否是
A
├── a
│ └── a1
├── b
└── b1
此外是否有根据目录自动对侧边栏分组开发计划呢
谢谢, 插件使用十分方便
from vuepress-plugin-auto-sidebar.
上面的结果是的。
早期有考虑过插件配置处添加正则来便于分组,但正则匹配 md 文件名或标题都会导致其需要统一规范,不太符合常情,而且随着 md 文件的增多很容易导致复杂的正则或者干脆切换为数组(列表)的形式。而且增删文章后还得频繁去更新插件的配置,这种糟糕的体验还不如直接在文章的头部添加配置。
from vuepress-plugin-auto-sidebar.
抱歉看错了,上面的结果是错的,只会跟踪到最后一层目录。
/A
、/A/a
、/A/b
已经属于不同的路由了。A 只会显示它自己下面的 md 文件,不过不推荐这么使用,在 提问5 有说明其存在的问题。
from vuepress-plugin-auto-sidebar.
了解了, 感谢
from vuepress-plugin-auto-sidebar.
Related Issues (20)
- title->map配置未生效 HOT 3
- 关于侧边栏及自动侧边栏问题? HOT 2
- 无法生成nav.js文件
- build error: No matching page found for sidebar item "/implementation/Theme.TheAdmin/index" HOT 2
- 自行引入生成的 sidebar.js 文件,这个文件需要先运行命令生成 HOT 2
- 如何把当前目录的文件,以及子目录都显示在sidebar呢? HOT 4
- 建议:自动合并现有的sidebar配置 HOT 2
- 默认分组 HOT 2
- 打包后部署到nginx,侧边栏就没了,开发环境正常 HOT 5
- 如何隐藏文件夹的名字 HOT 1
- 请问可以支持嵌套分组吗 HOT 1
- Sidebar not being generated HOT 2
- 请问该插件在Vuepress 2.x版本中该如何使用呢?文档上迁移那里还是空白,是还没有支持嘛? HOT 6
- "docs:nav": "vuepress nav docs" 命令执行失败 HOT 1
- 侧边栏
- 侧边栏autoGroup 无法设置展示顺序或者优先级么? HOT 1
- 侧面栏空分组隐藏
- collapse不会折叠三级标题
- 如何支持二级目录
- vuepress2.0版本设置了没有生效
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vuepress-plugin-auto-sidebar.