@blackwork/docs 0.4.2 → 0.5.0

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 (120) hide show
  1. package/README.md +55 -25
  2. package/dist/_virtual/_rolldown/runtime.cjs +1 -1
  3. package/dist/config/defaults.cjs +1 -1
  4. package/dist/config/defaults.mjs +1 -1
  5. package/dist/config/define-config.cjs +2 -2
  6. package/dist/config/define-config.mjs +2 -2
  7. package/dist/config/define-docs-config.cjs +1 -1
  8. package/dist/config/define-docs-config.mjs +1 -1
  9. package/dist/config/load-content-config.cjs +2 -2
  10. package/dist/config/load-content-config.mjs +2 -2
  11. package/dist/config/types.d.mts +33 -3
  12. package/dist/config/types.d.ts +33 -3
  13. package/dist/export/process-exported-docs.cjs +1 -1
  14. package/dist/export/process-exported-docs.mjs +1 -1
  15. package/dist/index.cjs +2 -2
  16. package/dist/index.d.mts +3 -2
  17. package/dist/index.d.ts +3 -2
  18. package/dist/index.mjs +2 -2
  19. package/dist/mdx/default-docs-components.cjs +3 -2
  20. package/dist/mdx/default-docs-components.mjs +3 -2
  21. package/dist/mdx/merge-docs-components.cjs +1 -1
  22. package/dist/mdx/merge-docs-components.mjs +1 -1
  23. package/dist/metadata/create-doc-metadata.cjs +1 -1
  24. package/dist/metadata/create-doc-metadata.mjs +1 -1
  25. package/dist/navigation/build-header-nav.cjs +9 -0
  26. package/dist/navigation/build-header-nav.d.mts +20 -0
  27. package/dist/navigation/build-header-nav.d.ts +20 -0
  28. package/dist/navigation/build-header-nav.mjs +9 -0
  29. package/dist/navigation/build-locale-links.cjs +1 -1
  30. package/dist/navigation/build-locale-links.mjs +1 -1
  31. package/dist/navigation/build-pager.cjs +1 -1
  32. package/dist/navigation/build-pager.mjs +1 -1
  33. package/dist/navigation/build-sidebar.cjs +1 -1
  34. package/dist/navigation/build-sidebar.mjs +1 -1
  35. package/dist/navigation/resolve-sidebar.cjs +1 -1
  36. package/dist/navigation/resolve-sidebar.mjs +1 -1
  37. package/dist/next/context.cjs +1 -1
  38. package/dist/next/context.mjs +1 -1
  39. package/dist/next/document-lang-sync.cjs +1 -1
  40. package/dist/next/document-lang-sync.mjs +1 -1
  41. package/dist/next/load-doc-content.cjs +2 -2
  42. package/dist/next/load-doc-content.mjs +2 -2
  43. package/dist/next/load-generated-manifest.cjs +1 -1
  44. package/dist/next/load-generated-manifest.mjs +1 -1
  45. package/dist/next/metadata.cjs +1 -1
  46. package/dist/next/metadata.mjs +1 -1
  47. package/dist/next/page.cjs +1 -1
  48. package/dist/next/page.mjs +1 -1
  49. package/dist/next/render-route.cjs +2 -2
  50. package/dist/next/render-route.mjs +2 -2
  51. package/dist/next/resolve-document-lang.cjs +1 -1
  52. package/dist/next/resolve-document-lang.mjs +1 -1
  53. package/dist/next/root-layout.cjs +2 -2
  54. package/dist/next/root-layout.d.mts +2 -2
  55. package/dist/next/root-layout.d.ts +2 -2
  56. package/dist/next/root-layout.mjs +2 -2
  57. package/dist/next-plugin/generate.cjs +1 -1
  58. package/dist/next-plugin/generate.mjs +1 -1
  59. package/dist/next.cjs +1 -1
  60. package/dist/next.mjs +1 -1
  61. package/dist/routing/build-static-params.cjs +1 -1
  62. package/dist/routing/build-static-params.mjs +1 -1
  63. package/dist/routing/resolve-docs-route.cjs +1 -1
  64. package/dist/routing/resolve-docs-route.mjs +1 -1
  65. package/dist/runtime.cjs +1 -1
  66. package/dist/runtime.mjs +1 -1
  67. package/dist/source/build-docs-source.cjs +1 -1
  68. package/dist/source/build-docs-source.mjs +1 -1
  69. package/dist/source/collect-docs-manifest.cjs +1 -1
  70. package/dist/source/collect-docs-manifest.mjs +1 -1
  71. package/dist/source/create-docs-source-from-manifest.cjs +1 -1
  72. package/dist/source/create-docs-source-from-manifest.mjs +1 -1
  73. package/dist/source/create-docs-source.cjs +1 -1
  74. package/dist/source/create-docs-source.mjs +1 -1
  75. package/dist/tailwind.css +2 -0
  76. package/dist/theme/components/content-layout.cjs +1 -1
  77. package/dist/theme/components/content-layout.mjs +1 -1
  78. package/dist/theme/components/content-shell.cjs +2 -2
  79. package/dist/theme/components/content-shell.mjs +2 -2
  80. package/dist/theme/components/docs-rail-scroll-state.cjs +1 -1
  81. package/dist/theme/components/docs-rail-scroll-state.mjs +1 -1
  82. package/dist/theme/components/docs-rail-scroll.cjs +1 -1
  83. package/dist/theme/components/docs-rail-scroll.mjs +1 -1
  84. package/dist/theme/components/docs-scroll-reset.cjs +1 -1
  85. package/dist/theme/components/docs-scroll-reset.mjs +1 -1
  86. package/dist/theme/components/docs-scroll-to-top.cjs +2 -2
  87. package/dist/theme/components/docs-scroll-to-top.mjs +2 -2
  88. package/dist/theme/components/docs-shell.cjs +2 -2
  89. package/dist/theme/components/docs-shell.mjs +2 -2
  90. package/dist/theme/components/docs-toc-geometry.cjs +1 -1
  91. package/dist/theme/components/docs-toc-geometry.mjs +1 -1
  92. package/dist/theme/components/docs-toc.cjs +2 -2
  93. package/dist/theme/components/docs-toc.mjs +2 -2
  94. package/dist/theme/components/floating-actions.cjs +1 -1
  95. package/dist/theme/components/floating-actions.mjs +1 -1
  96. package/dist/theme/components/footer.cjs +2 -2
  97. package/dist/theme/components/footer.mjs +2 -2
  98. package/dist/theme/components/header.cjs +2 -2
  99. package/dist/theme/components/header.d.mts +4 -0
  100. package/dist/theme/components/header.d.ts +4 -0
  101. package/dist/theme/components/header.mjs +2 -2
  102. package/dist/theme/components/home-shell.cjs +2 -2
  103. package/dist/theme/components/home-shell.mjs +2 -2
  104. package/dist/theme/components/link.cjs +1 -1
  105. package/dist/theme/components/link.mjs +1 -1
  106. package/dist/theme/components/shell-shared.cjs +2 -2
  107. package/dist/theme/components/shell-shared.d.mts +22 -0
  108. package/dist/theme/components/shell-shared.d.ts +22 -0
  109. package/dist/theme/components/shell-shared.mjs +2 -2
  110. package/dist/theme/create-home-data.cjs +2 -2
  111. package/dist/theme/create-home-data.mjs +2 -2
  112. package/dist/theme/slots.cjs +1 -1
  113. package/dist/theme/slots.mjs +1 -1
  114. package/dist/theme/types.d.mts +29 -9
  115. package/dist/theme/types.d.ts +29 -9
  116. package/dist/theme.cjs +2 -2
  117. package/dist/theme.d.mts +1 -1
  118. package/dist/theme.d.ts +1 -1
  119. package/dist/theme.mjs +2 -2
  120. package/package.json +15 -9
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
7
7
  * license: MIT
