Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问该插件在Vuepress 2.x版本中该如何使用呢?文档上迁移那里还是空白,是还没有支持嘛? #77

Open
Vsnoy opened this issue Aug 5, 2022 · 6 comments
Labels
todo something will to be done

Comments

@Vsnoy
Copy link

Vsnoy commented Aug 5, 2022

No description provided.

@shanyuhai123
Copy link
Owner

目前可以在 2.x 的版本使用,迁移是等着 2.x 发布正式版时候写,结果它一直未改为正式版,所以就一直未完成。

@Vsnoy
Copy link
Author

Vsnoy commented Aug 5, 2022

目前可以在 2.x 的版本使用,迁移是等着 2.x 发布正式版时候写,结果它一直未改为正式版,所以就一直未完成。

请问该插件在 2.x 里面怎么生成 sidebar 文件呢,我按照 #59 里说的,没有能够成功生成。

@Vsnoy
Copy link
Author

Vsnoy commented Aug 5, 2022

还有在 2.x 里面插件引入的方式有所变化,不再支持通过字符串使用插件。
https://v2.vuepress.vuejs.org/zh/guide/migration.html#plugins

请问该插件在 2.x 版本中要如何引入呢?
方便的话,可以给我个示例吗?

@shanyuhai123
Copy link
Owner

才发现这个都改版了。。。

尝试下:

const autoSidebar = require('vuepress-plugin-auto-sidebar')

module.exports = {
  plugins: [
    autoSidebar({
        title: {
          mode: "uppercase",
        },
    }),
  ],
}

如果不行,周末会处理下

@Vsnoy
Copy link
Author

Vsnoy commented Aug 5, 2022

才发现这个都改版了。。。

尝试下:

const autoSidebar = require('vuepress-plugin-auto-sidebar')

module.exports = {
  plugins: [
    autoSidebar({
        title: {
          mode: "uppercase",
        },
    }),
  ],
}

如果不行,周末会处理下

不行,会报错,应该要处理下。

@shanyuhai123 shanyuhai123 added the todo something will to be done label Aug 20, 2022
@Arashitake
Copy link

请问这个地方有无解决方案TvT,我摸索了好久都没有摸索出来如何在vuepress2获取到所有目录(一直报错,ems的import.meta又不能在ssr中使用,可恶)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
todo something will to be done
Projects
None yet
Development

No branches or pull requests

3 participants