Skip to content

Commit 70e6439

Browse files
Sitemap generation
1 parent 461986d commit 70e6439

File tree

5 files changed

+103
-2
lines changed

5 files changed

+103
-2
lines changed

docs-v2/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@ yarn-error.log*
3232
# typescript
3333
*.tsbuildinfo
3434
next-env.d.ts
35+
36+
# sitemap
37+
/public/sitemap*.xml
38+
/public/robots.txt

docs-v2/next-sitemap.config.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/** @type {import('next-sitemap').IConfig} */
2+
module.exports = {
3+
siteUrl: "https://pipedream.com",
4+
generateRobotsTxt: true,
5+
basePath: "/docs",
6+
outDir: "public",
7+
changefreq: "daily",
8+
priority: 0.7,
9+
exclude: [
10+
"/hidden/*",
11+
"/deprecated/*",
12+
],
13+
robotsTxtOptions: {
14+
policies: [
15+
{
16+
userAgent: "*",
17+
allow: "/",
18+
},
19+
],
20+
},
21+
};

docs-v2/package-lock.json

Lines changed: 49 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs-v2/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"dev": "next dev",
88
"build": "next build",
9+
"postbuild": "next-sitemap",
910
"start": "next start"
1011
},
1112
"packageManager": "[email protected]",
@@ -33,6 +34,7 @@
3334
"devDependencies": {
3435
"@types/node": "18.11.10",
3536
"autoprefixer": "^10.4.19",
37+
"next-sitemap": "^4.2.3",
3638
"postcss": "^8.4.40",
3739
"prettier": "^3.3.3",
3840
"tailwindcss": "^3.4.7",

docs-v2/yarn.lock

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,11 @@
471471
resolved "https://registry.npmjs.org/@chevrotain/utils/-/utils-11.0.3.tgz"
472472
integrity sha512-YslZMgtJUyuMbZ+aKvfF3x1f5liK4mWNxghFRv7jqRR9C3R3fAOGTTKvxXDa2Y1s9zSbcpuO0cAxDYsc9SrXoQ==
473473

474+
"@corex/deepmerge@^4.0.43":
475+
version "4.0.43"
476+
resolved "https://registry.npmjs.org/@corex/deepmerge/-/deepmerge-4.0.43.tgz"
477+
integrity sha512-N8uEMrMPL0cu/bdboEWpQYb/0i2K5Qn8eCsxzOmxSggJbbQte7ljMRoXm917AbntqTGOzdTu+vP3KOOzoC70HQ==
478+
474479
"@docsearch/[email protected]":
475480
version "3.8.1"
476481
resolved "https://registry.npmjs.org/@docsearch/css/-/css-3.8.1.tgz"
@@ -891,6 +896,11 @@
891896
"@napi-rs/simple-git-win32-arm64-msvc" "0.1.19"
892897
"@napi-rs/simple-git-win32-x64-msvc" "0.1.19"
893898

899+
"@next/env@^13.4.3":
900+
version "13.5.11"
901+
resolved "https://registry.npmjs.org/@next/env/-/env-13.5.11.tgz"
902+
integrity sha512-fbb2C7HChgM7CemdCY+y3N1n8pcTKdqtQLbC7/EQtPdLvlMUT9JX/dBYl8MMZAtYG4uVMyPFHXckb68q/NRwqg==
903+
894904
895905
version "14.2.26"
896906
resolved "https://registry.npmjs.org/@next/env/-/env-14.2.26.tgz"
@@ -2677,7 +2687,7 @@ extend@^3.0.0:
26772687
resolved "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz"
26782688
integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==
26792689

2680-
fast-glob@^3.3.2:
2690+
fast-glob@^3.2.12, fast-glob@^3.3.2:
26812691
version "3.3.3"
26822692
resolved "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz"
26832693
integrity sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==
@@ -4604,6 +4614,11 @@ minimatch@^9.0.4:
46044614
dependencies:
46054615
brace-expansion "^2.0.1"
46064616

4617+
minimist@^1.2.8:
4618+
version "1.2.8"
4619+
resolved "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz"
4620+
integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==
4621+
46074622
"minipass@^5.0.0 || ^6.0.2 || ^7.0.0", minipass@^7.1.2:
46084623
version "7.1.2"
46094624
resolved "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz"
@@ -4653,12 +4668,22 @@ negotiator@^1.0.0:
46534668
resolved "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz"
46544669
integrity sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==
46554670

4671+
next-sitemap@^4.2.3:
4672+
version "4.2.3"
4673+
resolved "https://registry.npmjs.org/next-sitemap/-/next-sitemap-4.2.3.tgz"
4674+
integrity sha512-vjdCxeDuWDzldhCnyFCQipw5bfpl4HmZA7uoo3GAaYGjGgfL4Cxb1CiztPuWGmS+auYs7/8OekRS8C2cjdAsjQ==
4675+
dependencies:
4676+
"@corex/deepmerge" "^4.0.43"
4677+
"@next/env" "^13.4.3"
4678+
fast-glob "^3.2.12"
4679+
minimist "^1.2.8"
4680+
46564681
next-themes@^0.4.0:
46574682
version "0.4.6"
46584683
resolved "https://registry.npmjs.org/next-themes/-/next-themes-0.4.6.tgz"
46594684
integrity sha512-pZvgD5L0IEvX5/9GWyHMf3m8BKiVQwsCMHfoFosXtXBMnaS0ZnIJ9ST4b4NqLVKDEm8QBxoNNGNaBv2JNF6XNA==
46604685

4661-
next@^14.2.5, "next@>= 13", next@>=13:
4686+
next@*, next@^14.2.5, "next@>= 13", next@>=13:
46624687
version "14.2.26"
46634688
resolved "https://registry.npmjs.org/next/-/next-14.2.26.tgz"
46644689
integrity sha512-b81XSLihMwCfwiUVRRja3LphLo4uBBMZEzBBWMaISbKTwOmq3wPknIETy/8000tr7Gq4WmbuFYPS7jOYIf+ZJw==

0 commit comments

Comments
 (0)