aboutsummaryrefslogtreecommitdiff
path: root/examples/docs/src/pages
diff options
context:
space:
mode:
Diffstat (limited to 'examples/docs/src/pages')
-rw-r--r--examples/docs/src/pages/[...slug].astro22
-rw-r--r--examples/docs/src/pages/index.astro5
2 files changed, 0 insertions, 27 deletions
diff --git a/examples/docs/src/pages/[...slug].astro b/examples/docs/src/pages/[...slug].astro
deleted file mode 100644
index a59e4bc2a..000000000
--- a/examples/docs/src/pages/[...slug].astro
+++ /dev/null
@@ -1,22 +0,0 @@
----
-import { CollectionEntry, getCollection } from 'astro:content';
-import MainLayout from '../layouts/MainLayout.astro';
-
-export async function getStaticPaths() {
- const docs = await getCollection('docs');
- return docs.map((entry) => ({
- params: {
- slug: entry.slug,
- },
- props: entry,
- }));
-}
-type Props = CollectionEntry<'docs'>;
-
-const post = Astro.props;
-const { Content, headings } = await post.render();
----
-
-<MainLayout headings={headings} {...post.data}>
- <Content />
-</MainLayout>
diff --git a/examples/docs/src/pages/index.astro b/examples/docs/src/pages/index.astro
deleted file mode 100644
index bce06972f..000000000
--- a/examples/docs/src/pages/index.astro
+++ /dev/null
@@ -1,5 +0,0 @@
-<script is:inline>
- // Redirect your homepage to the first page of documentation.
- // If you have a landing page, remove this script and add it here!
- window.location.pathname = `/en/introduction`;
-</script>