From 40aa1d504a18b6f0840d5a44c4743bd55b3d1215 Mon Sep 17 00:00:00 2001 From: Ruthenic Date: Thu, 11 Aug 2022 08:16:25 -0400 Subject: [PATCH] add sitemap ig --- astro.config.mjs | 11 ++++++----- package.json | 1 + pnpm-lock.yaml | 47 ++++++++++++++++++++++++++++++++++++++++++----- 3 files changed, 49 insertions(+), 10 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 0fc21c8..c6dfbce 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,14 +1,15 @@ // Full Astro Configuration API Documentation: // https://docs.astro.build/reference/configuration-reference - // @type-check enabled! // VSCode and other TypeScript-enabled text editors will provide auto-completion, // helpful tooltips, and warnings if your exported object is invalid. // You can disable this by removing "@ts-check" and `@type` comments below. +import { defineConfig } from 'astro/config'; // @ts-check -import { defineConfig } from 'astro/config' +import sitemap from "@astrojs/sitemap"; -// @ts-check +// https://astro.build/config export default defineConfig({ - site: "https://www.ruthenic.com" -}); + site: "https://www.ruthenic.com", + integrations: [sitemap()] +}); \ No newline at end of file diff --git a/package.json b/package.json index ed7e3de..9f099c3 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "preview": "astro preview" }, "devDependencies": { + "@astrojs/sitemap": "^1.0.0", "astro": "^1.0.0-beta.31" }, "dependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 43be8f0..b9811d6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,14 +1,15 @@ lockfileVersion: 5.4 specifiers: - '@astrojs/deno': ^0.1.10 + '@astrojs/deno': ^0.1.2 '@astrojs/renderer-preact': ^0.5.0 '@astrojs/renderer-react': ^0.5.0 '@astrojs/renderer-svelte': ^0.5.2 '@astrojs/renderer-vue': ^0.4.0 - '@astrojs/rss': ^0.2.2 - astro: ^1.0.2 - vite: ^2.9.14 + '@astrojs/rss': ^0.2.0 + '@astrojs/sitemap': ^1.0.0 + astro: ^1.0.0-beta.31 + vite: ^2.9.9 dependencies: '@astrojs/deno': 0.1.10 @@ -20,6 +21,7 @@ dependencies: vite: 2.9.14 devDependencies: + '@astrojs/sitemap': 1.0.0 astro: 1.0.2 packages: @@ -169,6 +171,13 @@ packages: fast-xml-parser: 4.0.9 dev: false + /@astrojs/sitemap/1.0.0: + resolution: {integrity: sha512-42GxuF5FP7RaKXZrwGLBLOX3hPv+Wl7ExJC43O0J5e34ojJkLeKf7QfwN1UwrJlqH0Ywi0Fm4/xGe482G09+wg==} + dependencies: + sitemap: 7.1.1 + zod: 3.18.0 + dev: true + /@astrojs/telemetry/1.0.0: resolution: {integrity: sha512-a8edSHK2CpWrGubLp2RR2D/uC9Paa614hQM/lS4In2lhmcCjaQA9ZyYT6l44peuDwUNt1V82DqXk3TFiDBWM8g==} engines: {node: ^14.18.0 || >=16.12.0} @@ -631,9 +640,12 @@ packages: '@types/unist': 2.0.6 dev: true + /@types/node/17.0.45: + resolution: {integrity: sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==} + dev: true + /@types/node/18.7.1: resolution: {integrity: sha512-GKX1Qnqxo4S+Z/+Z8KKPLpH282LD7jLHWJcVryOflnsnH+BtSDfieR6ObwBMwpnNws0bUK8GI7z0unQf9bARNQ==} - dev: false /@types/parse5/6.0.3: resolution: {integrity: sha512-SuT16Q1K51EAVPz1K29DJ/sXjhSQ0zjvsypYJ6tlwVsRV9jwW5Adq2ch8Dq8kDBCkYnELS7N7VNCSB5nC56t/g==} @@ -653,6 +665,12 @@ packages: '@types/node': 18.7.1 dev: false + /@types/sax/1.2.4: + resolution: {integrity: sha512-pSAff4IAxJjfAXUG6tFkO7dsSbTmf8CtUpfhhZ5VhkRpC4628tJhh3+V6H1E+/Gs9piSzYKT5yzHO5M4GG9jkw==} + dependencies: + '@types/node': 18.7.1 + dev: true + /@types/unist/2.0.6: resolution: {integrity: sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ==} dev: true @@ -811,6 +829,10 @@ packages: engines: {node: '>=12'} dev: true + /arg/5.0.2: + resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==} + dev: true + /argparse/1.0.10: resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} dependencies: @@ -2919,6 +2941,10 @@ packages: rimraf: 2.7.1 dev: false + /sax/1.2.4: + resolution: {integrity: sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==} + dev: true + /scheduler/0.20.2: resolution: {integrity: sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==} dependencies: @@ -2984,6 +3010,17 @@ packages: resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==} dev: true + /sitemap/7.1.1: + resolution: {integrity: sha512-mK3aFtjz4VdJN0igpIJrinf3EO8U8mxOPsTBzSsy06UtjZQJ3YY3o3Xa7zSc5nMqcMrRwlChHZ18Kxg0caiPBg==} + engines: {node: '>=12.0.0', npm: '>=5.6.0'} + hasBin: true + dependencies: + '@types/node': 17.0.45 + '@types/sax': 1.2.4 + arg: 5.0.2 + sax: 1.2.4 + dev: true + /slash/4.0.0: resolution: {integrity: sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==} engines: {node: '>=12'}