diff --git a/doc-kit.config.mjs b/doc-kit.config.mjs index 06272c1..a2cef17 100644 --- a/doc-kit.config.mjs +++ b/doc-kit.config.mjs @@ -9,12 +9,12 @@ export default { global: { output: 'out/learn', input: ['pages/**/*.md'], + baseURL: `https://${origin}/learn`, }, web: { // Important Configuration project: 'Node.js', title: '{project} Learn', - baseURL: `https://${origin}/learn`, pageURL: '{baseURL}{path}.html', editURL: 'https://github.com/nodejs/learn/edit/main/pages{path}.md', useAbsoluteURLs: true, @@ -26,4 +26,8 @@ export default { '#theme/Layout': join(import.meta.dirname, 'components/Layout/index.jsx'), }, }, + sitemap: { + indexURL: '{baseURL}', + pageURL: '{baseURL}{path}', + }, }; diff --git a/package.json b/package.json index e2ee3dc..e797f5e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "scripts": { - "build": "doc-kit generate -t web -t orama-db --config-file doc-kit.config.mjs", + "build": "doc-kit generate -t web -t orama-db -t sitemap --config-file doc-kit.config.mjs", "lint": "eslint .", "lint:fix": "eslint --fix .", "format": "prettier --write .",