8
8
  */
9
- require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../mdx/merge-docs-components.cjs`);let t=require(`node:fs`),n=require(`@blackwork/machine/server`);const r=e=>e.format===`mdx`?`mdx`:`markdown`,i=async({config:i,entry:a})=>(0,n.compile)(a.loadSource?await a.loadSource():(0,t.readFileSync)(a.sourcePath,`utf8`),{format:r(a),components:e.mergeDocsComponents(i.mdx.components)});exports.loadDocContent=i;
9
+ require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../mdx/merge-docs-components.cjs`);let t=require(`node:fs`),n=require(`@blackwork/machine/server`);const r=e=>e.format===`mdx`?`mdx`:`markdown`,i=async({config:i,entry:a})=>(0,n.compile)(a.loadSource?await a.loadSource():(0,t.readFileSync)(a.sourcePath,`utf8`),{format:r(a),includeHtml:!1,components:e.mergeDocsComponents(i.mdx.components)});exports.loadDocContent=i;
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
7
7
  * license: MIT
8
8
  */
9
- import{mergeDocsComponents as e}from"../mdx/merge-docs-components.mjs";import{readFileSync as t}from"node:fs";import{compile as n}from"@blackwork/machine/server";const r=e=>e.format===`mdx`?`mdx`:`markdown`,i=async({config:i,entry:a})=>n(a.loadSource?await a.loadSource():t(a.sourcePath,`utf8`),{format:r(a),components:e(i.mdx.components)});export{i as loadDocContent};
9
+ import{mergeDocsComponents as e}from"../mdx/merge-docs-components.mjs";import{readFileSync as t}from"node:fs";import{compile as n}from"@blackwork/machine/server";const r=e=>e.format===`mdx`?`mdx`:`markdown`,i=async({config:i,entry:a})=>n(a.loadSource?await a.loadSource():t(a.sourcePath,`utf8`),{format:r(a),includeHtml:!1,components:e(i.mdx.components)});export{i as loadDocContent};
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
7
7
  * license: MIT
8
8
  */
