Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/sitemap-absolute-urls.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@doc-kit/generator-react': patch
'@node-core/doc-kit': patch
---

fix(sitemap): emit fully resolved page URLs
1 change: 1 addition & 0 deletions packages/node/src/config/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,6 @@ export default {

sitemap: {
indexURL: '{baseURL}/latest/api/',
pageURL: '{baseURL}/latest/api{path}.html',
},
};
7 changes: 4 additions & 3 deletions packages/react/src/sitemap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ The `sitemap` generator creates a `sitemap.xml` file for search engine optimizat

- `output` {string} The directory where `sitemap.xml` will be written.
- `indexURL` {string} URL template for the API documentation index page.
**Default:** `'{baseURL}/latest/api/'`.
- `pageURL` {string} URL template for individual documentation pages.
**Default:** `'{indexURL}{path}.html'`.
**Default:** `'{baseURL}/'`.
- `pageURL` {string} URL template for individual documentation pages. `{path}`
is the page's extensionless path and starts with a slash
**Default:** `'{baseURL}{path}.html'`.
2 changes: 1 addition & 1 deletion packages/react/src/sitemap/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default {

defaultConfiguration: {
indexURL: '{baseURL}/',
pageURL: '{indexURL}{path}.html',
pageURL: '{baseURL}{path}.html',
},

generate,
Expand Down
Loading