@xyd-js/plugin-docs 0.1.0-build.161 → 0.1.0-build.166
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/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +11 -11
- package/src/presets/uniform/index.ts +6 -2
package/dist/index.js
CHANGED
|
@@ -3978,6 +3978,7 @@ async function composeFileMap(basePath, matchRoute) {
|
|
|
3978
3978
|
}
|
|
3979
3979
|
function mergeSidebarsInPlace(sidebars) {
|
|
3980
3980
|
const mergedMap = /* @__PURE__ */ new Map();
|
|
3981
|
+
const nonRouteSidebars = [];
|
|
3981
3982
|
for (const sidebar of sidebars) {
|
|
3982
3983
|
if ("route" in sidebar) {
|
|
3983
3984
|
const existing = mergedMap.get(sidebar.route);
|
|
@@ -3990,11 +3991,13 @@ function mergeSidebarsInPlace(sidebars) {
|
|
|
3990
3991
|
} else {
|
|
3991
3992
|
mergedMap.set(sidebar.route, sidebar);
|
|
3992
3993
|
}
|
|
3994
|
+
} else {
|
|
3995
|
+
nonRouteSidebars.push(sidebar);
|
|
3993
3996
|
}
|
|
3994
3997
|
}
|
|
3995
3998
|
const mergedArray = Array.from(mergedMap.values());
|
|
3996
3999
|
sidebars.length = 0;
|
|
3997
|
-
sidebars.push(...mergedArray);
|
|
4000
|
+
sidebars.push(...nonRouteSidebars, ...mergedArray);
|
|
3998
4001
|
}
|
|
3999
4002
|
function preinstall2(id, uniformApiResolver, apiFile, uniformType, disableFSWrite, options2) {
|
|
4000
4003
|
return function preinstallInner(innerOptions) {
|