Skip to content

Commit 0f59029

Browse files
authored
Merge pull request #74 from Kocal/chore/split-jsdoc-config-files
chore(example): write a JSDoc configuration file for each template
2 parents 9d99f04 + d0f3fba commit 0f59029

File tree

7 files changed

+45
-21
lines changed

7 files changed

+45
-21
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## NEXT
4+
5+
### Internals
6+
7+
- In the folder `example`, write a JSDoc configuration file for each supported template (#74)
8+
39
## 2.0.1
410

511
### Fixes
@@ -19,7 +25,7 @@
1925
- Added [tui](https://github.com/nhnent/tui.jsdoc-template) renderer (#66)
2026
- Added [minami](https://github.com/nijikokun/minami) renderer (#67)
2127

22-
### Removals
28+
### Removals
2329

2430
- Removed `followImports` config (#53)
2531
- Removed configuration system (#53)

example/jsdoc-docstrap.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
const config = Object.assign({}, require('./jsdoc'));
2+
3+
config.opts.destination = 'docs-docstrap';
4+
config.opts.template = './node_modules/ink-docstrap/template';
5+
6+
module.exports = config;

example/jsdoc-minami.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
const config = Object.assign({}, require('./jsdoc'));
2+
3+
config.opts.destination = 'docs-minami';
4+
config.opts.template = './node_modules/minami';
5+
6+
module.exports = config;

example/jsdoc-tui.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
const config = Object.assign({}, require('./jsdoc'));
2+
3+
config.opts.destination = 'docs-tui';
4+
config.opts.template = './node_modules/tui-jsdoc-template';
5+
6+
module.exports = config;

example/jsdoc.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
plugins: [
3+
'../',
4+
'plugins/markdown',
5+
],
6+
source: {
7+
include: [
8+
'src/',
9+
'README.md',
10+
],
11+
includePattern: '\\.(vue|js)$',
12+
},
13+
opts: {
14+
encoding: 'utf8',
15+
},
16+
};

example/jsdoc.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

example/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"scripts": {
3-
"docs": "jsdoc -d docs -c jsdoc.json",
4-
"docs:docstrap": "jsdoc -d docs-docstrap -c jsdoc.json -t ./node_modules/ink-docstrap/template",
5-
"docs:minami": "jsdoc -d docs-minami -c jsdoc.json -t ./node_modules/minami",
6-
"docs:tui": "jsdoc -d docs-tui -c jsdoc.json -t ./node_modules/tui-jsdoc-template"
3+
"docs": "jsdoc -d docs -c jsdoc.js",
4+
"docs:docstrap": "jsdoc -c jsdoc-docstrap.js",
5+
"docs:minami": "jsdoc -c jsdoc-minami.js",
6+
"docs:tui": "jsdoc -c jsdoc-tui.js"
77
},
88
"dependencies": {
99
"ink-docstrap": "^1.3.2",

0 commit comments

Comments
 (0)