@publier/shell 4.3.8 → 4.4.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.
package/dist/search/index.d.mts
CHANGED
|
@@ -53,6 +53,8 @@ interface SidebarMetaOverride {
|
|
|
53
53
|
interface BuildSidebarOptions {
|
|
54
54
|
/** When set, folders stay collapsible regardless of child count. */
|
|
55
55
|
defaultOpenLevel?: number;
|
|
56
|
+
/** Full content-folder path to expose directly, with its visible index as Overview. */
|
|
57
|
+
scope?: string;
|
|
56
58
|
meta?: Record<string, SidebarMetaOverride>;
|
|
57
59
|
urlPrefix?: string;
|
|
58
60
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@publier/shell",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"description": "Qwik + Astro docs layout for Publier sites.",
|
|
6
6
|
"type": "module",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"@github/details-menu-element": "^1.0.13",
|
|
120
120
|
"@github/relative-time-element": "^5.3.1",
|
|
121
121
|
"@github/tab-container-element": "^4.9.0",
|
|
122
|
-
"@publier/native": "
|
|
122
|
+
"@publier/native": "7.0.0",
|
|
123
123
|
"@tailwindcss/typography": "^0.5.20",
|
|
124
124
|
"astro-pagefind": "^2.0.1",
|
|
125
125
|
"daisyui": "^5.7.22",
|
|
@@ -42,7 +42,7 @@ const breadcrumbs = plan.breadcrumbs.map((crumb) => {
|
|
|
42
42
|
return page && crumb.href !== '/docs' ? { ...crumb, label: page.frontmatter.title } : crumb;
|
|
43
43
|
});
|
|
44
44
|
const ids = new Set(plan.section_entry_ids);
|
|
45
|
-
const sidebarItems = buildSidebar(pages.filter((_, index) => ids.has(all[index].id)), { urlPrefix: '/docs', meta: docsConfig.sidebarMeta, defaultOpenLevel: docsConfig.defaultOpenLevel });
|
|
45
|
+
const sidebarItems = buildSidebar(pages.filter((_, index) => ids.has(all[index].id)), { urlPrefix: '/docs', meta: docsConfig.sidebarMeta, defaultOpenLevel: docsConfig.defaultOpenLevel, scope: plan.scope === 'root' ? undefined : plan.scope });
|
|
46
46
|
const [bodyHead, bodyTail] = shellRenderDocsSlug(JSON.stringify({ title: entry.data.title, description: entry.data.description ?? null })).split('<!--publier-content-slot-->');
|
|
47
47
|
const lastUpdated = entry.data.lastUpdated instanceof Date ? entry.data.lastUpdated : null;
|
|
48
48
|
---
|