Skip to content

Commit d493347

Browse files
authored
docs: fix meta assets of user guide (#11639)
1 parent b0a1648 commit d493347

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed
75.8 KB
Binary file not shown.

www/apps/user-guide/app/icon.ico

101 KB
Binary file not shown.

www/apps/user-guide/app/sitemap.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { retrieveMdxPages } from "build-scripts"
2+
import type { MetadataRoute } from "next"
3+
import path from "path"
4+
import { config } from "../config"
5+
import { basePathUrl } from "../utils/base-path-url"
6+
7+
export default function sitemap(): MetadataRoute.Sitemap {
8+
return retrieveMdxPages({
9+
basePath: path.resolve("app"),
10+
}).map((filePath) => ({
11+
url: `${config.baseUrl}${basePathUrl(filePath)}`,
12+
}))
13+
}

0 commit comments

Comments
 (0)