docs(scanner): added in instructions on how to update the scanner
only test2 stage now commands for now.
This commit is contained in:
@@ -13,9 +13,7 @@ const docsMap: Record<string, ComponentType> = {};
|
||||
for (const path in modules) {
|
||||
const mod = modules[path] as DocModule;
|
||||
|
||||
const slug = path
|
||||
.replace("../docs/", "")
|
||||
.replace(".tsx", "");
|
||||
const slug = path.replace("../docs/", "").replace(".tsx", "");
|
||||
|
||||
// "notifications/intro"
|
||||
docsMap[slug] = mod.default;
|
||||
@@ -23,4 +21,4 @@ for (const path in modules) {
|
||||
|
||||
export function getDoc(slug: string) {
|
||||
return docsMap[slug];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user