@takazudo/zudo-doc 5.17.1 → 5.17.2

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/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to `@takazudo/zudo-doc` are documented in this file.
4
4
 
5
5
  The format is based on Keep a Changelog, and release notes are generated from the changelog MDX pages.
6
6
 
7
+ ## [5.17.2] - 2026-09-05
8
+
9
+ ### Bug Fixes
10
+
11
+ - Include configured base paths in `robots.txt` sitemap URLs (`2c989e7`)
12
+
7
13
  ## [5.17.1] - 2026-09-04
8
14
 
9
15
  ### Bug Fixes
package/dist/robots.d.ts CHANGED
@@ -22,6 +22,8 @@ export interface RobotsSettings {
22
22
  noindex: boolean;
23
23
  /** Base URL of the site, used to construct the Sitemap line. */
24
24
  siteUrl?: string;
25
+ /** Site base path, matching Settings["base"], used to construct the Sitemap line. */
26
+ base?: string;
25
27
  /** When true (and siteUrl is set), append a Sitemap: line. */
26
28
  sitemap?: boolean;
27
29
  }
package/dist/robots.js CHANGED
@@ -5,8 +5,9 @@ Disallow: /
5
5
  `;
6
6
  }
7
7
  const siteUrlBase = (settings.siteUrl ?? "").replace(/\/$/, "");
8
+ const normalizedBase = (settings.base ?? "").replace(/\/+$/, "");
8
9
  const hasSitemapLine = siteUrlBase !== "" && settings.sitemap;
9
- const sitemapLine = hasSitemapLine ? `Sitemap: ${siteUrlBase}/sitemap.xml
10
+ const sitemapLine = hasSitemapLine ? `Sitemap: ${siteUrlBase}${normalizedBase}/sitemap.xml
10
11
  ` : "";
11
12
  return `User-agent: *
12
13
  Allow: /
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takazudo/zudo-doc",
3
- "version": "5.17.1",
3
+ "version": "5.17.2",
4
4
  "type": "module",
5
5
  "description": "zudo-doc framework primitives layer that sits on top of zfb's engine — sidebar, theme, TOC, breadcrumb, layouts, head injection, View Transitions, SSR-skip wrappers (per ADR-003).",
6
6
  "license": "MIT",
@@ -720,7 +720,7 @@
720
720
  "typescript": "^5.0.0",
721
721
  "vitest": "^4.1.0",
722
722
  "zod": "^4.3.6",
723
- "@takazudo/zudo-doc-history-server": "5.17.1"
723
+ "@takazudo/zudo-doc-history-server": "5.17.2"
724
724
  },
725
725
  "scripts": {
726
726
  "gen:search-widget-script": "node scripts/gen-search-widget-script.mjs",