@dogsbay/docs-layout 0.2.0-beta.75 → 0.2.0-beta.77
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/package.json +3 -3
- package/src/SearchDialog.astro +11 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dogsbay/docs-layout",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.77",
|
|
4
4
|
"description": "Standard documentation layout components for Dogsbay",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"./json-ld": "./src/json-ld.ts"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@dogsbay/ui": "0.2.0-beta.
|
|
33
|
-
"@dogsbay/primitives": "0.2.0-beta.
|
|
32
|
+
"@dogsbay/ui": "0.2.0-beta.77",
|
|
33
|
+
"@dogsbay/primitives": "0.2.0-beta.77"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"vitest": "^3.0.0"
|
package/src/SearchDialog.astro
CHANGED
|
@@ -528,16 +528,17 @@ const {
|
|
|
528
528
|
|
|
529
529
|
let items: string;
|
|
530
530
|
if (hierarchical) {
|
|
531
|
-
//
|
|
532
|
-
//
|
|
533
|
-
//
|
|
534
|
-
//
|
|
535
|
-
//
|
|
536
|
-
//
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
531
|
+
// Every hierarchical facet wants nav.json — slash-encoded
|
|
532
|
+
// for sort order at each depth (so docs follow nav rather
|
|
533
|
+
// than count-desc), segment-encoded for the tree structure
|
|
534
|
+
// itself. Without nav, slash-encoded still renders a tree
|
|
535
|
+
// (using values alone) but in count-desc order, which is
|
|
536
|
+
// wrong on corpora where one branch dwarfs the rest
|
|
537
|
+
// (openshift's rest_api section). Fire ensureNavLoaded()
|
|
538
|
+
// any time a hierarchical facet renders with navData still
|
|
539
|
+
// null — when it resolves, renderFacets re-runs and
|
|
540
|
+
// upgrades the sort.
|
|
541
|
+
if (navData === null) needsNav = true;
|
|
541
542
|
const tree = buildFacetTree(name, entries, {
|
|
542
543
|
display: taxonomyDisplay,
|
|
543
544
|
nav: navData ?? undefined,
|