From 9ed2bd7c3af7750998730cd2dec48b33d43c651c Mon Sep 17 00:00:00 2001 From: Alex Tim Date: Sun, 12 Jun 2022 15:52:38 +0300 Subject: [PATCH] feat: new sitemap --- .changeset/popular-cherries-float.md | 19 +++++++++++++++++++ package.json | 6 ------ pnpm-lock.yaml | 28 +--------------------------- 3 files changed, 20 insertions(+), 33 deletions(-) create mode 100644 .changeset/popular-cherries-float.md diff --git a/.changeset/popular-cherries-float.md b/.changeset/popular-cherries-float.md new file mode 100644 index 0000000000..4c04c4e5d9 --- /dev/null +++ b/.changeset/popular-cherries-float.md @@ -0,0 +1,19 @@ +--- +'@astrojs/sitemap': minor +--- + +# Key features + +- Split up your large sitemap into multiple sitemaps by custom limit. +- Ability to add sitemap specific attributes such as `lastmod` etc. +- Final output customization via JS function. +- Localization support. +- Automatically creates a link to sitemap in `` section of generated pages. +- Reliability: all config options are validated. + +## Important changes + +The integration always generates at least two files instead of one: + +- `sitemap-index.xml` - index file; +- `sitemap-{i}.xml` - actual sitemap. diff --git a/package.json b/package.json index 76339cd091..3be9d8e87c 100644 --- a/package.json +++ b/package.json @@ -12,12 +12,6 @@ "build": "turbo run build --no-deps --scope=astro --scope=create-astro --scope=\"@astrojs/*\"", "build:ci": "turbo run build:ci --no-deps --scope=astro --scope=create-astro --scope=\"@astrojs/*\"", "build:examples": "turbo run build --scope=\"@example/*\"", - "build:0": "turbo run build --no-deps --scope=@astrojs/sitemap", - "build:ex-a": "turbo run build --no-deps --scope=\"@example/sitemap-*\"", - "build:s": "turbo run build --scope=@example/starter", - "build:a": "turbo run build --scope=@example/sitemap-advanced", - "build:b": "turbo run build --scope=@example/sitemap-basic", - "build:i": "turbo run build --scope=@example/sitemap-i18n", "dev": "turbo run dev --no-deps --no-cache --parallel --scope=astro --scope=create-astro --scope=\"@astrojs/*\"", "format": "pnpm run format:code", "format:ci": "pnpm run format:imports && pnpm run format:code", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 998afaa6e2..c5c4fd6c80 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -246,7 +246,7 @@ importers: '@astrojs/lit': ^0.1.5 '@astrojs/partytown': ^0.1.4 '@astrojs/react': ^0.1.3 - '@astrojs/sitemap': workspace:* + '@astrojs/sitemap': ^0.1.2 '@astrojs/solid-js': 0.1.4 '@astrojs/tailwind': ^0.2.1 '@astrojs/turbolinks': ^0.1.3 @@ -303,30 +303,6 @@ importers: astro: link:../../packages/astro sass: 1.52.2 - examples/sitemap/advanced: - specifiers: - '@astrojs/sitemap': workspace:* - astro: workspace:* - devDependencies: - '@astrojs/sitemap': link:../../../packages/integrations/sitemap - astro: link:../../../packages/astro - - examples/sitemap/basic: - specifiers: - '@astrojs/sitemap': workspace:* - astro: workspace:* - devDependencies: - '@astrojs/sitemap': link:../../../packages/integrations/sitemap - astro: link:../../../packages/astro - - examples/sitemap/i18n: - specifiers: - '@astrojs/sitemap': workspace:* - astro: workspace:* - devDependencies: - '@astrojs/sitemap': link:../../../packages/integrations/sitemap - astro: link:../../../packages/astro - examples/ssr: specifiers: '@astrojs/node': ^0.1.2 @@ -350,10 +326,8 @@ importers: examples/starter: specifiers: - '@astrojs/markdown-remark': ^0.11.2 astro: ^1.0.0-beta.44 devDependencies: - '@astrojs/markdown-remark': link:../../packages/markdown/remark astro: link:../../packages/astro examples/subpath: