-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate sitemap for all sections and spaces #2767
Generate sitemap for all sections and spaces #2767
Conversation
🦋 Changeset detectedLatest commit: 2c333d4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
cfb0c65
to
403f21b
Compare
packages/gitbook/src/app/middleware/(site)/(core)/~gitbook/sitemaps/[[...pathname]]/route.ts
Outdated
Show resolved
Hide resolved
GitBook Preview |
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
403f21b
to
d553914
Compare
d553914
to
f80665c
Compare
packages/gitbook/src/app/middleware/(site)/(core)/sitemap-pages.xml/route.ts
Outdated
Show resolved
Hide resolved
packages/gitbook/src/app/middleware/(site)/(core)/sitemap.xml/route.ts
Outdated
Show resolved
Hide resolved
packages/gitbook/src/app/middleware/(site)/(core)/sitemap.xml/route.ts
Outdated
Show resolved
Hide resolved
bf92a33
to
c574d0f
Compare
Also refactor a bunch of the code to prepare other usages.
c574d0f
to
2c333d4
Compare
Currently the sitemap does not include all site links. With this new approach we include all the links in the site by having a root site map and one site map per section and site space.
I also simplified the site space markup:
Example