Skip to content

Commit 3ca3660

Browse files
committed
feat: add sitemap.xml and robots.txt for SEO
- Add @nuxtjs/sitemap module (auto-generates from all routes) - Add robots.txt with sitemap reference - site.url already configured, sitemap picks it up automatically Closes #11
1 parent 9ceebf7 commit 3ca3660

4 files changed

Lines changed: 101 additions & 1 deletion

File tree

nuxt.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export default defineNuxtConfig({
22
extends: ['docus'],
3+
modules: ['@nuxtjs/sitemap'],
34
compatibilityDate: '2025-07-15',
45
app: {
56
head: {

package-lock.json

Lines changed: 95 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"start": "node .output/server/index.mjs"
1010
},
1111
"dependencies": {
12+
"@nuxtjs/sitemap": "^7.6.0",
1213
"beautiful-mermaid": "^0.1.3",
1314
"better-sqlite3": "^12.5.0",
1415
"docus": "latest",

public/robots.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
User-agent: *
2+
Allow: /
3+
4+
Sitemap: https://docs.basicmemory.com/sitemap.xml

0 commit comments

Comments
 (0)