dogsbay 0.2.0-beta.69 → 0.2.0-beta.71
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.
|
@@ -258,6 +258,13 @@ function convertFragmentAdocs(sourceRoot, outputContentDir, scopedRootDirs, page
|
|
|
258
258
|
}
|
|
259
259
|
try {
|
|
260
260
|
const content = readFileSync(srcPath, "utf-8");
|
|
261
|
+
// Docroot-relative slug — used by the engine to resolve cross-doc
|
|
262
|
+
// xref hrefs to root-relative (Antora-style). Strip `.adoc` + use
|
|
263
|
+
// forward slashes so the resolver doesn't trip on Windows paths.
|
|
264
|
+
// See plans/xref-absolute-hrefs.md.
|
|
265
|
+
const sourcePath = relative(sourceRoot, srcPath)
|
|
266
|
+
.replace(/\.adoc$/i, "")
|
|
267
|
+
.replace(/\\/g, "/");
|
|
261
268
|
// Same Dogsbay house defaults as the topic-page path
|
|
262
269
|
// (format-asciidoc parse.ts): 'pandoc' dlists + 'docusaurus'
|
|
263
270
|
// admonitions — the shapes Dogsbay's renderer renders natively.
|
|
@@ -266,6 +273,7 @@ function convertFragmentAdocs(sourceRoot, outputContentDir, scopedRootDirs, page
|
|
|
266
273
|
basePath: srcPath,
|
|
267
274
|
dlistFormat: "pandoc",
|
|
268
275
|
admonitionFormat: "docusaurus",
|
|
276
|
+
sourcePath,
|
|
269
277
|
// Emit block roles ([role="_abstract"], [.lead], etc.) as
|
|
270
278
|
// markdown-it-attrs classes. Safe here because the migrate output
|
|
271
279
|
// is dogsbay-md, parsed downstream WITH markdown-it-attrs (the class
|
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.71",
|
|
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": {
|
|
@@ -33,18 +33,18 @@
|
|
|
33
33
|
"picocolors": "^1.1.0",
|
|
34
34
|
"prompts": "^2.4.2",
|
|
35
35
|
"yaml": "^2.8.3",
|
|
36
|
-
"@dogsbay/autodoc-python": "0.2.0-beta.
|
|
37
|
-
"@dogsbay/format-astro": "0.2.0-beta.
|
|
38
|
-
"@dogsbay/format-
|
|
39
|
-
"@dogsbay/format-
|
|
40
|
-
"@dogsbay/format-
|
|
41
|
-
"@dogsbay/format-
|
|
42
|
-
"@dogsbay/format-dogsbay-md": "0.2.0-beta.
|
|
43
|
-
"@dogsbay/format-openapi": "0.2.0-beta.
|
|
44
|
-
"@dogsbay/adoc2md-modular": "0.2.0-beta.
|
|
45
|
-
"@dogsbay/format-asciidoc": "0.2.0-beta.
|
|
46
|
-
"@dogsbay/minja": "0.2.0-beta.
|
|
47
|
-
"@dogsbay/types": "0.2.0-beta.
|
|
36
|
+
"@dogsbay/autodoc-python": "0.2.0-beta.71",
|
|
37
|
+
"@dogsbay/format-astro": "0.2.0-beta.71",
|
|
38
|
+
"@dogsbay/format-mkdocs": "0.2.0-beta.71",
|
|
39
|
+
"@dogsbay/format-mdx": "0.2.0-beta.71",
|
|
40
|
+
"@dogsbay/format-starlight": "0.2.0-beta.71",
|
|
41
|
+
"@dogsbay/format-obsidian": "0.2.0-beta.71",
|
|
42
|
+
"@dogsbay/format-dogsbay-md": "0.2.0-beta.71",
|
|
43
|
+
"@dogsbay/format-openapi": "0.2.0-beta.71",
|
|
44
|
+
"@dogsbay/adoc2md-modular": "0.2.0-beta.71",
|
|
45
|
+
"@dogsbay/format-asciidoc": "0.2.0-beta.71",
|
|
46
|
+
"@dogsbay/minja": "0.2.0-beta.71",
|
|
47
|
+
"@dogsbay/types": "0.2.0-beta.71"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/markdown-it": "^14.1.0",
|