@kirchdev/duxt 0.5.0 → 0.5.1-dev-main.48-5d5fca9
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/README.md +3 -3
- package/app/components/DuxtBrand.vue +1 -1
- package/app/components/DuxtBrunoEntries.vue +1 -1
- package/app/components/DuxtCopyPage.vue +1 -1
- package/app/components/DuxtLandingShowcase.vue +1 -1
- package/app/components/DuxtOpenApiCallbacks.vue +1 -1
- package/app/components/DuxtOpenApiClient.vue +1 -1
- package/app/components/DuxtOpenApiMedia.vue +1 -1
- package/app/components/DuxtOpenApiParameters.vue +1 -1
- package/app/components/DuxtOpenApiResponses.vue +1 -1
- package/app/components/DuxtOpenApiSchema.vue +1 -1
- package/app/components/DuxtOpenApiSecurity.vue +1 -1
- package/app/components/content/BrunoOverview.vue +4 -1
- package/app/components/content/BrunoRequest.vue +2 -2
- package/app/components/content/OpenApiOperation.vue +1 -1
- package/app/components/content/OpenApiOperations.vue +1 -1
- package/app/components/content/OpenApiOverview.vue +1 -1
- package/app/components/content/Partial.vue +1 -1
- package/app/components/content/ProseImg.vue +1 -1
- package/app/composables/useDuxtCollection.ts +1 -1
- package/app/composables/useDuxtNavigation.ts +1 -1
- package/app/composables/useDuxtSearch.ts +1 -1
- package/app/types/duxt.d.ts +17 -0
- package/app/utils/duxt-config.ts +5 -5
- package/app/utils/openapi.ts +1 -1
- package/app/utils/search-scope.ts +1 -1
- package/app/utils/version-choices.ts +8 -5
- package/app/utils/version-paths.ts +1 -1
- package/bin/duxt-cache-key.mjs +3 -2
- package/bin/duxt-og-cache.mjs +3 -1
- package/bin/duxt.mjs +2 -2
- package/{bruno-parse.ts → build/bruno/bruno-parse.ts} +1 -1
- package/{bruno-zip.ts → build/bruno/bruno-zip.ts} +1 -1
- package/{report.ts → build/cli/report.ts} +7 -7
- package/{validate-report.ts → build/cli/validate-report.ts} +3 -3
- package/{duxt-app-config.ts → build/config/duxt-app-config.ts} +5 -2
- package/{git-contributors.ts → build/git/git-contributors.ts} +64 -31
- package/{search-records.ts → build/search/search-records.ts} +3 -3
- package/{section-reports.ts → build/sections/section-reports.ts} +2 -2
- package/{sections-bruno.ts → build/sections/sections-bruno.ts} +4 -4
- package/{sections-changelog.ts → build/sections/sections-changelog.ts} +4 -4
- package/{sections-openapi.ts → build/sections/sections-openapi.ts} +3 -3
- package/{sections-resolve.ts → build/sections/sections-resolve.ts} +2 -2
- package/{sections.ts → build/sections/sections.ts} +4 -4
- package/{sources-cache.ts → build/sources/sources-cache.ts} +2 -2
- package/{sources-git.ts → build/sources/sources-git.ts} +46 -31
- package/{sources-resolve.ts → build/sources/sources-resolve.ts} +107 -17
- package/content.config.ts +4 -4
- package/modules/bruno.ts +12 -6
- package/modules/config.ts +9 -6
- package/modules/git-meta.ts +9 -6
- package/modules/redirects.ts +7 -4
- package/modules/search-records.ts +4 -4
- package/modules/validate.ts +9 -6
- package/nuxt.config.ts +1 -1
- package/package.json +22 -85
- package/server/devtools/content.ts +2 -2
- package/server/devtools/preview.ts +3 -3
- package/server/devtools/render/content.ts +2 -2
- package/server/devtools/render/sources.ts +4 -1
- package/server/devtools/sources.ts +1 -1
- package/server/mcp/tools/read-page.ts +1 -1
- package/server/middleware/raw-markdown.ts +2 -2
- package/server/routes/llms-full.txt.get.ts +1 -1
- package/server/utils/llms-pages.ts +1 -1
- package/server/utils/mcp-docs.ts +2 -2
- /package/{bruno-model.ts → build/bruno/bruno-model.ts} +0 -0
- /package/{cli.ts → build/cli/cli.ts} +0 -0
- /package/{content-cache.ts → build/content/content-cache.ts} +0 -0
- /package/{frontmatter.ts → build/content/frontmatter.ts} +0 -0
- /package/{highlight-langs.ts → build/content/highlight-langs.ts} +0 -0
- /package/{og-image-cache.ts → build/og-image/og-image-cache.ts} +0 -0
- /package/{openapi-model.ts → build/openapi/openapi-model.ts} +0 -0
- /package/{openapi-parse.ts → build/openapi/openapi-parse.ts} +0 -0
- /package/{section-input.ts → build/sections/section-input.ts} +0 -0
- /package/{section-markdown.ts → build/sections/section-markdown.ts} +0 -0
- /package/{repository-root.ts → build/sources/repository-root.ts} +0 -0
- /package/{sources.ts → build/sources/sources.ts} +0 -0
- /package/{tfplugindocs.ts → build/sources/tfplugindocs.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://www.schemastore.org/package.json",
|
|
3
3
|
"name": "@kirchdev/duxt",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.1-dev-main.48-5d5fca9",
|
|
5
5
|
"description": "duxt is a Nuxt layer: extend it and your docs/ folder becomes a site, with theme, search, API reference and llms.txt included. Point it at other repositories, or at tags of the same one, and each becomes a version.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"content-v3",
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
"author": "Titus Kirch <titus.kirch@kirch.dev>",
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
26
|
-
"url": "git+https://github.com/kirchDev/duxt.git"
|
|
26
|
+
"url": "git+https://github.com/kirchDev/duxt.git",
|
|
27
|
+
"directory": "packages/duxt"
|
|
27
28
|
},
|
|
28
29
|
"bin": {
|
|
29
30
|
"duxt": "./bin/duxt.mjs",
|
|
@@ -32,62 +33,35 @@
|
|
|
32
33
|
},
|
|
33
34
|
"files": [
|
|
34
35
|
"app",
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"bruno-zip.ts",
|
|
38
|
-
"cli.ts",
|
|
36
|
+
"bin",
|
|
37
|
+
"build",
|
|
39
38
|
"components.json",
|
|
40
|
-
"content-cache.ts",
|
|
41
39
|
"content.config.ts",
|
|
42
|
-
"duxt-app-config.ts",
|
|
43
|
-
"frontmatter.ts",
|
|
44
|
-
"git-contributors.ts",
|
|
45
|
-
"highlight-langs.ts",
|
|
46
40
|
"i18n",
|
|
47
41
|
"mdc.config.ts",
|
|
48
42
|
"modules",
|
|
49
43
|
"nuxt.config.ts",
|
|
50
|
-
"og-image-cache.ts",
|
|
51
|
-
"openapi-model.ts",
|
|
52
|
-
"openapi-parse.ts",
|
|
53
44
|
"public",
|
|
54
|
-
"
|
|
55
|
-
"repository-root.ts",
|
|
56
|
-
"search-records.ts",
|
|
57
|
-
"section-input.ts",
|
|
58
|
-
"section-markdown.ts",
|
|
59
|
-
"section-reports.ts",
|
|
60
|
-
"sections-bruno.ts",
|
|
61
|
-
"sections-changelog.ts",
|
|
62
|
-
"sections-openapi.ts",
|
|
63
|
-
"sections-resolve.ts",
|
|
64
|
-
"sections.ts",
|
|
65
|
-
"server",
|
|
66
|
-
"sources-cache.ts",
|
|
67
|
-
"sources-git.ts",
|
|
68
|
-
"sources-resolve.ts",
|
|
69
|
-
"sources.ts",
|
|
70
|
-
"tfplugindocs.ts",
|
|
71
|
-
"validate-report.ts"
|
|
45
|
+
"server"
|
|
72
46
|
],
|
|
73
47
|
"type": "module",
|
|
74
48
|
"main": "./nuxt.config.ts",
|
|
75
49
|
"exports": {
|
|
76
50
|
".": "./nuxt.config.ts",
|
|
77
|
-
"./bruno-model": "./bruno-model.ts",
|
|
78
|
-
"./bruno-parse": "./bruno-parse.ts",
|
|
79
|
-
"./og-image-cache": "./og-image-cache.ts",
|
|
80
|
-
"./openapi-model": "./openapi-model.ts",
|
|
81
|
-
"./openapi-parse": "./openapi-parse.ts",
|
|
82
|
-
"./search-records": "./search-records.ts",
|
|
83
|
-
"./sections": "./sections.ts",
|
|
84
|
-
"./sections-bruno": "./sections-bruno.ts",
|
|
85
|
-
"./sections-openapi": "./sections-openapi.ts",
|
|
86
|
-
"./sections-resolve": "./sections-resolve.ts",
|
|
87
|
-
"./sources": "./sources.ts",
|
|
88
|
-
"./sources-cache": "./sources-cache.ts",
|
|
89
|
-
"./sources-git": "./sources-git.ts",
|
|
90
|
-
"./sources-resolve": "./sources-resolve.ts"
|
|
51
|
+
"./bruno-model": "./build/bruno/bruno-model.ts",
|
|
52
|
+
"./bruno-parse": "./build/bruno/bruno-parse.ts",
|
|
53
|
+
"./og-image-cache": "./build/og-image/og-image-cache.ts",
|
|
54
|
+
"./openapi-model": "./build/openapi/openapi-model.ts",
|
|
55
|
+
"./openapi-parse": "./build/openapi/openapi-parse.ts",
|
|
56
|
+
"./search-records": "./build/search/search-records.ts",
|
|
57
|
+
"./sections": "./build/sections/sections.ts",
|
|
58
|
+
"./sections-bruno": "./build/sections/sections-bruno.ts",
|
|
59
|
+
"./sections-openapi": "./build/sections/sections-openapi.ts",
|
|
60
|
+
"./sections-resolve": "./build/sections/sections-resolve.ts",
|
|
61
|
+
"./sources": "./build/sources/sources.ts",
|
|
62
|
+
"./sources-cache": "./build/sources/sources-cache.ts",
|
|
63
|
+
"./sources-git": "./build/sources/sources-git.ts",
|
|
64
|
+
"./sources-resolve": "./build/sources/sources-resolve.ts"
|
|
91
65
|
},
|
|
92
66
|
"publishConfig": {
|
|
93
67
|
"access": "public"
|
|
@@ -135,20 +109,10 @@
|
|
|
135
109
|
"zod": "^4.5.4"
|
|
136
110
|
},
|
|
137
111
|
"devDependencies": {
|
|
138
|
-
"@commitlint/cli": "^21.2.2",
|
|
139
|
-
"@commitlint/config-conventional": "^21.2.2",
|
|
140
|
-
"@commitlint/types": "^21.2.0",
|
|
141
112
|
"@types/jsdom": "^30.0.0",
|
|
142
113
|
"@types/node": "^26.4.0",
|
|
143
|
-
"axe-core": "^4.13.0",
|
|
144
|
-
"husky": "^9.1.7",
|
|
145
114
|
"jsdom": "^30.0.1",
|
|
146
|
-
"lint-staged": "^17.4.1",
|
|
147
115
|
"nuxt": "^4.5.2",
|
|
148
|
-
"oxfmt": "0.65.0",
|
|
149
|
-
"oxlint": "1.80.0",
|
|
150
|
-
"playwright-core": "^1.63.0",
|
|
151
|
-
"taze": "^21.1.0",
|
|
152
116
|
"typescript": "^6.0.3",
|
|
153
117
|
"vitest": "^4.1.11"
|
|
154
118
|
},
|
|
@@ -159,35 +123,8 @@
|
|
|
159
123
|
"node": ">=24"
|
|
160
124
|
},
|
|
161
125
|
"scripts": {
|
|
162
|
-
"lint": "oxlint . --deny-warnings",
|
|
163
|
-
"lint:fix": "oxlint . --fix --deny-warnings",
|
|
164
|
-
"format": "oxfmt --check .",
|
|
165
|
-
"format:fix": "oxfmt .",
|
|
166
|
-
"typecheck": "tsc --noEmit",
|
|
167
|
-
"check": "pnpm lint && pnpm format && pnpm typecheck && pnpm typecheck:app && pnpm test && pnpm check:policy && pnpm check:previews && pnpm build:app && pnpm check:a11y && pnpm check:seo && pnpm check:images && pnpm check:keyboard && pnpm check:overflow",
|
|
168
|
-
"check:fix": "pnpm lint:fix && pnpm format:fix",
|
|
169
|
-
"previews": "node scripts/build-devtools-previews.ts",
|
|
170
126
|
"check:previews": "node scripts/check-previews.ts",
|
|
171
|
-
"
|
|
172
|
-
"
|
|
173
|
-
"taze": "taze",
|
|
174
|
-
"taze:w": "taze -w",
|
|
175
|
-
"typecheck:app": "pnpm --filter www typecheck",
|
|
176
|
-
"test": "vitest run",
|
|
177
|
-
"test:watch": "vitest",
|
|
178
|
-
"report": "pnpm --filter www exec duxt report",
|
|
179
|
-
"cache:key": "node ./bin/duxt-cache-key.mjs --root www",
|
|
180
|
-
"og:cache": "node ./bin/duxt-og-cache.mjs --root www",
|
|
181
|
-
"build:app": "pnpm --filter www build",
|
|
182
|
-
"build:www": "pnpm --filter www run build:cf",
|
|
183
|
-
"deploy:www": "pnpm --filter www run deploy",
|
|
184
|
-
"publish:www": "pnpm --filter www run publish:cf",
|
|
185
|
-
"check:a11y": "node scripts/check-a11y.ts",
|
|
186
|
-
"check:seo": "node scripts/check-seo.ts",
|
|
187
|
-
"check:images": "node scripts/check-images.ts",
|
|
188
|
-
"check:keyboard": "node scripts/check-keyboard.ts",
|
|
189
|
-
"check:overflow": "node scripts/check-overflow.ts",
|
|
190
|
-
"check:adapters": "node scripts/check-adapters.ts",
|
|
191
|
-
"check:routes": "node scripts/check-routes.ts"
|
|
127
|
+
"previews": "node scripts/build-devtools-previews.ts",
|
|
128
|
+
"test": "vitest run"
|
|
192
129
|
}
|
|
193
130
|
}
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
queryCollection,
|
|
4
4
|
queryCollectionSearchSections
|
|
5
5
|
} from '@nuxt/content/nitro';
|
|
6
|
-
import type { Collected, PageRecord } from '../../validate-report';
|
|
7
|
-
import { walk } from '../../validate-report';
|
|
6
|
+
import type { Collected, PageRecord } from '../../build/cli/validate-report';
|
|
7
|
+
import { walk } from '../../build/cli/validate-report';
|
|
8
8
|
import { context, resolvedSources } from './context';
|
|
9
9
|
import type { Doc, DocGroup, IndexedSection } from './render/content';
|
|
10
10
|
import { renderChecks, renderPages, renderSearch } from './render/content';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { DuxtSource } from '../../sources-resolve';
|
|
2
|
-
import { duxtManifest } from '../../sections-resolve';
|
|
3
|
-
import type { PageRecord } from '../../validate-report';
|
|
1
|
+
import type { DuxtSource } from '../../build/sources/sources-resolve';
|
|
2
|
+
import { duxtManifest } from '../../build/sections/sections-resolve';
|
|
3
|
+
import type { PageRecord } from '../../build/cli/validate-report';
|
|
4
4
|
import { page, PANELS } from './shell';
|
|
5
5
|
import type { Doc, DocGroup, IndexedSection } from './render/content';
|
|
6
6
|
import { renderChecks, renderPages, renderSearch } from './render/content';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PageRecord } from '../../../validate-report';
|
|
2
|
-
import { report } from '../../../validate-report';
|
|
1
|
+
import type { PageRecord } from '../../../build/cli/validate-report';
|
|
2
|
+
import { report } from '../../../build/cli/validate-report';
|
|
3
3
|
import {
|
|
4
4
|
code,
|
|
5
5
|
dim,
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
reservedSegments,
|
|
3
|
+
sourcesForRoute
|
|
4
|
+
} from '../../../build/sources/sources-resolve';
|
|
2
5
|
import { splitLocalePath } from '../../../app/utils/locale-path';
|
|
3
6
|
import { code, dim, escape, row, stat, stats, table, tag } from '../shell';
|
|
4
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { H3Event } from 'h3';
|
|
2
2
|
import { queryCollection } from '@nuxt/content/nitro';
|
|
3
3
|
import { splitLocalePath } from '../../app/utils/locale-path';
|
|
4
|
-
import { sourcesForRoute } from '../../sources-resolve';
|
|
4
|
+
import { sourcesForRoute } from '../../build/sources/sources-resolve';
|
|
5
5
|
import { context, resolvedSources } from './context';
|
|
6
6
|
import type { FoundPage } from './render/sources';
|
|
7
7
|
import { renderPaths, renderSources, renderVersions } from './render/sources';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { queryCollection } from '@nuxt/content/nitro';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { splitLocalePath } from '../../../app/utils/locale-path';
|
|
4
|
-
import { sourcesForRoute } from '../../../sources-resolve';
|
|
4
|
+
import { sourcesForRoute } from '../../../build/sources/sources-resolve';
|
|
5
5
|
import {
|
|
6
6
|
duxtAuthoredMarkdown,
|
|
7
7
|
duxtFrontmatter,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { queryCollection } from '@nuxt/content/nitro';
|
|
2
2
|
import { defineEventHandler, setHeader } from 'h3';
|
|
3
3
|
import { splitLocalePath } from '../../app/utils/locale-path';
|
|
4
|
-
import { sourcesForRoute } from '../../sources-resolve';
|
|
4
|
+
import { sourcesForRoute } from '../../build/sources/sources-resolve';
|
|
5
5
|
import { duxtDefaults, mergeDuxtConfig } from '../../app/utils/duxt-config';
|
|
6
|
-
import { stripFrontmatter } from '../../frontmatter';
|
|
6
|
+
import { stripFrontmatter } from '../../build/content/frontmatter';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* `…/guide/deploying.md` serves the page's Markdown source.
|
|
@@ -4,7 +4,7 @@ import { llmsPages } from '../utils/llms-pages';
|
|
|
4
4
|
// pages use, or the two descriptions drift apart.
|
|
5
5
|
import { duxtDefaults, mergeDuxtConfig } from '../../app/utils/duxt-config';
|
|
6
6
|
import { resolveServerTexts } from '../utils/duxt-server-text';
|
|
7
|
-
import { stripFrontmatter } from '../../frontmatter';
|
|
7
|
+
import { stripFrontmatter } from '../../build/content/frontmatter';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* llms-full.txt — the whole documentation as one Markdown file.
|
|
@@ -3,7 +3,7 @@ import type { H3Event } from 'h3';
|
|
|
3
3
|
import {
|
|
4
4
|
sourcesForRoute,
|
|
5
5
|
type DuxtResolvedSource
|
|
6
|
-
} from '../../sources-resolve';
|
|
6
|
+
} from '../../build/sources/sources-resolve';
|
|
7
7
|
import { duxtPageSearchable } from '../../app/utils/page-controls';
|
|
8
8
|
|
|
9
9
|
/** Enumerate public pages, selecting the same collection chain as HTML. */
|
package/server/utils/mcp-docs.ts
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
localeChain,
|
|
7
7
|
sourcesForRoute,
|
|
8
8
|
type DuxtResolvedSource
|
|
9
|
-
} from '../../sources-resolve';
|
|
10
|
-
import { stripFrontmatter } from '../../frontmatter';
|
|
9
|
+
} from '../../build/sources/sources-resolve';
|
|
10
|
+
import { stripFrontmatter } from '../../build/content/frontmatter';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* What the four MCP tools know about this site's documentation.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|