docus 3.1.0-20250617-135133-677078f → 3.1.0-20250619-105902-65a477a
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/app/app/app.vue +3 -1
- package/dist/main.mjs +14 -1
- package/package.json +1 -1
package/app/app/app.vue
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
const { seo } = useAppConfig()
|
|
3
3
|
const site = useSiteConfig()
|
|
4
4
|
|
|
5
|
-
const { data: navigation } = await useAsyncData('navigation', () => queryCollectionNavigation('docs')
|
|
5
|
+
const { data: navigation } = await useAsyncData('navigation', () => queryCollectionNavigation('docs'), {
|
|
6
|
+
transform: data => data.find(item => item.path === '/docs')?.children || data || [],
|
|
7
|
+
})
|
|
6
8
|
const { data: files } = useLazyAsyncData('search', () => queryCollectionSearchSections('docs'), {
|
|
7
9
|
server: false,
|
|
8
10
|
})
|
package/dist/main.mjs
CHANGED
|
@@ -13,11 +13,24 @@ import { resolve } from "path";
|
|
|
13
13
|
var appDir = fileURLToPath(new URL("../app", import.meta.url));
|
|
14
14
|
var pkgDir = fileURLToPath(new URL("..", import.meta.url));
|
|
15
15
|
async function getNuxtConfig(dir, _opts = {}) {
|
|
16
|
+
const fixLayers = (_, nuxt) => {
|
|
17
|
+
const hasDocsDir = nuxt.options._layers.some((layer) => layer.cwd === dir);
|
|
18
|
+
if (!hasDocsDir) {
|
|
19
|
+
nuxt.options._layers.unshift({
|
|
20
|
+
cwd: dir,
|
|
21
|
+
config: {
|
|
22
|
+
rootDir: dir,
|
|
23
|
+
srcDir: dir
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
};
|
|
16
28
|
global.__DOCS_DIR__ = resolve(dir, "content");
|
|
17
29
|
return {
|
|
18
30
|
compatibilityDate: "2025-06-17",
|
|
19
31
|
extends: [appDir],
|
|
20
|
-
modulesDir: [resolve(pkgDir, "node_modules"), resolve(appDir, "node_modules")]
|
|
32
|
+
modulesDir: [resolve(pkgDir, "node_modules"), resolve(appDir, "node_modules")],
|
|
33
|
+
modules: [fixLayers]
|
|
21
34
|
};
|
|
22
35
|
}
|
|
23
36
|
|