Skip to content

Commit

Permalink
fix(docs): rootage import path
Browse files Browse the repository at this point in the history
  • Loading branch information
malangcat committed Jan 24, 2025
1 parent 5ec9f91 commit 564bb20
Show file tree
Hide file tree
Showing 2 changed files with 138 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/components/rootage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ export function stringifyValueLit(lit: AST.ValueLit): string {
}

export const getRootage = async () => {
const index: { resources: { path: string }[] } = await import("@/public/rootage/index.json").then(
(module) => {
return module.default;
},
);
const index: { resources: { path: string }[] } = await import(
"@/public/rootage-next/index.json"
).then((module) => {
return module.default;
});
const models: Document.Model[] = await Promise.all(
index.resources.map((resource) => import(`@/public/rootage${resource.path}`)),
index.resources.map((resource) => import(`@/public/rootage-next${resource.path}`)),
);
return buildContext(parse(models));
};
132 changes: 132 additions & 0 deletions docs/public/rootage-next/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
{
"name": "Rootage",
"version": "0.0",
"resources": [
{
"path": "/collections.json"
},
{
"path": "/color.json"
},
{
"path": "/components/action-button.json"
},
{
"path": "/components/action-chip.json"
},
{
"path": "/components/avatar.json"
},
{
"path": "/components/avatar-stack.json"
},
{
"path": "/components/badge.json"
},
{
"path": "/components/callout.json"
},
{
"path": "/components/checkbox.json"
},
{
"path": "/components/chip-tab.json"
},
{
"path": "/components/chip-tablist.json"
},
{
"path": "/components/control-chip.json"
},
{
"path": "/components/dialog.json"
},
{
"path": "/components/bottom-sheet.json"
},
{
"path": "/components/fab.json"
},
{
"path": "/components/extended-fab.json"
},
{
"path": "/components/help-bubble.json"
},
{
"path": "/components/identity-placeholder.json"
},
{
"path": "/components/inline-banner.json"
},
{
"path": "/components/progress-circle.json"
},
{
"path": "/components/radio.json"
},
{
"path": "/components/reaction-button.json"
},
{
"path": "/components/segment.json"
},
{
"path": "/components/segmented-control.json"
},
{
"path": "/components/select-box.json"
},
{
"path": "/components/skeleton.json"
},
{
"path": "/components/switch.json"
},
{
"path": "/components/tab.json"
},
{
"path": "/components/tablist.json"
},
{
"path": "/components/text-button.json"
},
{
"path": "/components/text-field.json"
},
{
"path": "/components/toggle-button.json"
},
{
"path": "/components/top-navigation.json"
},
{
"path": "/components/typography.json"
},
{
"path": "/font-size.json"
},
{
"path": "/font-weight.json"
},
{
"path": "/line-height.json"
},
{
"path": "/gradient.json"
},
{
"path": "/radius.json"
},
{
"path": "/dimension.json"
},
{
"path": "/duration.json"
},
{
"path": "/timing-function.json"
}
]
}

0 comments on commit 564bb20

Please sign in to comment.