9
- require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../theme/components/link.cjs`),t=require(`../theme/components/shell-shared.cjs`),n=require(`../theme/components/content-shell.cjs`),r=require(`../theme/components/docs-shell.cjs`),i=require(`../theme/components/home-shell.cjs`),a=require(`./load-doc-content.cjs`);let o=require(`react/jsx-runtime`),s=require(`blackwork/rsc`);const c=({href:t})=>(0,o.jsxs)(s.LayoutMain,{className:`items-center justify-center py-20`,children:[(0,o.jsx)(`meta`,{httpEquiv:`refresh`,content:`0;url=${t}`}),(0,o.jsxs)(s.Empty,{"data-docs-region":`redirect`,className:`max-w-xl border-border/60`,children:[(0,o.jsxs)(s.EmptyHeader,{children:[(0,o.jsx)(s.EmptyTitle,{children:`Redirecting to the canonical URL`}),(0,o.jsx)(s.EmptyDescription,{children:`The requested path is an alias. You will be sent to the canonical page automatically.`})]}),(0,o.jsx)(s.EmptyContent,{children:(0,o.jsx)(s.Button,{asChild:!0,children:(0,o.jsx)(e.DefaultDocsLink,{href:t,children:`Continue now`})})})]})]}),l=async({config:e,onNotFound:s,onRedirect:l,resolution:u,source:d})=>{if(u.kind===`notFound`)return s?await s():null;if(u.kind===`redirect`)return l?await l(u.entry.href):(0,o.jsx)(c,{href:u.entry.href});if(u.slugSegments.length===0)return(0,o.jsx)(i.DefaultHomeShell,{config:e,locale:u.locale,source:d});let f=await a.loadDocContent({config:e,entry:u.entry});return t.getEntrySectionConfig(e,u.entry).layout===`content`?(0,o.jsx)(n.DefaultContentShell,{config:e,entry:u.entry,headings:f.headings,source:d,children:f.jsxElement}):(0,o.jsx)(r.DefaultDocsShell,{config:e,entry:u.entry,headings:f.headings,source:d,children:f.jsxElement})};exports.renderResolvedDocsRoute=l;
9
+ require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../theme/components/link.cjs`),t=require(`../theme/components/shell-shared.cjs`),n=require(`../theme/components/content-shell.cjs`),r=require(`../theme/components/docs-shell.cjs`),i=require(`../theme/components/home-shell.cjs`),a=require(`./load-doc-content.cjs`);let o=require(`blackwork/rsc`),s=require(`react/jsx-runtime`);const c=({href:t})=>(0,s.jsxs)(o.LayoutMain,{className:`items-center justify-center py-20`,children:[(0,s.jsx)(`meta`,{httpEquiv:`refresh`,content:`0;url=${t}`}),(0,s.jsxs)(o.Empty,{"data-docs-region":`redirect`,className:`max-w-xl border-border/60`,children:[(0,s.jsxs)(o.EmptyHeader,{children:[(0,s.jsx)(o.EmptyTitle,{children:`Redirecting to the canonical URL`}),(0,s.jsx)(o.EmptyDescription,{children:`The requested path is an alias. You will be sent to the canonical page automatically.`})]}),(0,s.jsx)(o.EmptyContent,{children:(0,s.jsx)(o.Button,{asChild:!0,children:(0,s.jsx)(e.DefaultDocsLink,{href:t,children:`Continue now`})})})]})]}),l=async({config:e,onNotFound:o,onRedirect:l,resolution:u,source:d})=>{if(u.kind===`notFound`)return o?await o():null;if(u.kind===`redirect`)return l?await l(u.entry.href):(0,s.jsx)(c,{href:u.entry.href});if(u.slugSegments.length===0)return(0,s.jsx)(i.DefaultHomeShell,{config:e,locale:u.locale,source:d});let f=await a.loadDocContent({config:e,entry:u.entry});return t.getEntrySectionConfig(e,u.entry).layout===`content`?(0,s.jsx)(n.DefaultContentShell,{config:e,entry:u.entry,headings:f.headings,source:d,children:f.jsxElement}):(0,s.jsx)(r.DefaultDocsShell,{config:e,entry:u.entry,headings:f.headings,source:d,children:f.jsxElement})};exports.renderResolvedDocsRoute=l;
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
7
7
  * license: MIT
8
8
  */
