Skip to content

Documentation Indexing

Below is a list of all the pages in our documentation.

This is ideal for automated look ups, or giving AIs full context of our documentation.

This is the code used to generate this page
list-pages.astro
---
import { getCollection } from "astro:content";
const allPages: { slug: string }[] = await getCollection("docs");
/* ignore "this" page, to simplify usage;
* removing the worry of potential infinite link loopbacks
* when running your automation scripts or ai scrapers */
const thisPath = Astro.url.pathname;
const pages = allPages.filter((doc) => `/${doc.slug}/` !== thisPath);
---
<ul>
{
pages.map((page) => (
<li>
<a id={page.slug} href={`/${page.slug}`}>
{page.slug}
</a>
</li>
))
}
</ul>