diff --git a/README.md b/README.md index b889eb6..577100d 100644 --- a/README.md +++ b/README.md @@ -50,9 +50,9 @@ npm i docsify-cli -g Use `init` to generate your docs. ```shell -docsify init [--local false] [--theme vue] +docsify init [--local false] [--theme vue] [--plugins false] -# docsify i [-l false] [-t vue] +# docsify i [-l false] [-t vue] [--plugins false] ``` `` defaults to the current directory. Use relative paths like `./docs` (or `docs`). @@ -67,6 +67,11 @@ docsify init [--local false] [--theme vue] - Type: string - Default: `vue` - Description: Choose a theme, defaults to `vue`, other choices are `buble`, `dark` and `pure`. +- `--plugins` option: + - Shorthand: `-p` + - Type: boolean + - Default: `false` + - Description: Provide a list of plugins to insert as `\n`) + }) + + replace(target(filename), '\n_plugin', '') } diff --git a/lib/template/index.html b/lib/template/index.html index 04dd4a7..9c49dd3 100644 --- a/lib/template/index.html +++ b/lib/template/index.html @@ -18,5 +18,6 @@ + _plugins_ diff --git a/tools/locales/en.json b/tools/locales/en.json index f95d400..9488e4f 100644 --- a/tools/locales/en.json +++ b/tools/locales/en.json @@ -6,6 +6,7 @@ "start": "Server for SSR", "init.local": "Copy docsify files to local. To explicitly set --local to false you may use --no-local.", "init.theme": "Theme file to be used.", + "init.plugins": "A list of plugins to be used.", "serve": "Run local server to preview site.", "serve.open": "Open docs in default browser. To explicitly set --open to false you may use --no-open.", "serve.port": "Listen port.", diff --git a/tools/locales/zh.json b/tools/locales/zh.json index 6244da8..162179e 100644 --- a/tools/locales/zh.json +++ b/tools/locales/zh.json @@ -6,13 +6,14 @@ "init": "创建 docs", "init.local": "拷贝 docsify 到本地", "init.theme": "选择主题", + "init.plugins": "选择插件", "serve": "本地预览", "serve.open": "自动打开浏览器", "serve.port": "设置端口", - "serve.indexname": "Custom filename instead of index.html to serve by default", - "generate": "Docsify的生成器", + "serve.indexname": "自定义入口文件名,代替默认的 index.html", + "generate": "docsify 的生成器", "generate.sidebar": "生成侧边栏文件", - "livereload.port": "设置livereload端口", + "livereload.port": "设置 livereload 端口", "usage": "例子", "version": "当前版本号" }