dogsbay 0.2.0-beta.28 → 0.2.0-beta.29
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.
|
@@ -250,13 +250,18 @@ export async function siteBuild(cwd, options) {
|
|
|
250
250
|
labels: raw.labels,
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
|
-
//
|
|
254
|
-
//
|
|
255
|
-
//
|
|
253
|
+
// Filesystem layout uses dogsbay basePath; URL composition uses
|
|
254
|
+
// the combined prefix (urlBase + basePath) so chip / term hrefs
|
|
255
|
+
// resolve under subpath-mounted deploys. Passing combined as
|
|
256
|
+
// `basePath` previously pushed taxonomy route files into
|
|
257
|
+
// src/pages/<urlBase>/<basePath>/<indexPath>/, which then
|
|
258
|
+
// double-prefixed once Astro's `base` config applied at request
|
|
259
|
+
// time (same family as the section-llms.txt bug fixed in 47db909).
|
|
256
260
|
const taxoCombined = resolvePrefixes(config.site.url, config.site.basePath).combined;
|
|
257
261
|
const emitted = emitTaxonomyRoutes(pages, outputDir, taxonomyConfigs, {
|
|
258
262
|
section: config.content.section,
|
|
259
|
-
basePath:
|
|
263
|
+
basePath: config.site.basePath,
|
|
264
|
+
urlPrefix: taxoCombined,
|
|
260
265
|
});
|
|
261
266
|
if (emitted.length > 0) {
|
|
262
267
|
console.log(` Emitted taxonomy routes: ${emitted.join(", ")}`);
|
package/dist/config/load.js
CHANGED
|
@@ -321,6 +321,9 @@ function validateContent(content, sourcePath) {
|
|
|
321
321
|
`got ${JSON.stringify(v)}`);
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
|
+
if (c.diagrams !== undefined && typeof c.diagrams !== "boolean") {
|
|
325
|
+
throw new Error(`content.diagrams must be a boolean in ${sourcePath}; got ${JSON.stringify(c.diagrams)}`);
|
|
326
|
+
}
|
|
324
327
|
// versions[] declarations + defaultVersion. When versions[] is
|
|
325
328
|
// declared, every source's version (if set) must match one of
|
|
326
329
|
// the ids; defaultVersion (if set) must also match. Sources
|
|
@@ -383,6 +386,7 @@ function validateContent(content, sourcePath) {
|
|
|
383
386
|
sources: validatedSources,
|
|
384
387
|
section: c.section,
|
|
385
388
|
codeBlockTitle: c.codeBlockTitle,
|
|
389
|
+
diagrams: c.diagrams,
|
|
386
390
|
versions,
|
|
387
391
|
defaultVersion,
|
|
388
392
|
locales,
|
package/dist/import-content.js
CHANGED
|
@@ -383,6 +383,9 @@ function buildImportOptions(config, source) {
|
|
|
383
383
|
if (config.content.codeBlockTitle !== undefined) {
|
|
384
384
|
opts.codeBlockTitle = config.content.codeBlockTitle;
|
|
385
385
|
}
|
|
386
|
+
if (config.content.diagrams !== undefined) {
|
|
387
|
+
opts.diagrams = config.content.diagrams;
|
|
388
|
+
}
|
|
386
389
|
// MkDocs-specific
|
|
387
390
|
if (source.mkdocs?.partialsDir) {
|
|
388
391
|
opts.partialsDir = source.mkdocs.partialsDir;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dogsbay",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.29",
|
|
4
4
|
"description": "CLI for Dogsbay — scaffold, build, and serve documentation sites with markdown / MkDocs / Obsidian / OpenAPI sources",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"picocolors": "^1.1.0",
|
|
33
33
|
"prompts": "^2.4.2",
|
|
34
34
|
"yaml": "^2.8.3",
|
|
35
|
-
"@dogsbay/format-mkdocs": "0.2.0-beta.
|
|
36
|
-
"@dogsbay/format-
|
|
37
|
-
"@dogsbay/format-mdx": "0.2.0-beta.
|
|
38
|
-
"@dogsbay/format-
|
|
39
|
-
"@dogsbay/format-
|
|
40
|
-
"@dogsbay/format-openapi": "0.2.0-beta.
|
|
41
|
-
"@dogsbay/format-starlight": "0.2.0-beta.
|
|
42
|
-
"@dogsbay/types": "0.2.0-beta.
|
|
35
|
+
"@dogsbay/format-mkdocs": "0.2.0-beta.29",
|
|
36
|
+
"@dogsbay/format-astro": "0.2.0-beta.29",
|
|
37
|
+
"@dogsbay/format-mdx": "0.2.0-beta.29",
|
|
38
|
+
"@dogsbay/format-dogsbay-md": "0.2.0-beta.29",
|
|
39
|
+
"@dogsbay/format-obsidian": "0.2.0-beta.29",
|
|
40
|
+
"@dogsbay/format-openapi": "0.2.0-beta.29",
|
|
41
|
+
"@dogsbay/format-starlight": "0.2.0-beta.29",
|
|
42
|
+
"@dogsbay/types": "0.2.0-beta.29"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/node": "^22.0.0",
|