docs-navigation.ts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. export type NavItem = {
  2. title: string;
  3. href: string;
  4. external?: boolean;
  5. };
  6. export type NavSection = {
  7. title: string;
  8. items: NavItem[];
  9. };
  10. export const docsNavigation: NavSection[] = [
  11. {
  12. title: "Getting Started",
  13. items: [
  14. { title: "Introduction", href: "/docs" },
  15. { title: "Installation", href: "/docs/installation" },
  16. { title: "Quick Start", href: "/docs/quick-start" },
  17. { title: "Changelog", href: "/docs/changelog" },
  18. ],
  19. },
  20. {
  21. title: "Core Concepts",
  22. items: [
  23. { title: "Specs", href: "/docs/specs" },
  24. { title: "Schemas", href: "/docs/schemas" },
  25. { title: "Catalog", href: "/docs/catalog" },
  26. { title: "Registry", href: "/docs/registry" },
  27. { title: "Data Binding", href: "/docs/data-binding" },
  28. { title: "Visibility", href: "/docs/visibility" },
  29. { title: "Validation", href: "/docs/validation" },
  30. ],
  31. },
  32. {
  33. title: "Examples",
  34. items: [
  35. {
  36. title: "Dashboard",
  37. href: "https://github.com/vercel-labs/json-render/tree/main/examples/dashboard",
  38. external: true,
  39. },
  40. {
  41. title: "React Native",
  42. href: "https://github.com/vercel-labs/json-render/tree/main/examples/react-native",
  43. external: true,
  44. },
  45. {
  46. title: "Remotion",
  47. href: "https://github.com/vercel-labs/json-render/tree/main/examples/remotion",
  48. external: true,
  49. },
  50. ],
  51. },
  52. {
  53. title: "Guides",
  54. items: [
  55. { title: "Custom Schema", href: "/docs/custom-schema" },
  56. { title: "Streaming", href: "/docs/streaming" },
  57. { title: "Code Export", href: "/docs/code-export" },
  58. ],
  59. },
  60. {
  61. title: "Integrations",
  62. items: [
  63. { title: "AI SDK", href: "/docs/ai-sdk" },
  64. { title: "A2UI", href: "/docs/a2ui" },
  65. { title: "Adaptive Cards", href: "/docs/adaptive-cards" },
  66. { title: "AG-UI", href: "/docs/ag-ui" },
  67. { title: "OpenAPI", href: "/docs/openapi" },
  68. ],
  69. },
  70. {
  71. title: "API Reference",
  72. items: [
  73. { title: "@json-render/core", href: "/docs/api/core" },
  74. { title: "@json-render/react", href: "/docs/api/react" },
  75. { title: "@json-render/react-native", href: "/docs/api/react-native" },
  76. { title: "@json-render/remotion", href: "/docs/api/remotion" },
  77. { title: "@json-render/codegen", href: "/docs/api/codegen" },
  78. ],
  79. },
  80. ];
  81. // Flatten all pages for current page lookup (excludes external links)
  82. export const allDocsPages = docsNavigation.flatMap((section) =>
  83. section.items.filter((item) => !item.external),
  84. );