mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-05 15:52:55 +01:00
feat: baselayout
This commit is contained in:
1 parent
164b7fa454
commit
c1a2edb489
5 files changed
+39
-23
No files matched your search
@@ -5,6 +5,7 @@ import {
|
||||
forEachChild,
|
||||
isFunctionDeclaration,
|
||||
} from "typescript";
|
||||
import BaseLayout from "../../layouts/BaseLayout.astro";
|
||||
|
||||
const root = `/src/pages/api`;
|
||||
const globbed = import.meta.glob("/src/pages/api/**/*.ts", {
|
||||
@@ -42,13 +43,15 @@ for (const fullPath in globbed) {
|
||||
paths.sort((a, b) => a.path.localeCompare(b.path));
|
||||
---
|
||||
|
||||
<h1>api</h1>
|
||||
<BaseLayout>
|
||||
<h1>api</h1>
|
||||
|
||||
{
|
||||
paths.map(({ path, documentation }) => (
|
||||
<>
|
||||
<h2>{path}</h2>
|
||||
<p>{documentation}</p>
|
||||
</>
|
||||
))
|
||||
}
|
||||
{
|
||||
paths.map(({ path, documentation }) => (
|
||||
<>
|
||||
<h2>{path}</h2>
|
||||
<p>{documentation}</p>
|
||||
</>
|
||||
))
|
||||
}
|
||||
</BaseLayout>
|
||||
Reference in new issue
Block a user