pict-docuserve 0.0.21 → 0.0.23
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/pict-docuserve.js
CHANGED
|
@@ -7631,8 +7631,26 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
7631
7631
|
return '#/Home';
|
|
7632
7632
|
}
|
|
7633
7633
|
|
|
7634
|
-
// Bare hash link (e.g. "#fable") — docsify convention for the home/readme page
|
|
7634
|
+
// Bare hash link (e.g. "#fable") — docsify convention for the home/readme page.
|
|
7635
|
+
// Navigate to the first available content route in the sidebar, skipping
|
|
7636
|
+
// #/Home since the cover page is already displaying that.
|
|
7635
7637
|
if (pHref.match(/^#[^/]/)) {
|
|
7638
|
+
let tmpSidebarGroups = this.pict.AppData.Docuserve.SidebarGroups;
|
|
7639
|
+
if (tmpSidebarGroups) {
|
|
7640
|
+
for (let g = 0; g < tmpSidebarGroups.length; g++) {
|
|
7641
|
+
let tmpModules = tmpSidebarGroups[g].Modules;
|
|
7642
|
+
if (tmpModules) {
|
|
7643
|
+
for (let m = 0; m < tmpModules.length; m++) {
|
|
7644
|
+
if (tmpModules[m].HasDocs && tmpModules[m].Route && tmpModules[m].Route !== '#/Home') {
|
|
7645
|
+
return tmpModules[m].Route;
|
|
7646
|
+
}
|
|
7647
|
+
}
|
|
7648
|
+
}
|
|
7649
|
+
if (tmpSidebarGroups[g].Route && tmpSidebarGroups[g].Route !== '#/Home') {
|
|
7650
|
+
return tmpSidebarGroups[g].Route;
|
|
7651
|
+
}
|
|
7652
|
+
}
|
|
7653
|
+
}
|
|
7636
7654
|
return '#/Home';
|
|
7637
7655
|
}
|
|
7638
7656
|
|