Skip to content

Commit c9694a3

Browse files
committed
feat(watch): add chokidar to watch files on cli use and enable to watch files as vuepress plugin
1 parent 114d6cf commit c9694a3

File tree

12 files changed

+793
-52
lines changed

12 files changed

+793
-52
lines changed

example/documentation/.vuepress/config.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,23 @@ module.exports = {
55
dest: 'public',
66
title: 'Hello vuepress-jsdoc',
77
description: 'Just playing around with vuepress-jsdoc',
8+
plugins: [
9+
[
10+
// require('vuepress-jsdoc')
11+
require('../../../dist/index.js').default,
12+
{
13+
folder: 'code',
14+
jsDocConfigPath: './jsdoc.json',
15+
source: './src',
16+
dist: './documentation',
17+
title: 'API',
18+
exclude: 'class.js',
19+
partials: './partials/*.hbs',
20+
readme: './README.md',
21+
watch: true
22+
}
23+
]
24+
],
825
locales: {
926
'/': {
1027
title: 'vuepress-jsdoc',

example/documentation/code/test.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,6 @@ Section 1
8181

8282
Section 2
8383

84+
8485

8586

example/documentation/code/vue-md.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,6 @@ Section 1
6363

6464
Section 2
6565

66+
6667

6768

0 commit comments

Comments
 (0)