Skip to content
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

Conversation

gregberge
Copy link
Contributor

@gregberge gregberge commented Jan 22, 2025

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:

  • Remove useless attributes
  • Use a more precise lastmod (ISO format is supported)

Example

Copy link

linear bot commented Jan 22, 2025

Copy link

changeset-bot bot commented Jan 22, 2025

🦋 Changeset detected

Latest commit: 2c333d4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
gitbook Patch

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

@gregberge gregberge force-pushed the greg/rnd-5955-improve-sitemapxml-generation-for-variantssections branch from cfb0c65 to 403f21b Compare January 22, 2025 13:04
@gregberge gregberge requested a review from SamyPesse January 22, 2025 13:05
Copy link
Contributor

github-actions bot commented Jan 22, 2025

GitBook Preview
Latest commit: https://0c98c552.gitbook-open.pages.dev
PR: https://pr2767.gitbook-open.pages.dev

Copy link

argos-ci bot commented Jan 22, 2025

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) 👍 Changes approved 1 changed Jan 22, 2025, 3:49 PM

@gregberge gregberge force-pushed the greg/rnd-5955-improve-sitemapxml-generation-for-variantssections branch from 403f21b to d553914 Compare January 22, 2025 14:49
@gregberge gregberge force-pushed the greg/rnd-5955-improve-sitemapxml-generation-for-variantssections branch from d553914 to f80665c Compare January 22, 2025 14:51
@gregberge gregberge force-pushed the greg/rnd-5955-improve-sitemapxml-generation-for-variantssections branch 2 times, most recently from bf92a33 to c574d0f Compare January 22, 2025 15:33
Also refactor a bunch of the code to prepare other usages.
@gregberge gregberge force-pushed the greg/rnd-5955-improve-sitemapxml-generation-for-variantssections branch from c574d0f to 2c333d4 Compare January 22, 2025 15:41
@gregberge gregberge merged commit d3e573c into main Jan 22, 2025
9 checks passed
@gregberge gregberge deleted the greg/rnd-5955-improve-sitemapxml-generation-for-variantssections branch January 22, 2025 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants