doccupine 0.0.136 → 0.0.137

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/lib/structures.js +6 -0
  2. package/dist/templates/components/Docs.d.ts +1 -1
  3. package/dist/templates/components/Docs.js +7 -2
  4. package/dist/templates/components/MDXComponents.d.ts +1 -1
  5. package/dist/templates/components/MDXComponents.js +2 -0
  6. package/dist/templates/components/SideBar.d.ts +1 -1
  7. package/dist/templates/components/SideBar.js +5 -0
  8. package/dist/templates/components/layout/Badge.d.ts +1 -1
  9. package/dist/templates/components/layout/Badge.js +16 -5
  10. package/dist/templates/components/layout/DocsComponents.d.ts +1 -1
  11. package/dist/templates/components/layout/DocsComponents.js +10 -0
  12. package/dist/templates/components/layout/DocsNavigation.d.ts +1 -1
  13. package/dist/templates/components/layout/DocsNavigation.js +8 -1
  14. package/dist/templates/components/layout/FocusModeToggle.d.ts +1 -0
  15. package/dist/templates/components/layout/FocusModeToggle.js +103 -0
  16. package/dist/templates/components/layout/Footer.d.ts +1 -1
  17. package/dist/templates/components/layout/Footer.js +7 -0
  18. package/dist/templates/components/layout/SharedStyles.d.ts +1 -1
  19. package/dist/templates/components/layout/SharedStyles.js +47 -0
  20. package/dist/templates/components/layout/SidePanel.d.ts +1 -0
  21. package/dist/templates/components/layout/SidePanel.js +65 -0
  22. package/dist/templates/components/layout/StaticLinks.d.ts +1 -1
  23. package/dist/templates/components/layout/StaticLinks.js +8 -1
  24. package/dist/templates/mdx/api-playground.mdx.d.ts +1 -1
  25. package/dist/templates/mdx/api-playground.mdx.js +1 -1
  26. package/dist/templates/mdx/badges.mdx.d.ts +1 -1
  27. package/dist/templates/mdx/badges.mdx.js +2 -0
  28. package/dist/templates/mdx/color-swatches.mdx.d.ts +1 -1
  29. package/dist/templates/mdx/color-swatches.mdx.js +1 -1
  30. package/dist/templates/mdx/components.mdx.d.ts +1 -1
  31. package/dist/templates/mdx/components.mdx.js +3 -0
  32. package/dist/templates/mdx/fields.mdx.d.ts +1 -1
  33. package/dist/templates/mdx/fields.mdx.js +1 -1
  34. package/dist/templates/mdx/mermaid.mdx.d.ts +1 -1
  35. package/dist/templates/mdx/mermaid.mdx.js +1 -1
  36. package/dist/templates/mdx/navigation.mdx.d.ts +1 -1
  37. package/dist/templates/mdx/navigation.mdx.js +1 -0
  38. package/dist/templates/mdx/side-panel.mdx.d.ts +1 -0
  39. package/dist/templates/mdx/side-panel.mdx.js +62 -0
  40. package/dist/templates/mdx/update.mdx.d.ts +1 -1
  41. package/dist/templates/mdx/update.mdx.js +1 -1
  42. package/dist/templates/package.js +2 -2
  43. package/package.json +2 -2
