diff --git a/astro.config.ts b/astro.config.ts index 4985eff8..7ab48319 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -3,16 +3,10 @@ import { defineConfig } from 'astro/config'; import rehypeMathjax from 'rehype-mathjax'; import remarkMath from 'remark-math'; import starlightLinksValidator from 'starlight-links-validator'; +import sitemap from '@astrojs/sitemap'; // https://astro.build/config export default defineConfig({ - vite: { - server: { - watch: { - usePolling: true, - }, - }, - }, site: 'https://wiki.tuhuratech.org.nz/', integrations: [ starlight({ @@ -32,6 +26,10 @@ export default defineConfig({ mastodon: 'https://mastodon.nzoss.nz/@tuhuratech', discord: 'https://discord.gg/PNxh7cwKfQ', github: 'https://github.com/Tuhura-Tech/Wiki', + instagram: 'https://www.instagram.com/tuhura_tech', + facebook: 'https://www.facebook.com/p/T%C5%ABhura-Tech-100083052084710/', + linkedin: 'https://www.linkedin.com/company/tuhuratech', + email: 'mailto:contact@tuhuratech.org.nz', }, customCss: [ // Relative path to your custom CSS file @@ -212,6 +210,7 @@ export default defineConfig({ MobileTableOfContents: './src/components/starlight/MobileTableOfContents.astro', }, }), + sitemap(), ], markdown: { remarkPlugins: [remarkMath], diff --git a/package.json b/package.json index c3b3c409..5151c406 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ }, "dependencies": { "@astrojs/cloudflare": "^12.0.0", + "@astrojs/sitemap": "^3.2.1", "@astrojs/starlight": "^0.29.0", "@astrojs/starlight-tailwind": "^2.0.1", "@astrojs/tailwind": "^5.1.0", @@ -23,19 +24,19 @@ "tailwindcss": "^3.4.0" }, "devDependencies": { + "@astrojs/check": "0.9.4", + "@typescript-eslint/eslint-plugin": "5.62.0", + "@typescript-eslint/parser": "5.62.0", + "eslint": "8.57.1", + "eslint-plugin-astro": "1.3.1", + "eslint-plugin-react": "7.37.2", "hast-util-from-html": "2.0.3", "hast-util-to-string": "3.0.1", "hastscript": "9.0.0", - "rehype": "13.0.2", - "unist-util-visit": "5.0.0", "prettier": "3.4.2", "prettier-plugin-astro": "0.14.1", - "eslint": "8.57.1", - "eslint-plugin-astro": "1.3.1", - "@astrojs/check": "0.9.4", - "@typescript-eslint/eslint-plugin": "5.62.0", - "@typescript-eslint/parser": "5.62.0", - "eslint-plugin-react": "7.37.2" + "rehype": "13.0.2", + "unist-util-visit": "5.0.0" }, "packageManager": "pnpm@9.15.0" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index dbf8724e..e4e53604 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,6 +11,9 @@ importers: '@astrojs/cloudflare': specifier: ^12.0.0 version: 12.0.1(@types/node@22.10.2)(astro@4.16.17(@types/node@22.10.2)(rollup@4.28.0)(typescript@5.5.4))(jiti@1.21.6)(yaml@2.6.1) + '@astrojs/sitemap': + specifier: ^3.2.1 + version: 3.2.1 '@astrojs/starlight': specifier: ^0.29.0 version: 0.29.3(astro@4.16.17(@types/node@22.10.2)(rollup@4.28.0)(typescript@5.5.4)) @@ -5261,7 +5264,7 @@ snapshots: '@types/sax@1.2.7': dependencies: - '@types/node': 17.0.45 + '@types/node': 22.10.2 '@types/semver@7.5.8': {}