mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
6453b90043
* feat(vite-doc): add vite md plugin * fixed(site-vite): merge conflicts * fix(vite-doc): some bug in vue rerender,use key to advoid * feat(vite-doc): finished doc * fix(vite-doc): import path should be same as normal * chore(vite-doc): remove useless code Co-authored-by: Lecong Zhang <50313260+tskirby@users.noreply.github.com>
9 lines
285 B
JavaScript
9 lines
285 B
JavaScript
const convertMd2Doc = require('./convertMd2Doc')
|
|
const projectPath = require('./project-path')
|
|
|
|
module.exports = function (content, path) {
|
|
const env = process.env.NODE_ENV
|
|
const relativeUrl = path.replace(projectPath + '/', '')
|
|
return convertMd2Doc(content, env, relativeUrl)
|
|
}
|