Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion components/site-frame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ export function SiteFrame({ children }: { children: ReactNode }) {
<div className="sidebar-mobile-head"><span>Documentation</span><button onClick={() => setMenuOpen(false)} aria-label="Close navigation"><X /></button></div>
<nav className="sidebar-content" aria-label="Documentation">
<Link className="home-link" href="/" onClick={() => setMenuOpen(false)} aria-current={pathname === "/" || pathname === "/docs" ? "page" : undefined}>Welcome to Rustic</Link>
<a className="home-link" href="/llms.txt">Documentation for AI agents</a>
<div className="project-switcher" aria-label="Documentation projects">{docSections.map((section) => <Link href={section.href} key={section.title} className={!isIndex && project === section.title ? "active" : ""} onClick={() => setMenuOpen(false)}>{section.title}</Link>)}</div>
{docSections.filter((section) => isIndex || section.title === project).map((section) => <div className="nav-project" key={section.title}>
<Link className="nav-project-title" href={section.href} onClick={() => setMenuOpen(false)}>{section.title}</Link>
Expand Down
2 changes: 1 addition & 1 deletion tests/agent-docs.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ test("every exported Markdown documentation link targets an exported file", asyn

test("HTML advertises plain text and Markdown and crawlers discover canonical pages", async () => {
const html = await exported("docs/api/audio/stop-recording.html");
assert.match(html, /href="\/llms\.txt">Documentation for AI agents<\/a>/);
assert.doesNotMatch(html, /<a\b[^>]*href="\/llms\.txt"/);
assert.match(html, /<link[^>]+type="text\/markdown"[^>]+href="https:\/\/rustic-game-engine\.pages\.dev\/markdown\/api\/audio\/stop-recording\.md"/);
assert.match(html, /<link[^>]+type="text\/plain"[^>]+href="https:\/\/rustic-game-engine\.pages\.dev\/llms\.txt"/);
const sitemap = await exported("sitemap.xml");
Expand Down
Loading