Beautiful, AI-native markdown IDE and LLM wiki
TypeScript 2nd-brainagent-skillsclaudecodexcompany-braindocsknowledge-knowledge-baseknowledge-managementllmllm-wikillm-wiki-karpathymarkdownmarkdown-editormdmdxnotespkmsecond-brainskills
Link legal pages from site footers and index them (PRD-9922) (#7852)
serafin-garcia016567d2e43f
diff --git a/docs/src/app/robots.ts b/docs/src/app/robots.tsindex 2a07a480d..c75a14d58 100644--- a/docs/src/app/robots.ts+++ b/docs/src/app/robots.ts@@ -14,6 +14,7 @@ export default function robots(): MetadataRoute.Robots {`${SITE_URL}/sitemap.xml`,`${SITE_URL}/blog/sitemap.xml`,`${SITE_URL}/team/sitemap.xml`,+ `${SITE_URL}/legal/sitemap.xml`,],};}diff --git a/docs/src/components/footer.tsx b/docs/src/components/footer.tsxindex 5e9404d17..2c7f17490 100644--- a/docs/src/components/footer.tsx+++ b/docs/src/components/footer.tsx@@ -4,7 +4,15 @@ import { GitHubIcon } from '@/components/icons/github';import { XIcon } from '@/components/icons/x';import { InkeepLogo } from '@/components/inkeep-logo';import { BRAND_ROUTE } from '@/lib/brand-assets';-import { CHANGELOG_ROUTE, DISCORD_URL, GITHUB_URL, X_URL } from '@/lib/site';+import {+ CHANGELOG_ROUTE,+ DISCORD_URL,+ GITHUB_URL,+ LEGAL_ROUTE,+ PRIVACY_POLICY_ROUTE,+ TERMS_OF_SERVICE_ROUTE,+ X_URL,+} from '@/lib/site';import { DotTexture } from './dot-texture';const socialLinks = [@@ -14,14 +22,11 @@ const socialLinks = [];const legalLinks = [- { href: CHANGELOG_ROUTE, label: 'Changelog', external: false },- { href: BRAND_ROUTE, label: 'Brand', external: false },- {- href: 'https://inkeep.com/policies/terms-of-service',- label: 'Terms of Service',- external: true,- },- { href: 'https://inkeep.com/policies/privacy', label: 'Privacy', external: true },+ { href: CHANGELOG_ROUTE, label: 'Changelog' },+ { href: BRAND_ROUTE, label: 'Brand' },+ { href: LEGAL_ROUTE, label: 'Legal' },+ { href: TERMS_OF_SERVICE_ROUTE, label: 'Terms of Service' },+ { href: PRIVACY_POLICY_ROUTE, label: 'Privacy' },];export function SiteFooter() {@@ -53,14 +58,12 @@ export function SiteFooter() {<span>Made by</span><InkeepLogo className="w-20" /></Link>- <div className="flex items-center justify-center gap-6 text-sm text-slide-muted min-[24rem]:justify-end">- {legalLinks.map(({ href, label, external }) => (+ <div className="flex flex-wrap items-center justify-center gap-x-6 gap-y-2 text-sm text-slide-muted min-[24rem]:justify-end">+ {legalLinks.map(({ href, label }) => (<Linkkey={href}href={href}- target={external ? '_blank' : undefined}- rel={external ? 'noreferrer' : undefined}- className="rounded-sm outline-none transition-colors hover:text-slide-text focus-visible:ring-2 focus-visible:ring-slide-accent focus-visible:ring-offset-2"+ className="whitespace-nowrap rounded-sm outline-none transition-colors hover:text-slide-text focus-visible:ring-2 focus-visible:ring-slide-accent focus-visible:ring-offset-2">{label}</Link>diff --git a/docs/src/lib/site.ts b/docs/src/lib/site.tsindex 118f3a903..13cab6955 100644--- a/docs/src/lib/site.ts+++ b/docs/src/lib/site.ts@@ -11,6 +11,9 @@ export const TWITTER_HANDLE = '@OpenKnowledge';export const GITHUB_URL = 'https://github.com/inkeep/open-knowledge';export const DISCORD_URL = 'https://discord.gg/VRKk2EaGHN';export const CHANGELOG_ROUTE = '/docs/changelog';+export const LEGAL_ROUTE = '/legal';+export const TERMS_OF_SERVICE_ROUTE = `${LEGAL_ROUTE}/self-serve-terms`;+export const PRIVACY_POLICY_ROUTE = `${LEGAL_ROUTE}/privacy-policy`;export const CHANGELOG_TIMELINE_LIMIT = 30;export const X_URL = `https://x.com/${TWITTER_HANDLE.slice(1)}`;export const SITE_DESCRIPTION =