9
- import{DefaultDocsLink as e}from"../theme/components/link.mjs";import{getEntrySectionConfig as t}from"../theme/components/shell-shared.mjs";import{DefaultContentShell as n}from"../theme/components/content-shell.mjs";import{DefaultDocsShell as r}from"../theme/components/docs-shell.mjs";import{DefaultHomeShell as i}from"../theme/components/home-shell.mjs";import{loadDocContent as a}from"./load-doc-content.mjs";import{jsx as o,jsxs as s}from"react/jsx-runtime";import{Button as c,Empty as l,EmptyContent as u,EmptyDescription as d,EmptyHeader as f,EmptyTitle as p,LayoutMain as m}from"blackwork/rsc";const h=({href:t})=>s(m,{className:`items-center justify-center py-20`,children:[o(`meta`,{httpEquiv:`refresh`,content:`0;url=${t}`}),s(l,{"data-docs-region":`redirect`,className:`max-w-xl border-border/60`,children:[s(f,{children:[o(p,{children:`Redirecting to the canonical URL`}),o(d,{children:`The requested path is an alias. You will be sent to the canonical page automatically.`})]}),o(u,{children:o(c,{asChild:!0,children:o(e,{href:t,children:`Continue now`})})})]})]}),g=async({config:e,onNotFound:s,onRedirect:c,resolution:l,source:u})=>{if(l.kind===`notFound`)return s?await s():null;if(l.kind===`redirect`)return c?await c(l.entry.href):o(h,{href:l.entry.href});if(l.slugSegments.length===0)return o(i,{config:e,locale:l.locale,source:u});let d=await a({config:e,entry:l.entry});return t(e,l.entry).layout===`content`?o(n,{config:e,entry:l.entry,headings:d.headings,source:u,children:d.jsxElement}):o(r,{config:e,entry:l.entry,headings:d.headings,source:u,children:d.jsxElement})};export{g as renderResolvedDocsRoute};
9
+ import{DefaultDocsLink as e}from"../theme/components/link.mjs";import{getEntrySectionConfig as t}from"../theme/components/shell-shared.mjs";import{DefaultContentShell as n}from"../theme/components/content-shell.mjs";import{DefaultDocsShell as r}from"../theme/components/docs-shell.mjs";import{DefaultHomeShell as i}from"../theme/components/home-shell.mjs";import{loadDocContent as a}from"./load-doc-content.mjs";import{Button as o,Empty as s,EmptyContent as c,EmptyDescription as l,EmptyHeader as u,EmptyTitle as d,LayoutMain as f}from"blackwork/rsc";import{jsx as p,jsxs as m}from"react/jsx-runtime";const h=({href:t})=>m(f,{className:`items-center justify-center py-20`,children:[p(`meta`,{httpEquiv:`refresh`,content:`0;url=${t}`}),m(s,{"data-docs-region":`redirect`,className:`max-w-xl border-border/60`,children:[m(u,{children:[p(d,{children:`Redirecting to the canonical URL`}),p(l,{children:`The requested path is an alias. You will be sent to the canonical page automatically.`})]}),p(c,{children:p(o,{asChild:!0,children:p(e,{href:t,children:`Continue now`})})})]})]}),g=async({config:e,onNotFound:o,onRedirect:s,resolution:c,source:l})=>{if(c.kind===`notFound`)return o?await o():null;if(c.kind===`redirect`)return s?await s(c.entry.href):p(h,{href:c.entry.href});if(c.slugSegments.length===0)return p(i,{config:e,locale:c.locale,source:l});let u=await a({config:e,entry:c.entry});return t(e,c.entry).layout===`content`?p(n,{config:e,entry:c.entry,headings:u.headings,source:l,children:u.jsxElement}):p(r,{config:e,entry:c.entry,headings:u.headings,source:l,children:u.jsxElement})};export{g as renderResolvedDocsRoute};
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
7
7
  * license: MIT
8
8
  */
9
- require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../config/define-config.cjs`),t=require(`../theme/components/docs-scroll-reset.cjs`),n=require(`./resolve-document-lang.cjs`),r=require(`./document-lang-sync.cjs`);let i=require(`blackwork`),a=require(`react/jsx-runtime`);const o=async e=>{let t=(e?await e:void 0)?.slug?.filter(e=>e.length>0)??[];return t.length>0?`/${t.join(`/`)}`:`/`},s=e=>e===`light`||e===`dark`,c=e=>{let t=typeof e.storageKey==`string`?e.storageKey:void 0,n=s(e.defaultTheme)?e.defaultTheme:void 0;return{...t?{storageKey:t}:{},...n?{defaultTheme:n}:{}}},l=async({children:s,config:l,params:u})=>{let d=e.defineConfig(l),f=n.resolveDocumentLang({config:d,pathname:await o(u)}),p=c(d.theme);return(0,a.jsxs)(`html`,{lang:f,suppressHydrationWarning:!0,children:[(0,a.jsx)(`head`,{children:(0,a.jsx)(i.ThemeScript,{...p})}),(0,a.jsx)(`body`,{className:`flex min-h-screen w-screen flex-col`,children:(0,a.jsxs)(i.ThemeProvider,{...p,children:[(0,a.jsx)(r.DocsDocumentLangSync,{content:d.content}),(0,a.jsx)(t.DocsScrollReset,{}),s]})})]})};exports.DocsRootLayout=l;
9
+ require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../config/define-config.cjs`),t=require(`../theme/components/docs-scroll-reset.cjs`),n=require(`./resolve-document-lang.cjs`),r=require(`./document-lang-sync.cjs`);let i=require(`blackwork`),a=require(`blackwork/rsc`),o=require(`react/jsx-runtime`);const s=async e=>{let t=(e?await e:void 0)?.slug?.filter(e=>e.length>0)??[];return t.length>0?`/${t.join(`/`)}`:`/`},c=e=>e===`light`||e===`dark`,l=e=>{let t=typeof e.storageKey==`string`?e.storageKey:void 0,n=c(e.defaultTheme)?e.defaultTheme:void 0;return{...t?{storageKey:t}:{},...n?{defaultTheme:n}:{}}},u=e=>{let t=n.resolveDocumentLang({config:e,pathname:`/`}),r=Object.entries(e.content.locales??{}).reduce((e,[t,n])=>{let r=n.lang||n.code||t;return e[t]=r,e[n.code]=r,e},{});return`(()=>{const value=${JSON.stringify({fallback:t,locales:r}).replaceAll(`<`,`\\u003c`)};const locale=location.pathname.split('/').filter(Boolean)[0];document.documentElement.lang=value.locales[locale]||value.fallback})()`},d=async({children:c,config:d,params:f})=>{let p=e.defineConfig(d),m=n.resolveDocumentLang({config:p,pathname:await s(f)}),h=l(p.theme);return(0,o.jsxs)(`html`,{lang:m,suppressHydrationWarning:!0,children:[(0,o.jsxs)(`head`,{children:[(0,o.jsx)(`script`,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:u(p)}}),(0,o.jsx)(a.ThemeScript,{...h})]}),(0,o.jsx)(`body`,{className:`flex min-h-screen w-screen flex-col`,children:(0,o.jsxs)(i.ThemeProvider,{...h,children:[(0,o.jsx)(r.DocsDocumentLangSync,{content:p.content}),(0,o.jsx)(t.DocsScrollReset,{}),c]})})]})};exports.DocsRootLayout=d;
@@ -1,8 +1,8 @@
1
1
 
