From ee5f88439655a4e180f793f9a79d9e6d5b106e62 Mon Sep 17 00:00:00 2001 From: pyjun01 Date: Wed, 20 Dec 2023 01:40:05 +0900 Subject: [PATCH] docs: add robots integration --- docs/astro.config.mjs | 2 ++ docs/package-lock.json | 40 +++++++++++++++++++++++++++++++++++----- docs/package.json | 1 + 3 files changed, 38 insertions(+), 5 deletions(-) diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index e75973c..b617182 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -2,6 +2,7 @@ import react from '@astrojs/react'; import starlight from '@astrojs/starlight'; import tailwind from '@astrojs/tailwind'; import { defineConfig } from 'astro/config'; +import robotsTxt from 'astro-robots-txt'; // https://astro.build/config export default defineConfig({ @@ -332,6 +333,7 @@ export default defineConfig({ }), react(), tailwind(), + robotsTxt(), ], site: 'https://pyjun01.github.io', base: '/react-google-map-wrapper', diff --git a/docs/package-lock.json b/docs/package-lock.json index ece4811..c8cf1ba 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -15,6 +15,7 @@ "@types/react": "^18.2.42", "@types/react-dom": "^18.2.17", "astro": "^4.0.1", + "astro-robots-txt": "^1.0.0", "react": "^18.2.0", "react-dom": "^18.2.0", "react-google-map-wrapper": "^1.0.0", @@ -1720,6 +1721,15 @@ "astro": "^3.0.0-beta || ^4.0.0-beta" } }, + "node_modules/astro-robots-txt": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/astro-robots-txt/-/astro-robots-txt-1.0.0.tgz", + "integrity": "sha512-6JQSLid4gMhoWjOm85UHLkgrw0+hHIjnJVIUqxjU2D6feKlVyYukMNYjH44ZDZBK1P8hNxd33PgWlHzCASvedA==", + "dependencies": { + "valid-filename": "^4.0.0", + "zod": "^3.22.2" + } + }, "node_modules/autoprefixer": { "version": "10.4.16", "funding": [ @@ -2711,6 +2721,17 @@ "reusify": "^1.0.4" } }, + "node_modules/filename-reserved-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/filename-reserved-regex/-/filename-reserved-regex-3.0.0.tgz", + "integrity": "sha512-hn4cQfU6GOT/7cFHXBqeBg2TbrMBgdD0kcjLhvSQYYwm3s4B6cjvBfb7nBALJLAXqmU5xajSa7X2NnUud/VCdw==", + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/fill-range": { "version": "7.0.1", "license": "MIT", @@ -3500,11 +3521,6 @@ "resolved": "https://registry.npmjs.org/kdbush/-/kdbush-4.0.2.tgz", "integrity": "sha512-WbCVYJ27Sz8zi9Q7Q0xHC+05iwkm3Znipc2XTlrnJbsHMYktW4hPhXUE8Ys1engBrvffoSCqbil1JQAa7clRpA==" }, - "node_modules/kdbush": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/kdbush/-/kdbush-4.0.2.tgz", - "integrity": "sha512-WbCVYJ27Sz8zi9Q7Q0xHC+05iwkm3Znipc2XTlrnJbsHMYktW4hPhXUE8Ys1engBrvffoSCqbil1JQAa7clRpA==" - }, "node_modules/kind-of": { "version": "6.0.3", "license": "MIT", @@ -7233,6 +7249,20 @@ "version": "1.0.2", "license": "MIT" }, + "node_modules/valid-filename": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/valid-filename/-/valid-filename-4.0.0.tgz", + "integrity": "sha512-VEYTpTVPMgO799f2wI7zWf0x2C54bPX6NAfbZ2Z8kZn76p+3rEYCTYVYzMUcVSMvakxMQTriBf24s3+WeXJtEg==", + "dependencies": { + "filename-reserved-regex": "^3.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/vfile": { "version": "6.0.1", "license": "MIT", diff --git a/docs/package.json b/docs/package.json index 7ca1c14..59baf23 100644 --- a/docs/package.json +++ b/docs/package.json @@ -17,6 +17,7 @@ "@types/react": "^18.2.42", "@types/react-dom": "^18.2.17", "astro": "^4.0.1", + "astro-robots-txt": "^1.0.0", "react": "^18.2.0", "react-dom": "^18.2.0", "react-google-map-wrapper": "^1.0.0",