@@ -1 +1 @@
1
- export declare const navigationMdxTemplate = "---\ntitle: \"Navigation\"\ndescription: \"Organize and structure your navigation.\"\ndate: \"2026-02-19\"\ncategory: \"Configuration\"\ncategoryOrder: 2\norder: 2\n---\n# Navigation\n\nDoccupine builds your sidebar automatically from your MDX pages. By default, it reads the page frontmatter and groups pages into categories in the order you define. For larger docs, you can take full control with a `navigation.json` file.\n\n## Automatic navigation (default)\n\nWhen no custom navigation is provided, Doccupine generates a structure based on each page's frontmatter.\n\n### Frontmatter fields\n\n- **category**: The category name that groups the page in the sidebar.\n- **categoryOrder**: The position of the category within the sidebar. Lower numbers appear first.\n- **order**: The position of the page within its category. Lower numbers appear first.\n- **navIcon**: Optional [Lucide](https://lucide.dev/icons) icon name shown next to the page's sidebar link.\n- **categoryIcon**: Optional Lucide icon name for the page's category header. The first page in a category that sets it wins.\n\n### Example frontmatter\n\n```text\n---\ntitle: \"Navigation\"\ndescription: \"Organize and structure your navigation.\"\ndate: \"2025-01-15\"\ncategory: \"Configuration\"\ncategoryOrder: 2\norder: 2\n---\n```\n\nThis approach is great for small sets of documents. For larger projects, setting these fields on every page can become repetitive.\n\n## Custom navigation with navigation.json\n\nTo centrally define the entire sidebar, create a `navigation.json` at your project root (the same directory where you execute `npx doccupine`). When present, it takes priority over page frontmatter and fully controls the navigation structure.\n\n### Array format\n\nThe simplest format is an array of categories. When using [sections](/sections), this applies to the root section only.\n\n```json\n[\n {\n \"label\": \"Getting Started\",\n \"links\": [\n { \"slug\": \"\", \"title\": \"Introduction\" },\n { \"slug\": \"what-is-doccupine\", \"title\": \"What is Doccupine\" },\n { \"slug\": \"commands\", \"title\": \"Commands\" }\n ]\n },\n {\n \"label\": \"Components\",\n \"links\": [\n { \"slug\": \"components\", \"title\": \"Components\" },\n { \"slug\": \"headers-and-text\", \"title\": \"Headers and Text\" },\n { \"slug\": \"lists-and-tables\", \"title\": \"Lists and tables\" },\n { \"slug\": \"code\", \"title\": \"Code\" },\n { \"slug\": \"prompt\", \"title\": \"Prompt\" },\n { \"slug\": \"callouts\", \"title\": \"Callouts\" },\n { \"slug\": \"accordion\", \"title\": \"Accordion\" },\n { \"slug\": \"tabs\", \"title\": \"Tabs\" },\n { \"slug\": \"steps\", \"title\": \"Steps\" },\n { \"slug\": \"tree\", \"title\": \"Tree\" },\n { \"slug\": \"cards\", \"title\": \"Cards\" },\n { \"slug\": \"buttons\", \"title\": \"Buttons\" },\n { \"slug\": \"badges\", \"title\": \"Badges\" },\n { \"slug\": \"tooltips\", \"title\": \"Tooltips\" },\n { \"slug\": \"images-and-embeds\", \"title\": \"Images and embeds\" },\n { \"slug\": \"frames\", \"title\": \"Frames\" },\n { \"slug\": \"icons\", \"title\": \"Icons\" },\n { \"slug\": \"columns\", \"title\": \"Columns\" },\n { \"slug\": \"fields\", \"title\": \"Fields\" },\n { \"slug\": \"api-playground\", \"title\": \"API Playground\" },\n { \"slug\": \"update\", \"title\": \"Update\" },\n { \"slug\": \"color-swatches\", \"title\": \"Color Swatches\" },\n { \"slug\": \"mermaid\", \"title\": \"Mermaid\" }\n ]\n },\n {\n \"label\": \"Configuration\",\n \"links\": [\n { \"slug\": \"globals\", \"title\": \"Globals\" },\n { \"slug\": \"navigation\", \"title\": \"Navigation\" },\n { \"slug\": \"sections\", \"title\": \"Sections\" },\n { \"slug\": \"footer-links\", \"title\": \"Footer Links\" },\n { \"slug\": \"theme\", \"title\": \"Theme\" },\n { \"slug\": \"fonts\", \"title\": \"Fonts\" },\n { \"slug\": \"media-and-assets\", \"title\": \"Media and assets\" }\n ]\n },\n {\n \"label\": \"AI & Integrations\",\n \"links\": [\n { \"slug\": \"ai-assistant\", \"title\": \"AI Assistant\" },\n { \"slug\": \"model-context-protocol\", \"title\": \"Model Context Protocol\" },\n { \"slug\": \"analytics\", \"title\": \"Analytics\" }\n ]\n },\n {\n \"label\": \"Deployment\",\n \"links\": [\n { \"slug\": \"deployment-and-hosting\", \"title\": \"Deployment & Hosting\" },\n { \"slug\": \"authentication\", \"title\": \"Authentication\" }\n ]\n }\n]\n```\n\n### Object format (per-section)\n\nWhen using [sections](/sections), you can define navigation for each section by using an object keyed by section slug. Sections without a key fall back to auto-generated navigation from frontmatter.\n\n```json\n{\n \"\": [\n {\n \"label\": \"General\",\n \"links\": [\n { \"slug\": \"\", \"title\": \"Getting Started\" },\n { \"slug\": \"commands\", \"title\": \"Commands\" }\n ]\n }\n ],\n \"platform\": [\n {\n \"label\": \"Overview\",\n \"links\": [\n { \"slug\": \"platform/auth\", \"title\": \"Authentication\" },\n { \"slug\": \"platform/users\", \"title\": \"Users\" }\n ]\n }\n ]\n}\n```\n\nThe key `\"\"` controls the root section. Other keys match section slugs defined in `sections.json` or derived from frontmatter. See [Sections](/sections) for details on configuring sections.\n\n### Fields\n\n- **label**: The section header shown in the sidebar.\n- **icon**: Optional [Lucide](https://lucide.dev/icons) icon name shown next to the category header.\n- **links**: An array of page entries for that section.\n - **slug**: The MDX file slug (filename without extension). Use an empty string `\"\"` for `index.mdx`.\n - **title**: The display title in the navigation. This can differ from the page's `title` frontmatter.\n - **icon**: Optional Lucide icon name shown next to the link.\n - **links**: Optional array of nested child links. See [Nested navigation](#nested-navigation).\n\n## Icons\n\nAdd icons to categories and links to make the sidebar easier to scan. Icons use [Lucide](https://lucide.dev/icons) names in kebab-case (e.g. `rocket`, `book-open`, `settings`). Unknown names render nothing, so a typo never breaks the build.\n\nWith frontmatter, set `navIcon` on a page for its sidebar link and `categoryIcon` for its category:\n\n```text\n---\ntitle: \"Introduction\"\ncategory: \"Getting Started\"\ncategoryOrder: 1\norder: 1\nnavIcon: \"rocket\"\ncategoryIcon: \"book-open\"\n---\n```\n\nWith `navigation.json`, add an `icon` to any category or link:\n\n```json\n[\n {\n \"label\": \"Getting Started\",\n \"icon\": \"book-open\",\n \"links\": [\n { \"slug\": \"\", \"title\": \"Introduction\", \"icon\": \"rocket\" },\n { \"slug\": \"commands\", \"title\": \"Commands\", \"icon\": \"terminal\" }\n ]\n }\n]\n```\n\n## Nested navigation\n\nA link in `navigation.json` can hold its own `links` array to create a collapsible group. Groups expand and collapse on click and open automatically when one of their pages is active. Nesting can go as deep as you need.\n\n```json\n[\n {\n \"label\": \"Guides\",\n \"icon\": \"book-open\",\n \"links\": [\n { \"slug\": \"guides\", \"title\": \"Overview\", \"icon\": \"compass\" },\n {\n \"title\": \"Advanced\",\n \"icon\": \"settings\",\n \"links\": [\n { \"slug\": \"guides/caching\", \"title\": \"Caching\" },\n { \"slug\": \"guides/streaming\", \"title\": \"Streaming\" }\n ]\n }\n ]\n }\n]\n```\n\nA group can be a plain label - omit `slug` and it acts only as a collapsible header - or a real page, by adding a `slug` so the group title is also a link.\n\n<Callout type=\"note\">\n Nested groups are only available through `navigation.json`. Frontmatter navigation is always two levels: category and pages.\n</Callout>\n\n## Precedence and behavior\n\n<Callout type=\"note\">\n `navigation.json` takes priority over frontmatter. If present, it fully controls the sidebar structure for the sections it covers.\n</Callout>\n\n- Without `navigation.json`, the sidebar is built from page frontmatter: `category` -> grouped; `categoryOrder` -> category position; `order` -> page position.\n- When using the object format, sections not listed in `navigation.json` fall back to frontmatter-based navigation.\n- Pages without a `category` appear at the top level.\n\n## Tips\n\n- **Start simple**: Use frontmatter for small docs. Switch to `navigation.json` as the structure grows.\n- **Keep slugs consistent**: `slug` must match the MDX filename (e.g., `text.mdx` -> `text`).\n- **Control titles**: Use `title` in `navigation.json` to customize sidebar labels without changing page frontmatter.\n- **Per-section navigation**: Use the object format to define different sidebars for each section. Mix and match - define some sections explicitly and let others auto-generate.";
1
+ export declare const navigationMdxTemplate = "---\ntitle: \"Navigation\"\ndescription: \"Organize and structure your navigation.\"\ndate: \"2026-02-19\"\ncategory: \"Configuration\"\ncategoryOrder: 2\norder: 2\n---\n# Navigation\n\nDoccupine builds your sidebar automatically from your MDX pages. By default, it reads the page frontmatter and groups pages into categories in the order you define. For larger docs, you can take full control with a `navigation.json` file.\n\n## Automatic navigation (default)\n\nWhen no custom navigation is provided, Doccupine generates a structure based on each page's frontmatter.\n\n### Frontmatter fields\n\n- **category**: The category name that groups the page in the sidebar.\n- **categoryOrder**: The position of the category within the sidebar. Lower numbers appear first.\n- **order**: The position of the page within its category. Lower numbers appear first.\n- **navIcon**: Optional [Lucide](https://lucide.dev/icons) icon name shown next to the page's sidebar link.\n- **categoryIcon**: Optional Lucide icon name for the page's category header. The first page in a category that sets it wins.\n\n### Example frontmatter\n\n```text\n---\ntitle: \"Navigation\"\ndescription: \"Organize and structure your navigation.\"\ndate: \"2025-01-15\"\ncategory: \"Configuration\"\ncategoryOrder: 2\norder: 2\n---\n```\n\nThis approach is great for small sets of documents. For larger projects, setting these fields on every page can become repetitive.\n\n## Custom navigation with navigation.json\n\nTo centrally define the entire sidebar, create a `navigation.json` at your project root (the same directory where you execute `npx doccupine`). When present, it takes priority over page frontmatter and fully controls the navigation structure.\n\n### Array format\n\nThe simplest format is an array of categories. When using [sections](/sections), this applies to the root section only.\n\n```json\n[\n {\n \"label\": \"Getting Started\",\n \"links\": [\n { \"slug\": \"\", \"title\": \"Introduction\" },\n { \"slug\": \"what-is-doccupine\", \"title\": \"What is Doccupine\" },\n { \"slug\": \"commands\", \"title\": \"Commands\" }\n ]\n },\n {\n \"label\": \"Components\",\n \"links\": [\n { \"slug\": \"components\", \"title\": \"Components\" },\n { \"slug\": \"headers-and-text\", \"title\": \"Headers and Text\" },\n { \"slug\": \"lists-and-tables\", \"title\": \"Lists and tables\" },\n { \"slug\": \"code\", \"title\": \"Code\" },\n { \"slug\": \"prompt\", \"title\": \"Prompt\" },\n { \"slug\": \"callouts\", \"title\": \"Callouts\" },\n { \"slug\": \"accordion\", \"title\": \"Accordion\" },\n { \"slug\": \"tabs\", \"title\": \"Tabs\" },\n { \"slug\": \"steps\", \"title\": \"Steps\" },\n { \"slug\": \"tree\", \"title\": \"Tree\" },\n { \"slug\": \"cards\", \"title\": \"Cards\" },\n { \"slug\": \"buttons\", \"title\": \"Buttons\" },\n { \"slug\": \"badges\", \"title\": \"Badges\" },\n { \"slug\": \"tooltips\", \"title\": \"Tooltips\" },\n { \"slug\": \"images-and-embeds\", \"title\": \"Images and embeds\" },\n { \"slug\": \"frames\", \"title\": \"Frames\" },\n { \"slug\": \"icons\", \"title\": \"Icons\" },\n { \"slug\": \"columns\", \"title\": \"Columns\" },\n { \"slug\": \"side-panel\", \"title\": \"Side Panel\" },\n { \"slug\": \"fields\", \"title\": \"Fields\" },\n { \"slug\": \"api-playground\", \"title\": \"API Playground\" },\n { \"slug\": \"update\", \"title\": \"Update\" },\n { \"slug\": \"color-swatches\", \"title\": \"Color Swatches\" },\n { \"slug\": \"mermaid\", \"title\": \"Mermaid\" }\n ]\n },\n {\n \"label\": \"Configuration\",\n \"links\": [\n { \"slug\": \"globals\", \"title\": \"Globals\" },\n { \"slug\": \"navigation\", \"title\": \"Navigation\" },\n { \"slug\": \"sections\", \"title\": \"Sections\" },\n { \"slug\": \"footer-links\", \"title\": \"Footer Links\" },\n { \"slug\": \"theme\", \"title\": \"Theme\" },\n { \"slug\": \"fonts\", \"title\": \"Fonts\" },\n { \"slug\": \"media-and-assets\", \"title\": \"Media and assets\" }\n ]\n },\n {\n \"label\": \"AI & Integrations\",\n \"links\": [\n { \"slug\": \"ai-assistant\", \"title\": \"AI Assistant\" },\n { \"slug\": \"model-context-protocol\", \"title\": \"Model Context Protocol\" },\n { \"slug\": \"analytics\", \"title\": \"Analytics\" }\n ]\n },\n {\n \"label\": \"Deployment\",\n \"links\": [\n { \"slug\": \"deployment-and-hosting\", \"title\": \"Deployment & Hosting\" },\n { \"slug\": \"authentication\", \"title\": \"Authentication\" }\n ]\n }\n]\n```\n\n### Object format (per-section)\n\nWhen using [sections](/sections), you can define navigation for each section by using an object keyed by section slug. Sections without a key fall back to auto-generated navigation from frontmatter.\n\n```json\n{\n \"\": [\n {\n \"label\": \"General\",\n \"links\": [\n { \"slug\": \"\", \"title\": \"Getting Started\" },\n { \"slug\": \"commands\", \"title\": \"Commands\" }\n ]\n }\n ],\n \"platform\": [\n {\n \"label\": \"Overview\",\n \"links\": [\n { \"slug\": \"platform/auth\", \"title\": \"Authentication\" },\n { \"slug\": \"platform/users\", \"title\": \"Users\" }\n ]\n }\n ]\n}\n```\n\nThe key `\"\"` controls the root section. Other keys match section slugs defined in `sections.json` or derived from frontmatter. See [Sections](/sections) for details on configuring sections.\n\n### Fields\n\n- **label**: The section header shown in the sidebar.\n- **icon**: Optional [Lucide](https://lucide.dev/icons) icon name shown next to the category header.\n- **links**: An array of page entries for that section.\n - **slug**: The MDX file slug (filename without extension). Use an empty string `\"\"` for `index.mdx`.\n - **title**: The display title in the navigation. This can differ from the page's `title` frontmatter.\n - **icon**: Optional Lucide icon name shown next to the link.\n - **links**: Optional array of nested child links. See [Nested navigation](#nested-navigation).\n\n## Icons\n\nAdd icons to categories and links to make the sidebar easier to scan. Icons use [Lucide](https://lucide.dev/icons) names in kebab-case (e.g. `rocket`, `book-open`, `settings`). Unknown names render nothing, so a typo never breaks the build.\n\nWith frontmatter, set `navIcon` on a page for its sidebar link and `categoryIcon` for its category:\n\n```text\n---\ntitle: \"Introduction\"\ncategory: \"Getting Started\"\ncategoryOrder: 1\norder: 1\nnavIcon: \"rocket\"\ncategoryIcon: \"book-open\"\n---\n```\n\nWith `navigation.json`, add an `icon` to any category or link:\n\n```json\n[\n {\n \"label\": \"Getting Started\",\n \"icon\": \"book-open\",\n \"links\": [\n { \"slug\": \"\", \"title\": \"Introduction\", \"icon\": \"rocket\" },\n { \"slug\": \"commands\", \"title\": \"Commands\", \"icon\": \"terminal\" }\n ]\n }\n]\n```\n\n## Nested navigation\n\nA link in `navigation.json` can hold its own `links` array to create a collapsible group. Groups expand and collapse on click and open automatically when one of their pages is active. Nesting can go as deep as you need.\n\n```json\n[\n {\n \"label\": \"Guides\",\n \"icon\": \"book-open\",\n \"links\": [\n { \"slug\": \"guides\", \"title\": \"Overview\", \"icon\": \"compass\" },\n {\n \"title\": \"Advanced\",\n \"icon\": \"settings\",\n \"links\": [\n { \"slug\": \"guides/caching\", \"title\": \"Caching\" },\n { \"slug\": \"guides/streaming\", \"title\": \"Streaming\" }\n ]\n }\n ]\n }\n]\n```\n\nA group can be a plain label - omit `slug` and it acts only as a collapsible header - or a real page, by adding a `slug` so the group title is also a link.\n\n<Callout type=\"note\">\n Nested groups are only available through `navigation.json`. Frontmatter navigation is always two levels: category and pages.\n</Callout>\n\n## Precedence and behavior\n\n<Callout type=\"note\">\n `navigation.json` takes priority over frontmatter. If present, it fully controls the sidebar structure for the sections it covers.\n</Callout>\n\n- Without `navigation.json`, the sidebar is built from page frontmatter: `category` -> grouped; `categoryOrder` -> category position; `order` -> page position.\n- When using the object format, sections not listed in `navigation.json` fall back to frontmatter-based navigation.\n- Pages without a `category` appear at the top level.\n\n## Tips\n\n- **Start simple**: Use frontmatter for small docs. Switch to `navigation.json` as the structure grows.\n- **Keep slugs consistent**: `slug` must match the MDX filename (e.g., `text.mdx` -> `text`).\n- **Control titles**: Use `title` in `navigation.json` to customize sidebar labels without changing page frontmatter.\n- **Per-section navigation**: Use the object format to define different sidebars for each section. Mix and match - define some sections explicitly and let others auto-generate.";
@@ -76,6 +76,7 @@ The simplest format is an array of categories. When using [sections](/sections),
76
76
  { "slug": "frames", "title": "Frames" },
