MCPcopy Create free account
hub / github.com/callstack/react-native-paper / createCategory

Function createCategory

docs/component-docs-plugin/index.js:18–28  ·  view source on GitHub ↗
(label, dir = '.')

Source from the content-addressed store, hash-verified

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;

Callers 1

loadContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…