version docs pages
This commit is contained in:
parent
5865251560
commit
21e175d3a6
31 changed files with 329 additions and 388 deletions
20
src/pages/docs/[version]/index.astro
Normal file
20
src/pages/docs/[version]/index.astro
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
import DocsLayout from "@layouts/DocsLayout.astro";
|
||||
import { getVersionsData } from "@config/io/generateTypeData";
|
||||
|
||||
export async function getStaticPaths() {
|
||||
return (await getVersionsData()).versions.map(version => ({
|
||||
params: { version: version.name },
|
||||
props: { version },
|
||||
}));
|
||||
}
|
||||
|
||||
const { version } = Astro.props;
|
||||
---
|
||||
<DocsLayout title="Quickshell Docs" description="Quickshell Documentation">
|
||||
<h2>Docs</h2>
|
||||
<div class="root-nav">
|
||||
<h3><a href={`/docs/${version.name}/guide`}>Usage Guide</a></h3>
|
||||
<h3><a href={`/docs/${version.name}/types`}>Type Definitions</a></h3>
|
||||
</div>
|
||||
</DocsLayout>
|
||||
Loading…
Add table
Add a link
Reference in a new issue