--- import { type CollectionEntry } from "astro:content"; import DocumentationLayout from "$layouts/DocumentationLayout.astro"; import ProseWrapper from "$layouts/ProseWrapper.astro"; import { getTitle, getSlug, hasSidebar } from "../content-utils"; import { config } from "../../config"; import SecondaryButton from "$components/buttons/SecondaryButton.astro"; import Footer from "$components/Footer.astro"; import ExternalLink from "$components/ExternalLink.astro"; type Props = { post: CollectionEntry<"docs">; next: CollectionEntry<"docs"> | null; previous: CollectionEntry<"docs"> | null; Content: any; headings: any; showFullLlms?: boolean; }; const sidebar = await hasSidebar(); const { post, next, previous, Content, headings, showFullLlms } = Astro.props; const pageLlmsUrl = `${config.BASE}/${getSlug(post)}/llms.txt`; const fullLlmsUrl = `${config.BASE}/llms-full.txt`; const isReadme = post.id.toLowerCase().replace(/\.mdx?$/, "") === "readme"; const showFull = showFullLlms || isReadme; ---
llms.txt { showFull ? ( llms-full.txt ) : null }
{ previous ? ( ) : null }
{ next ? ( ) : null }