2
2
  import { DocsConfig, NormalizedDocsConfig } from "../config/types.mjs";
3
3
  import { DocsRouteParams } from "../routing/resolve-docs-route.mjs";
4
+ import * as _$react from "react";
4
5
  import { ReactNode } from "react";
5
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
6
6
 
7
7
  //#region src/next/root-layout.d.ts
8
8
  interface DocsRootLayoutProps {
@@ -14,6 +14,6 @@ declare const DocsRootLayout: ({
14
14
  children,
15
15
  config,
16
16
  params
17
- }: DocsRootLayoutProps) => Promise<_$react_jsx_runtime0.JSX.Element>;
17
+ }: DocsRootLayoutProps) => Promise<_$react.JSX.Element>;
18
18
  //#endregion
19
19
  export { DocsRootLayout, DocsRootLayoutProps };
@@ -1,8 +1,8 @@
1
1
 
2
2
  import { DocsConfig, NormalizedDocsConfig } from "../config/types.js";
3
3
  import { DocsRouteParams } from "../routing/resolve-docs-route.js";
4
+ import * as _$react from "react";
4
5
  import { ReactNode } from "react";
5
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
6
6
 
7
7
  //#region src/next/root-layout.d.ts
8
8
  interface DocsRootLayoutProps {
@@ -14,6 +14,6 @@ declare const DocsRootLayout: ({
14
14
  children,
15
15
  config,
16
16
  params
17
- }: DocsRootLayoutProps) => Promise<_$react_jsx_runtime0.JSX.Element>;
17
+ }: DocsRootLayoutProps) => Promise<_$react.JSX.Element>;
18
18
  //#endregion
19
19
  export { DocsRootLayout, DocsRootLayoutProps };
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
7
7
  * license: MIT
8
8
  */
9
- import{defineConfig as e}from"../config/define-config.mjs";import{DocsScrollReset as t}from"../theme/components/docs-scroll-reset.mjs";import{resolveDocumentLang as n}from"./resolve-document-lang.mjs";import{DocsDocumentLangSync as r}from"./document-lang-sync.mjs";import{ThemeProvider as i,ThemeScript as a}from"blackwork";import{jsx as o,jsxs as s}from"react/jsx-runtime";const c=async e=>{let t=(e?await e:void 0)?.slug?.filter(e=>e.length>0)??[];return t.length>0?`/${t.join(`/`)}`:`/`},l=e=>e===`light`||e===`dark`,u=e=>{let t=typeof e.storageKey==`string`?e.storageKey:void 0,n=l(e.defaultTheme)?e.defaultTheme:void 0;return{...t?{storageKey:t}:{},...n?{defaultTheme:n}:{}}},d=async({children:l,config:d,params:f})=>{let p=e(d),m=n({config:p,pathname:await c(f)}),h=u(p.theme);return s(`html`,{lang:m,suppressHydrationWarning:!0,children:[o(`head`,{children:o(a,{...h})}),o(`body`,{className:`flex min-h-screen w-screen flex-col`,children:s(i,{...h,children:[o(r,{content:p.content}),o(t,{}),l]})})]})};export{d as DocsRootLayout};
9
+ import{defineConfig as e}from"../config/define-config.mjs";import{DocsScrollReset as t}from"../theme/components/docs-scroll-reset.mjs";import{resolveDocumentLang as n}from"./resolve-document-lang.mjs";import{DocsDocumentLangSync as r}from"./document-lang-sync.mjs";import{ThemeProvider as i}from"blackwork";import{ThemeScript as a}from"blackwork/rsc";import{jsx as o,jsxs as s}from"react/jsx-runtime";const c=async e=>{let t=(e?await e:void 0)?.slug?.filter(e=>e.length>0)??[];return t.length>0?`/${t.join(`/`)}`:`/`},l=e=>e===`light`||e===`dark`,u=e=>{let t=typeof e.storageKey==`string`?e.storageKey:void 0,n=l(e.defaultTheme)?e.defaultTheme:void 0;return{...t?{storageKey:t}:{},...n?{defaultTheme:n}:{}}},d=e=>{let t=n({config:e,pathname:`/`}),r=Object.entries(e.content.locales??{}).reduce((e,[t,n])=>{let r=n.lang||n.code||t;return e[t]=r,e[n.code]=r,e},{});return`(()=>{const value=${JSON.stringify({fallback:t,locales:r}).replaceAll(`<`,`\\u003c`)};const locale=location.pathname.split('/').filter(Boolean)[0];document.documentElement.lang=value.locales[locale]||value.fallback})()`},f=async({children:l,config:f,params:p})=>{let m=e(f),h=n({config:m,pathname:await c(p)}),g=u(m.theme);return s(`html`,{lang:h,suppressHydrationWarning:!0,children:[s(`head`,{children:[o(`script`,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:d(m)}}),o(a,{...g})]}),o(`body`,{className:`flex min-h-screen w-screen flex-col`,children:s(i,{...g,children:[o(r,{content:m.content}),o(t,{}),l]})})]})};export{f as DocsRootLayout};
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
package/dist/next.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
package/dist/next.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
package/dist/runtime.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
package/dist/runtime.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
package/dist/tailwind.css CHANGED
@@ -1,3 +1,5 @@
1
+ @import '@blackwork/machine/tailwind.css';
2
+
1
3
  @source './';