77
77
  { "slug": "icons", "title": "Icons" },
78
78
  { "slug": "columns", "title": "Columns" },
79
+ { "slug": "side-panel", "title": "Side Panel" },
79
80
  { "slug": "fields", "title": "Fields" },
80
81
  { "slug": "api-playground", "title": "API Playground" },
81
82
  { "slug": "update", "title": "Update" },
@@ -0,0 +1 @@
1
+ export declare const sidePanelMdxTemplate = "---\ntitle: \"Side Panel\"\ndescription: \"Replace a page's table of contents with your own content, pinned to the right rail on desktop and inline on mobile.\"\ndate: \"2026-07-27\"\ncategory: \"Components\"\ncategoryOrder: 1\norder: 18\n---\n# Side Panel\n\nPin supplementary content - notes, links, examples, anything - to the right side of a page.\n\n<SidePanel>\n <Callout type=\"note\">\n This page uses a `SidePanel`, so it has no table of contents.\n </Callout>\n <Card title=\"Components\" icon=\"blocks\" href=\"/components\">\n Any component works inside a panel.\n </Card>\n</SidePanel>\n\nThe `SidePanel` component takes over the right rail that normally holds the \"On this page\" table of contents. Use it when a page benefits more from persistent context - a related link, a note, a quick reference - than from a list of headings.\n\n## Side Panel Usage\n\nPlace a `SidePanel` anywhere in your MDX file. On desktop its position in the file does not matter; it always renders in the right rail.\n\n```html\n<SidePanel>\n <Callout type=\"note\">Pin a note to the side panel.</Callout>\n</SidePanel>\n```\n\n## Behavior\n\n- **Desktop**: the panel is pinned to the right rail and scrolls independently of the page. It is as wide as the navigation sidebar, and on wide screens it grows to the width of the AI chat panel, with the page content, navigation buttons, and footer shifting left to make room.\n- **Mobile**: the panel renders inline, exactly where you placed it in the file. Put it near the top of the page if you want readers to see it first.\n- **Table of contents**: any page containing a `SidePanel` hides its \"On this page\" list. The panel and the table of contents share the same column.\n- **Code samples**: a `SidePanel` shown inside a code block is just text, so documenting the component does not hide your table of contents.\n\n<Callout type=\"warning\">\n Use one `SidePanel` per page. Multiple panels stack on top of each other in the right rail.\n</Callout>\n\n## What to put in a panel\n\nAny component works inside a `SidePanel`. Keep it scannable - the rail is meant for supporting material, not a second article.\n\n```html\n<SidePanel>\n <Card title=\"API Reference\" icon=\"code\" href=\"/api-playground\">\n Browse every endpoint.\n </Card>\n <Callout type=\"tip\">Panels scroll independently of the page.</Callout>\n</SidePanel>\n```\n\n## Properties\n\n<Field value=\"children\" type=\"node\" required>\n The content of the side panel.\n</Field>";
@@ -0,0 +1,62 @@
1
+ export const sidePanelMdxTemplate = `---
2
+ title: "Side Panel"
3
+ description: "Replace a page's table of contents with your own content, pinned to the right rail on desktop and inline on mobile."
4
+ date: "2026-07-27"
5
+ category: "Components"
6
+ categoryOrder: 1
7
+ order: 18
8
+ ---
9
+ # Side Panel
10
+
11
+ Pin supplementary content - notes, links, examples, anything - to the right side of a page.
12
+
13
+ <SidePanel>
14
+ <Callout type="note">
15
+ This page uses a \`SidePanel\`, so it has no table of contents.
16
+ </Callout>
17
+ <Card title="Components" icon="blocks" href="/components">
18
+ Any component works inside a panel.
19
+ </Card>
20
+ </SidePanel>
21
+
22
+ The \`SidePanel\` component takes over the right rail that normally holds the "On this page" table of contents. Use it when a page benefits more from persistent context - a related link, a note, a quick reference - than from a list of headings.
23
+
24
+ ## Side Panel Usage
25
+
26
+ Place a \`SidePanel\` anywhere in your MDX file. On desktop its position in the file does not matter; it always renders in the right rail.
27
+
28
+ \`\`\`html
29
+ <SidePanel>
30
+ <Callout type="note">Pin a note to the side panel.</Callout>
31
+ </SidePanel>
32
+ \`\`\`
33
+
34
+ ## Behavior
35
+
36
+ - **Desktop**: the panel is pinned to the right rail and scrolls independently of the page. It is as wide as the navigation sidebar, and on wide screens it grows to the width of the AI chat panel, with the page content, navigation buttons, and footer shifting left to make room.
37
+ - **Mobile**: the panel renders inline, exactly where you placed it in the file. Put it near the top of the page if you want readers to see it first.
38
+ - **Table of contents**: any page containing a \`SidePanel\` hides its "On this page" list. The panel and the table of contents share the same column.
39
+ - **Code samples**: a \`SidePanel\` shown inside a code block is just text, so documenting the component does not hide your table of contents.
40
+
41
+ <Callout type="warning">
42
+ Use one \`SidePanel\` per page. Multiple panels stack on top of each other in the right rail.
43
+ </Callout>
44
+
45
+ ## What to put in a panel
46
+
47
+ Any component works inside a \`SidePanel\`. Keep it scannable - the rail is meant for supporting material, not a second article.
48
+
49
+ \`\`\`html
50
+ <SidePanel>
51
+ <Card title="API Reference" icon="code" href="/api-playground">
52
+ Browse every endpoint.
53
+ </Card>
54
+ <Callout type="tip">Panels scroll independently of the page.</Callout>
55
+ </SidePanel>
56
+ \`\`\`
57
+
58
+ ## Properties
59
+
60
+ <Field value="children" type="node" required>
61
+ The content of the side panel.
62
+ </Field>`;
@@ -1 +1 @@
1
- export declare const updateMdxTemplate = "---\ntitle: \"Update\"\ndescription: \"Easily manage and present change history.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder: 20\nrss: true\n---\n# Update\n\nEasily manage and present change history.\n\nThe `Update` component helps you display release notes, version details, and changelogs in a standardized format.\n\nEach `Update` label is added to the \"On this page\" sidebar and gets its own anchor, so you can link directly to a specific entry.\n\n<Update label=\"v0.0.1\" description=\"Example\">\n ## Example entry\n\n You can include anything here - images, code snippets, or a bullet list of modifications.\n\n ![Demo Image](https://docs.doccupine.com/demo.png)\n\n ### Key additions\n\n - Fully responsive layout\n - Individual anchor for each update\n - Automatic RSS feed entry generation\n</Update>\n\n## Update Usage\n\nYou can combine multiple `Update` components to build complete changelogs.\n\n```html\n<Update label=\"v0.0.1\" description=\"Example\">\n ## Example entry\n\n You can include anything here - images, code snippets, or a bullet list of modifications.\n\n ![Demo Image](https://docs.doccupine.com/demo.png)\n\n ### Key additions\n\n - Fully responsive layout\n - Individual anchor for each update\n - Automatic RSS feed entry generation\n</Update>\n```\n\n## Subscribable changelogs\n\nEvery page that contains at least one `Update` component automatically publishes an RSS feed at its page URL with `/rss.xml` appended. For example, this page's feed lives at `/update/rss.xml`.\n\nEach `Update` becomes a feed entry: the `label` is the entry title, and the entry link deep-links to the update's anchor on the page. New entries reach subscribers as soon as the site is rebuilt with new `Update` components.\n\nFeed entries contain pure Markdown only. They exclude components, code, and HTML elements. Use the `rss` property to provide alternative text for feed readers when an update consists mostly of excluded content:\n\n```html\n<Update label=\"v0.0.2\" rss=\"Added dark mode and fixed sidebar links.\">\n <Frame>![Dark mode](https://docs.doccupine.com/demo.png)</Frame>\n</Update>\n```\n\nThe feed's channel title and description come from the page frontmatter, falling back to the site name and description from `config.json`. RSS feeds are only available on public documentation - password-protected sites do not expose them.\n\nRSS feeds can integrate with Slack, email, or other subscription tools to notify readers of changes. Some options include:\n\n- [Slack](https://slack.com/help/articles/218688467-Add-RSS-feeds-to-Slack)\n- [Email](https://zapier.com/apps/email/integrations/rss/1441/send-new-rss-feed-entries-via-email) via Zapier\n- Discord bots like [Readybot](https://readybot.io)\n\n## RSS button\n\nTo make the feed discoverable, add `rss: true` to the page frontmatter. This displays an RSS button at the top of the page that links to the feed - this page shows one. The button only appears when the page actually contains `Update` components.\n\n```yaml\n---\nrss: true\n---\n```\n\n## Properties\n\n<Field value=\"label\" type=\"string\" required>\n The label of the update. It also appears in the page's \"On this page\"\n navigation, acts as a deep-link anchor to this entry, and becomes the entry\n title in the page's RSS feed.\n</Field>\n\n<Field value=\"description\" type=\"string\">\n An optional description for the update. When omitted, no description is shown.\n</Field>\n\n<Field value=\"rss\" type=\"string\">\n Alternative pure-Markdown text for this entry in the page's RSS feed. When\n omitted, the feed uses the entry content with components, code, and HTML\n removed. Never rendered on the page.\n</Field>\n\n<Field value=\"children\" type=\"node\" required>\n The content of the update.\n</Field>";
1
+ export declare const updateMdxTemplate = "---\ntitle: \"Update\"\ndescription: \"Easily manage and present change history.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder: 21\nrss: true\n---\n# Update\n\nEasily manage and present change history.\n\nThe `Update` component helps you display release notes, version details, and changelogs in a standardized format.\n\nEach `Update` label is added to the \"On this page\" sidebar and gets its own anchor, so you can link directly to a specific entry.\n\n<Update label=\"v0.0.1\" description=\"Example\">\n ## Example entry\n\n You can include anything here - images, code snippets, or a bullet list of modifications.\n\n ![Demo Image](https://docs.doccupine.com/demo.png)\n\n ### Key additions\n\n - Fully responsive layout\n - Individual anchor for each update\n - Automatic RSS feed entry generation\n</Update>\n\n## Update Usage\n\nYou can combine multiple `Update` components to build complete changelogs.\n\n```html\n<Update label=\"v0.0.1\" description=\"Example\">\n ## Example entry\n\n You can include anything here - images, code snippets, or a bullet list of modifications.\n\n ![Demo Image](https://docs.doccupine.com/demo.png)\n\n ### Key additions\n\n - Fully responsive layout\n - Individual anchor for each update\n - Automatic RSS feed entry generation\n</Update>\n```\n\n## Subscribable changelogs\n\nEvery page that contains at least one `Update` component automatically publishes an RSS feed at its page URL with `/rss.xml` appended. For example, this page's feed lives at `/update/rss.xml`.\n\nEach `Update` becomes a feed entry: the `label` is the entry title, and the entry link deep-links to the update's anchor on the page. New entries reach subscribers as soon as the site is rebuilt with new `Update` components.\n\nFeed entries contain pure Markdown only. They exclude components, code, and HTML elements. Use the `rss` property to provide alternative text for feed readers when an update consists mostly of excluded content:\n\n```html\n<Update label=\"v0.0.2\" rss=\"Added dark mode and fixed sidebar links.\">\n <Frame>![Dark mode](https://docs.doccupine.com/demo.png)</Frame>\n</Update>\n```\n\nThe feed's channel title and description come from the page frontmatter, falling back to the site name and description from `config.json`. RSS feeds are only available on public documentation - password-protected sites do not expose them.\n\nRSS feeds can integrate with Slack, email, or other subscription tools to notify readers of changes. Some options include:\n\n- [Slack](https://slack.com/help/articles/218688467-Add-RSS-feeds-to-Slack)\n- [Email](https://zapier.com/apps/email/integrations/rss/1441/send-new-rss-feed-entries-via-email) via Zapier\n- Discord bots like [Readybot](https://readybot.io)\n\n## RSS button\n\nTo make the feed discoverable, add `rss: true` to the page frontmatter. This displays an RSS button at the top of the page that links to the feed - this page shows one. The button only appears when the page actually contains `Update` components.\n\n```yaml\n---\nrss: true\n---\n```\n\n## Properties\n\n<Field value=\"label\" type=\"string\" required>\n The label of the update. It also appears in the page's \"On this page\"\n navigation, acts as a deep-link anchor to this entry, and becomes the entry\n title in the page's RSS feed.\n</Field>\n\n<Field value=\"description\" type=\"string\">\n An optional description for the update. When omitted, no description is shown.\n</Field>\n\n<Field value=\"rss\" type=\"string\">\n Alternative pure-Markdown text for this entry in the page's RSS feed. When\n omitted, the feed uses the entry content with components, code, and HTML\n removed. Never rendered on the page.\n</Field>\n\n<Field value=\"children\" type=\"node\" required>\n The content of the update.\n</Field>";
@@ -4,7 +4,7 @@ description: "Easily manage and present change history."
4
4
  date: "2026-02-19"
