Skip to content

Commit bf779eb

Browse files
committed
add sitemap
1 parent c6970d6 commit bf779eb

File tree

5 files changed

+228
-3
lines changed

5 files changed

+228
-3
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ coverage
2727
*.sln
2828
*.sw?
2929

30-
/public/tldr-pages.zip
30+
/public/tldr-pages.zip
31+
/public/pages-sitemap.xml

package-lock.json

+191
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22
"name": "tldr.inbrowser.app",
33
"version": "0.0.0",
44
"private": true,
5+
"type": "module",
56
"scripts": {
67
"dev": "vite",
7-
"build": "npm run download:tldr-pages && run-p type-check build-only",
8+
"build": "npm run download:tldr-pages && npm run build:sitemap && run-p type-check build-only",
89
"preview": "vite preview",
910
"test:unit": "vitest --environment jsdom --root src/",
1011
"build-only": "vite build",
1112
"type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
1213
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
13-
"download:tldr-pages": "wget -O public/tldr-pages.zip https://github.com/tldr-pages/tldr/archive/refs/heads/main.zip"
14+
"download:tldr-pages": "wget -O public/tldr-pages.zip https://github.com/tldr-pages/tldr/archive/refs/heads/main.zip",
15+
"build:sitemap": "node scripts/build-sitemap.js"
1416
},
1517
"dependencies": {
1618
"@zip.js/zip.js": "^2.6.61",
@@ -41,6 +43,7 @@
4143
"eslint": "^8.22.0",
4244
"eslint-plugin-vue": "^9.3.0",
4345
"jsdom": "^20.0.3",
46+
"jszip": "^3.10.1",
4447
"marked": "^4.2.5",
4548
"naive-ui": "^2.34.3",
4649
"npm-run-all": "^4.1.5",

public/robots.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
User-agent: *
22
Allow: /
3+
4+
Sitemap: https://tldr.inbrowser.app/pages-sitemap.xml

0 commit comments

Comments
 (0)