mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-11-01 12:17:18 +00:00
fix crawling
This commit is contained in:
1 parent
e334419e24
commit
36c6c623de
8 files changed
+48
-23
No files matched your search
@@ -0,0 +1,6 @@
|
||||
import { languages } from '$lib/languages';
|
||||
import type { EntryGenerator } from './$types';
|
||||
|
||||
export const entries: EntryGenerator = () => {
|
||||
return Object.keys(languages).map((lang) => ({ language: lang == 'en' ? '' : lang }));
|
||||
};
|
||||
@@ -0,0 +1,22 @@
|
||||
import { languages } from '$lib/languages';
|
||||
import { guides } from '$lib/components/docs/docs';
|
||||
import type { EntryGenerator } from './$types';
|
||||
|
||||
export const entries: EntryGenerator = () => {
|
||||
let entries = [];
|
||||
for (let lang of Object.keys(languages)) {
|
||||
for (let guide of Object.keys(guides)) {
|
||||
entries.push({
|
||||
language: lang == 'en' ? '' : lang,
|
||||
guide,
|
||||
});
|
||||
for (let subguide of guides[guide]) {
|
||||
entries.push({
|
||||
language: lang == 'en' ? '' : lang,
|
||||
guide: `${guide}/${subguide}`,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
return entries;
|
||||
};
|
||||
Reference in new issue
Block a user