2
4
 
3
5
  @layer components {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
7
7
  * license: MIT
8
8
  */
9
- const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../config/define-config.cjs`),n=require(`../../navigation/build-locale-links.cjs`),r=require(`../../navigation/resolve-sidebar.cjs`),i=require(`../../navigation/build-pager.cjs`),a=require(`../../navigation/build-sidebar.cjs`),o=require(`./link.cjs`),s=require(`./footer.cjs`),c=require(`./header.cjs`),l=require(`./docs-toc.cjs`),u=require(`./content-layout.cjs`),d=require(`../slots.cjs`),f=require(`./docs-scroll-to-top.cjs`),p=require(`./shell-shared.cjs`);let m=require(`react`);m=e.__toESM(m);let h=require(`react/jsx-runtime`);const g=({children:e,config:m,entry:g,headings:_=[],source:v})=>{let y=t.defineConfig(m),b=v.getEntries(g.locale),x=p.getEntrySectionKey(g),S=p.getEntrySectionConfig(y,g),C=Array.isArray(S.sidebar),w=p.getSectionEntries(b,g),T=C?r.resolveSidebar({config:y,entries:b,currentHref:g.href,sectionKey:x}):[],E=p.toNavigation(g,C?r.flattenResolvedSidebarItems(T):a.buildSidebar({entries:b,currentHref:g.href})),D=i.buildPager({entries:w,currentHref:g.href,...C?{sidebar:T}:{}}),O=n.buildLocaleLinks({config:y,entry:g,source:v}),k=p.getTocHeadings(_),A=k.length>=2,j=p.getTocLabels(y,g.locale),M=v.getCanonicalHref(g.locale,[]),N=d.resolveThemeSlots(y.slots),P=N.contentHeaderMeta,F=N.headerActions,I=N.link??o.DefaultDocsLink,L=N.footer??s.DefaultDocsFooter,R=p.getPagefindFilterEntries(p.getPagefindFilters({layout:S.layout,locale:g.locale,section:x})),z=A?(0,h.jsx)(l.DefaultDocsToc,{headings:k,...j,collapseDirection:`right`,collapseEnabled:!0,dock:`fixed`,className:`xl:right-8`}):null,B=A?(0,h.jsx)(l.MobileDocsToc,{headings:k,minHeadings:2,...j}):null;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(c.DefaultDocsHeader,{headerActions:F?(0,h.jsx)(F,{homeHref:M,localeLinks:O,navigation:E,siteDescription:y.site.description,siteTitle:p.getSiteTitle(y)}):void 0,homeHref:M,LinkComponent:I,localeLinks:O,navigation:E,siteDescription:y.site.description,siteTitle:p.getSiteTitle(y)}),(0,h.jsx)(f.DocsScrollToTop,{}),B,z,(0,h.jsx)(u.DefaultContentLayout,{footer:(0,h.jsxs)(`nav`,{"data-docs-region":`pager`,"aria-label":`Document pager`,className:`flex flex-wrap items-center justify-between gap-3 border-t border-border/60 pt-6 text-sm`,children:[D.previous?(0,h.jsxs)(I,{href:D.previous.href,className:`text-muted-foreground`,children:[`Previous: `,D.previous.title]}):(0,h.jsx)(`span`,{}),D.next?(0,h.jsxs)(I,{href:D.next.href,className:`text-muted-foreground`,children:[`Next: `,D.next.title]}):null]}),headerMeta:P?(0,h.jsx)(P,{entry:g}):void 0,pagefindFilterEntries:R,contentTocVisible:A,title:g.title,children:e}),(0,h.jsx)(L,{description:p.getFooterDescription(y,g),homeHref:M,LinkComponent:I,navigation:E,siteTitle:p.getSiteTitle(y)})]})};exports.DefaultContentShell=g;
9
+ const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../config/define-config.cjs`),n=require(`../../navigation/build-locale-links.cjs`),r=require(`../../navigation/build-header-nav.cjs`),i=require(`../../navigation/resolve-sidebar.cjs`),a=require(`../../navigation/build-pager.cjs`),o=require(`./footer.cjs`),s=require(`./link.cjs`),c=require(`./header.cjs`),l=require(`./docs-toc.cjs`),u=require(`./content-layout.cjs`),d=require(`../slots.cjs`),f=require(`./docs-scroll-to-top.cjs`),p=require(`./shell-shared.cjs`);let m=require(`react`);m=e.__toESM(m);let h=require(`react/jsx-runtime`);const g=({children:e,config:m,entry:g,headings:_=[],source:v})=>{let y=t.defineConfig(m),b=v.getEntries(g.locale),x=p.getEntrySectionKey(g),S=p.getEntrySectionConfig(y,g),C=Array.isArray(S.sidebar),w=p.getSectionEntries(b,g),T=C?i.resolveSidebar({config:y,entries:b,currentHref:g.href,sectionKey:x}):[],E=r.buildHeaderNavigation({config:y,currentHref:g.href,locale:g.locale,source:v}),D=a.buildPager({entries:w,currentHref:g.href,...C?{sidebar:T}:{}}),O=n.buildLocaleLinks({config:y,entry:g,source:v}),k=p.getTocHeadings(_),A=k.length>=2,j=p.getTocLabels(y,g.locale),M=p.getThemeLabels(y,g.locale),N=p.getThemeSocialLinks(y,g.locale),P=v.getCanonicalHref(g.locale,[]),F=d.resolveThemeSlots(y.slots),I=F.contentHeaderMeta,L=F.headerActions,R=F.link??s.DefaultDocsLink,z=F.footer??o.DefaultDocsFooter,B=p.getPagefindFilterEntries(p.getPagefindFilters({layout:S.layout,locale:g.locale,section:x})),V=A?(0,h.jsx)(l.DefaultDocsToc,{headings:k,...j,collapseDirection:`right`,collapseEnabled:!0,dock:`fixed`,className:`xl:right-8`}):null,H=A?(0,h.jsx)(l.MobileDocsToc,{headings:k,minHeadings:2,...j}):null;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(c.DefaultDocsHeader,{headerActions:L?(0,h.jsx)(L,{homeHref:P,localeLinks:O,navigation:E,siteDescription:y.site.description,siteTitle:p.getSiteTitle(y)}):void 0,homeHref:P,LinkComponent:R,localeLinks:O,labels:M,navigation:E,socialLinks:N,siteDescription:y.site.description,siteTitle:p.getSiteTitle(y)}),(0,h.jsx)(f.DocsScrollToTop,{label:M.scrollToTop}),H,V,(0,h.jsx)(u.DefaultContentLayout,{footer:(0,h.jsxs)(`nav`,{"data-docs-region":`pager`,"aria-label":M.documentPager,className:`flex flex-wrap items-center justify-between gap-3 border-t border-border/60 pt-6 text-sm`,children:[D.previous?(0,h.jsxs)(R,{href:D.previous.href,className:`text-muted-foreground`,children:[M.previous,`: `,D.previous.title]}):(0,h.jsx)(`span`,{}),D.next?(0,h.jsxs)(R,{href:D.next.href,className:`text-muted-foreground`,children:[M.next,`: `,D.next.title]}):null]}),headerMeta:I?(0,h.jsx)(I,{entry:g}):void 0,pagefindFilterEntries:B,contentTocVisible:A,title:g.title,children:e}),(0,h.jsx)(z,{description:p.getFooterDescription(y,g),homeHref:P,LinkComponent:R,navigation:E,siteTitle:p.getSiteTitle(y)})]})};exports.DefaultContentShell=g;
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
7
7
  * license: MIT
