-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathgenerateExamples.js
More file actions
33 lines (29 loc) · 826 Bytes
/
Copy pathgenerateExamples.js
File metadata and controls
33 lines (29 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// @ts-check
const path = require('path')
const { generateMarkdownFileSystem } = require('../dist')
const input = path.resolve(__dirname, '..', 'test', '_testFiles', 'input')
const header = path.resolve(__dirname, '..', 'test', '_testFiles', 'header.md')
const footer = path.resolve(__dirname, '..', 'test', '_testFiles', 'footer.md')
const prepend = path.resolve(__dirname, '..', 'test', '_testFiles', 'prepend.md')
const setup = async () => {
// Basic
await generateMarkdownFileSystem({
input,
output: path.resolve(__dirname, 'basic', 'example.md'),
createPath: true,
header,
footer,
prepend
})
// Multi
await generateMarkdownFileSystem({
input,
output: path.resolve(__dirname, 'multi'),
createPath: true,
multi: true,
header,
footer,
prepend
})
}
setup()