dewfall123 / ruabick

Dumi like tool based on vitepress.
https://dewfall123.github.io/ruabick/
144 stars 32 forks source link

自定义文档目录 srcDir 为 lib,dev 监听目录尚为 src/**/*.md #21

Open yemuguliunian opened 1 year ago

yemuguliunian commented 1 year ago

现象

"scripts": {
    "dev": "initial-scan --srcDir lib && vitepress dev .docs --host"
  },

执行 pnpm dev

initial-scan 扫描文件正确,但 dev 监听的还是 src/**/*.md。 所以当此刻更新lib/**/*.md文件时,站点不会更新,需重新扫描。

期望

@ruabick/vite-plugin-gen-temp 函数 genTemp 支持传递配置项,自定义 srcDir

image image
dewfall123 commented 1 year ago

还没改的问题 https://github.com/dewfall123/ruabick/pull/5#issuecomment-1234413532