dogsbay 0.2.0-beta.68 → 0.2.0-beta.69

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.
@@ -234,7 +234,14 @@ export async function siteBuild(cwd, options) {
234
234
  // "all". See plans/nav-scoped-processing.md.
235
235
  if (config.content.routablesFrom === "nav") {
236
236
  const before = pages.length;
237
- const { kept, dropped } = filterPagesToNav(pages, nav, config.site.basePath);
237
+ // Strip the COMBINED prefix (urlBase from site.url + basePath) from nav
238
+ // hrefs to recover slugs — nav hrefs were emitted with `hrefPrefix=combined`
239
+ // (see import-content.ts), so basePath alone leaves the urlBase glued to
240
+ // the front and the slug match drops every page. Schema rejects basePath
241
+ // + site.url-with-path together, so combined === basePath OR urlBase
242
+ // (never both) — preserves existing basePath behavior.
243
+ const stripPrefix = resolvePrefixes(config.site.url, config.site.basePath).combined;
244
+ const { kept, dropped } = filterPagesToNav(pages, nav, stripPrefix);
238
245
  if (dropped.length > 0) {
239
246
  pages = kept;
240
247
  console.log(` routablesFrom: nav — excluded ${dropped.length} non-nav page(s) of ${before}` +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dogsbay",
3
- "version": "0.2.0-beta.68",
3
+ "version": "0.2.0-beta.69",
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.68",
37
- "@dogsbay/format-mkdocs": "0.2.0-beta.68",
38
- "@dogsbay/format-astro": "0.2.0-beta.68",
39
- "@dogsbay/format-obsidian": "0.2.0-beta.68",
40
- "@dogsbay/format-starlight": "0.2.0-beta.68",
41
- "@dogsbay/format-mdx": "0.2.0-beta.68",
42
- "@dogsbay/format-dogsbay-md": "0.2.0-beta.68",
43
- "@dogsbay/format-openapi": "0.2.0-beta.68",
44
- "@dogsbay/format-asciidoc": "0.2.0-beta.68",
45
- "@dogsbay/adoc2md-modular": "0.2.0-beta.68",
46
- "@dogsbay/minja": "0.2.0-beta.68",
47
- "@dogsbay/types": "0.2.0-beta.68"
36
+ "@dogsbay/autodoc-python": "0.2.0-beta.69",
37
+ "@dogsbay/format-astro": "0.2.0-beta.69",
38
+ "@dogsbay/format-obsidian": "0.2.0-beta.69",
39
+ "@dogsbay/format-mkdocs": "0.2.0-beta.69",
40
+ "@dogsbay/format-mdx": "0.2.0-beta.69",
41
+ "@dogsbay/format-starlight": "0.2.0-beta.69",
42
+ "@dogsbay/format-dogsbay-md": "0.2.0-beta.69",
43
+ "@dogsbay/format-openapi": "0.2.0-beta.69",
44
+ "@dogsbay/adoc2md-modular": "0.2.0-beta.69",
45
+ "@dogsbay/format-asciidoc": "0.2.0-beta.69",
46
+ "@dogsbay/minja": "0.2.0-beta.69",
47
+ "@dogsbay/types": "0.2.0-beta.69"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/markdown-it": "^14.1.0",