Giter Club home page Giter Club logo

Comments (8)

shanyuhai123 avatar shanyuhai123 commented on June 4, 2024

您好,由于 reco 主题使用 plugin-blog 插件渲染了非 md 文件生成的路径导致以上的问题,现已更新。

from vuepress-plugin-auto-sidebar.

shanyuhai123 avatar shanyuhai123 commented on June 4, 2024

根据 reco 主题默认配置测试结果 (由于网络问题,使用了外部图床)

from vuepress-plugin-auto-sidebar.

jokervTv avatar jokervTv commented on June 4, 2024

已成功使用, 另外请问, 该拓展是否支持目录遍历, 此拓展的readme感觉是支持的, 可是示例中的配置感觉不支持.

感谢

from vuepress-plugin-auto-sidebar.

shanyuhai123 avatar shanyuhai123 commented on June 4, 2024

您好,在上面提供的截图示例目录层级为 docs>views>category1>2019
不太理解您说的目录遍历,可否举个例子说一下。

from vuepress-plugin-auto-sidebar.

jokervTv avatar jokervTv commented on June 4, 2024

重新查看了你的示例 前端->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.

shanyuhai123 avatar shanyuhai123 commented on June 4, 2024

上面的结果是的。
早期有考虑过插件配置处添加正则来便于分组,但正则匹配 md 文件名或标题都会导致其需要统一规范,不太符合常情,而且随着 md 文件的增多很容易导致复杂的正则或者干脆切换为数组(列表)的形式。而且增删文章后还得频繁去更新插件的配置,这种糟糕的体验还不如直接在文章的头部添加配置。

from vuepress-plugin-auto-sidebar.

shanyuhai123 avatar shanyuhai123 commented on June 4, 2024

抱歉看错了,上面的结果是错的,只会跟踪到最后一层目录。
/A/A/a/A/b 已经属于不同的路由了。A 只会显示它自己下面的 md 文件,不过不推荐这么使用,在 提问5 有说明其存在的问题。

from vuepress-plugin-auto-sidebar.

jokervTv avatar jokervTv commented on June 4, 2024

了解了, 感谢

from vuepress-plugin-auto-sidebar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.