(label, dir = '.')
| 16 | } |
| 17 | |
| 18 | function createCategory(label, dir = '.') { |
| 19 | const categoryJSON = JSON.stringify({ label }, undefined, 2); |
| 20 | const docsCategoryDir = path.join(docsRootDir, dir); |
| 21 | if (!fs.existsSync(docsCategoryDir)) { |
| 22 | fs.mkdirSync(docsCategoryDir); |
| 23 | } |
| 24 | fs.writeFileSync( |
| 25 | path.join(docsCategoryDir, `_category_.json`), |
| 26 | categoryJSON |
| 27 | ); |
| 28 | } |
| 29 | |
| 30 | function createPageForComponent(targetArray, source) { |
| 31 | const [item, subitem] = targetArray; |
no outgoing calls
no test coverage detected
searching dependent graphs…