undocs 0.2.6 → 0.2.7

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.
@@ -20,7 +20,6 @@ export default defineNuxtConfig({
20
20
  '@nuxtjs/seo',
21
21
  isProd && '@nuxtjs/plausible',
22
22
  '@nuxt/ui',
23
- 'nuxt-build-cache',
24
23
  ],
25
24
  ui: {
26
25
  icons: [],
package/cli/setup.mjs CHANGED
@@ -37,6 +37,7 @@ export async function setupDocs(docsDir, opts = {}) {
37
37
  build: {
38
38
  transpile: [appDir],
39
39
  },
40
+ modules: [docsconfig.buildCache ? 'nuxt-build-cache' : undefined].filter(Boolean),
40
41
  // @ts-ignore
41
42
  docs: docsconfig,
42
43
  // @ts-ignore
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "undocs",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "repository": "unjs/undocs",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -38,7 +38,7 @@
38
38
  "@nuxtjs/plausible": "^0.2.4",
39
39
  "@nuxtjs/seo": "^2.0.0-rc.8",
40
40
  "@nuxtjs/tailwindcss": "^6.11.3",
41
- "automd": "^0.3.2",
41
+ "automd": "^0.3.4",
42
42
  "c12": "^1.7.0",
43
43
  "citty": "^0.1.5",
44
44
  "consola": "^3.2.3",
@@ -8,6 +8,7 @@ export interface DocsConfig {
8
8
  themeColor?: string
9
9
  redirects?: Record<string, string>
10
10
  automd?: any
11
+ buildCache?: boolean
11
12
  landing?:
12
13
  | false
13
14
  | {
@@ -38,6 +38,10 @@
38
38
  "type": "boolean",
39
39
  "description": "Enable integration with https://automd.unjs.io"
40
40
  },
41
+ "buildCache": {
42
+ "type": "boolean",
43
+ "description": "Enable build cache (experimental)"
44
+ },
41
45
  "redirects": {
42
46
  "description": "Redirects for the documentation site.",
43
47
  "type": "object",