Skip to content

Commit 6204e02

Browse files
committed
sitemap
1 parent a8247d1 commit 6204e02

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55

66
:world_map: Build interactive web maps effortlessly with [MapLibre GL JS](https://maplibre.org/maplibre-gl-js/docs/) and [Svelte 5](https://svelte.dev/).
77

8+
:point_right: **Documentaion and Live Demos:** https://svelte-maplibre-gl.mierune.dev/examples/
9+
810
**Features:**
911

1012
- The most declarative and reactive MapLibre GL JS experience, powered by Svelte 5
1113
- A flexible, minimally opinionated API design that is suitable for both beginners and experienced MapLibre users
1214
- Freedom preserved — Traditional imperative MapLibre GL JS usage remains fully supported
1315

14-
:point_right: **Documentaion and Live Demos:** https://svelte-maplibre-gl.mierune.dev/examples/
15-
1616
License: MIT or Apache 2.0
1717

1818
<img alt="hero image" src="./src/lib/assets/hero.svg" width="100%">

src/routes/sitemap.xml/+server.ts

+5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,16 @@ export const GET: RequestHandler = async ({ request }) => {
77
const urls: string[] = [];
88
const origin = new URL(request.url).origin;
99

10+
urls.push(origin + '/');
11+
12+
urls.push(origin + '/examples/');
1013
for (const section of exampleToc) {
1114
for (const [path] of Object.entries(section.items)) {
1215
urls.push(origin + path);
1316
}
1417
}
18+
19+
urls.push(origin + '/docs/components/');
1520
for (const section of componentToc) {
1621
for (const [path] of Object.entries(section.items)) {
1722
urls.push(origin + path);

0 commit comments

Comments
 (0)