8
8
  */
9
- import{defineConfig as e}from"../../config/define-config.mjs";import{buildLocaleLinks as t}from"../../navigation/build-locale-links.mjs";import{flattenResolvedSidebarItems as n,resolveSidebar as r}from"../../navigation/resolve-sidebar.mjs";import{buildPager as i}from"../../navigation/build-pager.mjs";import{buildSidebar as a}from"../../navigation/build-sidebar.mjs";import{DefaultDocsLink as o}from"./link.mjs";import{DefaultDocsFooter as s}from"./footer.mjs";import{DefaultDocsHeader as c}from"./header.mjs";import{DefaultDocsToc as l,MobileDocsToc as u}from"./docs-toc.mjs";import{DefaultContentLayout as d}from"./content-layout.mjs";import{resolveThemeSlots as f}from"../slots.mjs";import{DocsScrollToTop as p}from"./docs-scroll-to-top.mjs";import{getEntrySectionConfig as m,getEntrySectionKey as h,getFooterDescription as g,getPagefindFilterEntries as _,getPagefindFilters as v,getSectionEntries as y,getSiteTitle as b,getTocHeadings as x,getTocLabels as S,toNavigation as C}from"./shell-shared.mjs";import"react";import{Fragment as w,jsx as T,jsxs as E}from"react/jsx-runtime";const D=({children:D,config:O,entry:k,headings:A=[],source:j})=>{let M=e(O),N=j.getEntries(k.locale),P=h(k),F=m(M,k),I=Array.isArray(F.sidebar),L=y(N,k),R=I?r({config:M,entries:N,currentHref:k.href,sectionKey:P}):[],z=C(k,I?n(R):a({entries:N,currentHref:k.href})),B=i({entries:L,currentHref:k.href,...I?{sidebar:R}:{}}),V=t({config:M,entry:k,source:j}),H=x(A),U=H.length>=2,W=S(M,k.locale),G=j.getCanonicalHref(k.locale,[]),K=f(M.slots),q=K.contentHeaderMeta,J=K.headerActions,Y=K.link??o,X=K.footer??s,Z=_(v({layout:F.layout,locale:k.locale,section:P})),Q=U?T(l,{headings:H,...W,collapseDirection:`right`,collapseEnabled:!0,dock:`fixed`,className:`xl:right-8`}):null,$=U?T(u,{headings:H,minHeadings:2,...W}):null;return E(w,{children:[T(c,{headerActions:J?T(J,{homeHref:G,localeLinks:V,navigation:z,siteDescription:M.site.description,siteTitle:b(M)}):void 0,homeHref:G,LinkComponent:Y,localeLinks:V,navigation:z,siteDescription:M.site.description,siteTitle:b(M)}),T(p,{}),$,Q,T(d,{footer:E(`nav`,{"data-docs-region":`pager`,"aria-label":`Document pager`,className:`flex flex-wrap items-center justify-between gap-3 border-t border-border/60 pt-6 text-sm`,children:[B.previous?E(Y,{href:B.previous.href,className:`text-muted-foreground`,children:[`Previous: `,B.previous.title]}):T(`span`,{}),B.next?E(Y,{href:B.next.href,className:`text-muted-foreground`,children:[`Next: `,B.next.title]}):null]}),headerMeta:q?T(q,{entry:k}):void 0,pagefindFilterEntries:Z,contentTocVisible:U,title:k.title,children:D}),T(X,{description:g(M,k),homeHref:G,LinkComponent:Y,navigation:z,siteTitle:b(M)})]})};export{D as DefaultContentShell};
9
+ import{defineConfig as e}from"../../config/define-config.mjs";import{buildLocaleLinks as t}from"../../navigation/build-locale-links.mjs";import{buildHeaderNavigation as n}from"../../navigation/build-header-nav.mjs";import{resolveSidebar as r}from"../../navigation/resolve-sidebar.mjs";import{buildPager as i}from"../../navigation/build-pager.mjs";import{DefaultDocsFooter as a}from"./footer.mjs";import{DefaultDocsLink as o}from"./link.mjs";import{DefaultDocsHeader as s}from"./header.mjs";import{DefaultDocsToc as c,MobileDocsToc as l}from"./docs-toc.mjs";import{DefaultContentLayout as u}from"./content-layout.mjs";import{resolveThemeSlots as d}from"../slots.mjs";import{DocsScrollToTop as f}from"./docs-scroll-to-top.mjs";import{getEntrySectionConfig as p,getEntrySectionKey as m,getFooterDescription as h,getPagefindFilterEntries as g,getPagefindFilters as _,getSectionEntries as v,getSiteTitle as y,getThemeLabels as b,getThemeSocialLinks as x,getTocHeadings as S,getTocLabels as C}from"./shell-shared.mjs";import"react";import{Fragment as w,jsx as T,jsxs as E}from"react/jsx-runtime";const D=({children:D,config:O,entry:k,headings:A=[],source:j})=>{let M=e(O),N=j.getEntries(k.locale),P=m(k),F=p(M,k),I=Array.isArray(F.sidebar),L=v(N,k),R=I?r({config:M,entries:N,currentHref:k.href,sectionKey:P}):[],z=n({config:M,currentHref:k.href,locale:k.locale,source:j}),B=i({entries:L,currentHref:k.href,...I?{sidebar:R}:{}}),V=t({config:M,entry:k,source:j}),H=S(A),U=H.length>=2,W=C(M,k.locale),G=b(M,k.locale),K=x(M,k.locale),q=j.getCanonicalHref(k.locale,[]),J=d(M.slots),Y=J.contentHeaderMeta,X=J.headerActions,Z=J.link??o,Q=J.footer??a,$=g(_({layout:F.layout,locale:k.locale,section:P})),ee=U?T(c,{headings:H,...W,collapseDirection:`right`,collapseEnabled:!0,dock:`fixed`,className:`xl:right-8`}):null,te=U?T(l,{headings:H,minHeadings:2,...W}):null;return E(w,{children:[T(s,{headerActions:X?T(X,{homeHref:q,localeLinks:V,navigation:z,siteDescription:M.site.description,siteTitle:y(M)}):void 0,homeHref:q,LinkComponent:Z,localeLinks:V,labels:G,navigation:z,socialLinks:K,siteDescription:M.site.description,siteTitle:y(M)}),T(f,{label:G.scrollToTop}),te,ee,T(u,{footer:E(`nav`,{"data-docs-region":`pager`,"aria-label":G.documentPager,className:`flex flex-wrap items-center justify-between gap-3 border-t border-border/60 pt-6 text-sm`,children:[B.previous?E(Z,{href:B.previous.href,className:`text-muted-foreground`,children:[G.previous,`: `,B.previous.title]}):T(`span`,{}),B.next?E(Z,{href:B.next.href,className:`text-muted-foreground`,children:[G.next,`: `,B.next.title]}):null]}),headerMeta:Y?T(Y,{entry:k}):void 0,pagefindFilterEntries:$,contentTocVisible:U,title:k.title,children:D}),T(Q,{description:h(M,k),homeHref:q,LinkComponent:Z,navigation:z,siteTitle:y(M)})]})};export{D as DefaultContentShell};
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @blackwork/docs
3
- * version: v0.4.2
3
+ * version: v0.5.0
4
4
  * description: Next-first documentation framework for Blackwork projects.
5
5
  * author: chengpeiquan <chengpeiquan@chengpeiquan.com>
6
6
  * homepage: https://chengpeiquan.com