docs-navigation.ts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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: "Skills", href: "/docs/skills" },
  18. { title: "Migration Guide", href: "/docs/migration" },
  19. { title: "Changelog", href: "/docs/changelog" },
  20. ],
  21. },
  22. {
  23. title: "Core",
  24. items: [
  25. { title: "Specs", href: "/docs/specs" },
  26. { title: "Schemas", href: "/docs/schemas" },
  27. { title: "Catalog", href: "/docs/catalog" },
  28. { title: "Data Binding", href: "/docs/data-binding" },
  29. { title: "Computed Values", href: "/docs/computed-values" },
  30. { title: "Visibility", href: "/docs/visibility" },
  31. { title: "Watchers", href: "/docs/watchers" },
  32. { title: "Validation", href: "/docs/validation" },
  33. ],
  34. },
  35. {
  36. title: "Rendering",
  37. items: [
  38. { title: "Renderers", href: "/docs/renderers" },
  39. { title: "Registry", href: "/docs/registry" },
  40. { title: "Streaming", href: "/docs/streaming" },
  41. { title: "Generation Modes", href: "/docs/generation-modes" },
  42. ],
  43. },
  44. {
  45. title: "Examples",
  46. items: [{ title: "Browse All Examples", href: "/examples" }],
  47. },
  48. {
  49. title: "Guides",
  50. items: [
  51. { title: "Custom Schema", href: "/docs/custom-schema" },
  52. { title: "Code Export", href: "/docs/code-export" },
  53. ],
  54. },
  55. {
  56. title: "Integrations",
  57. items: [
  58. { title: "AI SDK", href: "/docs/ai-sdk" },
  59. { title: "A2UI", href: "/docs/a2ui" },
  60. { title: "Adaptive Cards", href: "/docs/adaptive-cards" },
  61. { title: "AG-UI", href: "/docs/ag-ui" },
  62. { title: "OpenAPI", href: "/docs/openapi" },
  63. ],
  64. },
  65. {
  66. title: "API Reference",
  67. items: [
  68. { title: "@json-render/core", href: "/docs/api/core" },
  69. { title: "@json-render/react", href: "/docs/api/react" },
  70. { title: "@json-render/react-pdf", href: "/docs/api/react-pdf" },
  71. { title: "@json-render/react-email", href: "/docs/api/react-email" },
  72. { title: "@json-render/shadcn", href: "/docs/api/shadcn" },
  73. { title: "@json-render/react-native", href: "/docs/api/react-native" },
  74. { title: "@json-render/image", href: "/docs/api/image" },
  75. { title: "@json-render/remotion", href: "/docs/api/remotion" },
  76. { title: "@json-render/ink", href: "/docs/api/ink" },
  77. { title: "@json-render/vue", href: "/docs/api/vue" },
  78. { title: "@json-render/svelte", href: "/docs/api/svelte" },
  79. { title: "@json-render/solid", href: "/docs/api/solid" },
  80. {
  81. title: "@json-render/react-three-fiber",
  82. href: "/docs/api/react-three-fiber",
  83. },
  84. { title: "@json-render/codegen", href: "/docs/api/codegen" },
  85. { title: "@json-render/mcp", href: "/docs/api/mcp" },
  86. { title: "@json-render/redux", href: "/docs/api/redux" },
  87. { title: "@json-render/zustand", href: "/docs/api/zustand" },
  88. { title: "@json-render/jotai", href: "/docs/api/jotai" },
  89. { title: "@json-render/xstate", href: "/docs/api/xstate" },
  90. { title: "@json-render/yaml", href: "/docs/api/yaml" },
  91. ],
  92. },
  93. ];
  94. // Flatten all pages for current page lookup (excludes external links)
  95. export const allDocsPages = docsNavigation.flatMap((section) =>
  96. section.items.filter((item) => !item.external),
  97. );