diff --git a/.gitignore b/.gitignore index 6240da8..71fead2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # build output dist/ +public/favicons/ # generated types .astro/ @@ -12,7 +13,6 @@ yarn-debug.log* yarn-error.log* pnpm-debug.log* - # environment variables .env .env.production diff --git a/astro.config.mjs b/astro.config.mjs index 862561d..7342cc1 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,6 +1,7 @@ import starlight from "@astrojs/starlight"; import { defineConfig } from "astro/config"; +import createFaviconsIntegration from "astro-favicons"; import robotsTxt from "astro-robots-txt"; // https://astro.build/config @@ -42,5 +43,11 @@ export default defineConfig({ ], }), robotsTxt(), + createFaviconsIntegration({ + appName: "BlueDragon Docs", + appShortName: "BlueDragon", + masterPicture: "./src/assets/logo.png", + path: "./favicons/", + }), ], }); diff --git a/package-lock.json b/package-lock.json index 87ec890..5e2d986 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,6 +11,7 @@ "@astrojs/check": "^0.3.4", "@astrojs/starlight": "^0.15.2", "astro": "^4.0.1", + "astro-favicons": "^2.0.2", "astro-robots-txt": "^1.0.0", "sharp": "^0.32.5", "typescript": "^5.3.3" @@ -2554,6 +2555,14 @@ "astro": "^3.3.0 || ^4.0.0-beta" } }, + "node_modules/astro-favicons": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/astro-favicons/-/astro-favicons-2.0.2.tgz", + "integrity": "sha512-6eysmlOzTl1NdgWeZ9dENyhzQP7ok182SIaXjxGWc2uDhGNVJ5Lkg0dMR5ClMCJHupSwbDT0T7L2zM67GHpJvg==", + "dependencies": { + "favicons-lib": "^7.1.6" + } + }, "node_modules/astro-robots-txt": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/astro-robots-txt/-/astro-robots-txt-1.0.0.tgz", @@ -3431,6 +3440,11 @@ "node": ">=6" } }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" + }, "node_modules/escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", @@ -3612,6 +3626,19 @@ "reusify": "^1.0.4" } }, + "node_modules/favicons-lib": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/favicons-lib/-/favicons-lib-7.1.6.tgz", + "integrity": "sha512-U+4zNl1sCJTiKJoK7z35Uaz0SwTVGSb28eJrkkUAMnHfixp1DT/Sqjt3spQrWkijzPlhOqOuvndmzz4SF7FDEA==", + "dependencies": { + "escape-html": "^1.0.3", + "sharp": "^0.32.4", + "xml2js": "^0.6.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, "node_modules/filename-reserved-regex": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/filename-reserved-regex/-/filename-reserved-regex-3.0.0.tgz", @@ -8492,6 +8519,26 @@ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" }, + "node_modules/xml2js": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.6.2.tgz", + "integrity": "sha512-T4rieHaC1EXcES0Kxxj4JWgaUQHDk+qwHcYOCFHfiwKz7tOVPLq7Hjq9dM1WCMhylqMEfP7hMcOIChvotiZegA==", + "dependencies": { + "sax": ">=0.6.0", + "xmlbuilder": "~11.0.0" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/xmlbuilder": { + "version": "11.0.1", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", + "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", + "engines": { + "node": ">=4.0" + } + }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", diff --git a/package.json b/package.json index f77c035..a1bf474 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "@astrojs/check": "^0.3.4", "@astrojs/starlight": "^0.15.2", "astro": "^4.0.1", + "astro-favicons": "^2.0.2", "astro-robots-txt": "^1.0.0", "sharp": "^0.32.5", "typescript": "^5.3.3" diff --git a/public/favicon.svg b/public/favicon.svg deleted file mode 100644 index cba5ac1..0000000 --- a/public/favicon.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/assets/houston.webp b/src/assets/houston.webp deleted file mode 100644 index 930c164..0000000 Binary files a/src/assets/houston.webp and /dev/null differ