@dogsbay/docs-layout 0.2.0-beta.13 → 0.2.0-beta.14
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/package.json +3 -3
- package/src/DocsLayout.astro +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dogsbay/docs-layout",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.14",
|
|
4
4
|
"description": "Standard documentation layout components for Dogsbay",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"./json-ld": "./src/json-ld.ts"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@dogsbay/ui": "0.2.0-beta.
|
|
33
|
-
"@dogsbay/primitives": "0.2.0-beta.
|
|
32
|
+
"@dogsbay/ui": "0.2.0-beta.14",
|
|
33
|
+
"@dogsbay/primitives": "0.2.0-beta.14"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"vitest": "^3.0.0"
|
package/src/DocsLayout.astro
CHANGED
|
@@ -446,6 +446,16 @@ const showLlmActionsInline =
|
|
|
446
446
|
llmActionsEnabled
|
|
447
447
|
&& (llmActionsPlacement === "inline" || llmActionsPlacement === "both");
|
|
448
448
|
const llmFooterLink = !!llmActions && llmActions.footerLink !== false;
|
|
449
|
+
// Per-mount llms.txt URL — Dogsbay emits `<basePath>/llms.txt`
|
|
450
|
+
// (sitemap-index pattern), so the footer link must be basePath-
|
|
451
|
+
// prefixed too. Falls back to `/llms.txt` when basePath is empty
|
|
452
|
+
// or unset, matching the platform's host-root single-site case.
|
|
453
|
+
const llmsLinkHrefResolved = (() => {
|
|
454
|
+
const bp = (basePath ?? "").replace(/\/+$/, "");
|
|
455
|
+
if (!bp) return "/llms.txt";
|
|
456
|
+
const prefix = bp.startsWith("/") ? bp : `/${bp}`;
|
|
457
|
+
return `${prefix}/llms.txt`;
|
|
458
|
+
})();
|
|
449
459
|
|
|
450
460
|
// Compute href targets for the type / status badges. A field is
|
|
451
461
|
// linkable only when (a) the user declared a `taxonomies.<field>`
|
|
@@ -834,6 +844,7 @@ const siteIcon = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
|
|
|
834
844
|
next={next}
|
|
835
845
|
copyright={copyright}
|
|
836
846
|
llmsLink={llmFooterLink}
|
|
847
|
+
llmsLinkHref={llmsLinkHrefResolved}
|
|
837
848
|
/>
|
|
838
849
|
</div>
|
|
839
850
|
</main>
|