5
5
  category: "Components"
6
6
  categoryOrder: 1
7
- order: 20
7
+ order: 21
8
8
  rss: true
9
9
  ---
10
10
  # Update
@@ -16,7 +16,7 @@ export const packageJsonTemplate = JSON.stringify({
16
16
  "@langchain/google-genai": "^2.2.0",
17
17
  "@langchain/openai": "^1.5.5",
18
18
  "@mdx-js/react": "^3.1.1",
19
- "@modelcontextprotocol/sdk": "^1.29.0",
19
+ "@modelcontextprotocol/sdk": "^1.30.0",
20
20
  "beautiful-mermaid": "^1.1.3",
21
21
  "cherry-styled-components": "^0.2.11",
22
22
  langchain: "^1.5.4",
@@ -24,7 +24,7 @@ export const packageJsonTemplate = JSON.stringify({
24
24
  minisearch: "^7.2.0",
25
25
  next: "16.2.12",
26
26
  "next-mdx-remote": "^6.0.0",
27
- "posthog-js": "^1.407.2",
27
+ "posthog-js": "^1.407.3",
28
28
  "posthog-node": "^5.46.1",
29
29
  react: "19.2.8",
30
30
  "react-dom": "19.2.8",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doccupine",
3
- "version": "0.0.136",
3
+ "version": "0.0.137",
4
4
  "description": "Free and open-source documentation platform. Write MDX, get a production-ready site with AI chat, built-in components, and an MCP server - in one command.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/fs-extra": "^11.0.4",
50
- "@types/node": "^26.1.1",
50
+ "@types/node": "^26.1.2",
51
51
  "@types/prompts": "^2.4.9",
52
52
  "prettier": "^3.9.6",
53
53
  "typescript": "^7.0.2",