Skip to content

Commit

Permalink
Added sitemap generation to the docs website (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
iwoplaza authored Sep 9, 2024
1 parent 44a3d13 commit 5e0bfba
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/typegpu-docs/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// import starlightTypeDoc, { typeDocSidebarGroup } from 'starlight-typedoc';
import react from '@astrojs/react';
import sitemap from '@astrojs/sitemap';
import starlight from '@astrojs/starlight';
import tailwind from '@astrojs/tailwind';
import { defineConfig } from 'astro/config';
Expand Down Expand Up @@ -83,5 +84,6 @@ export default defineConfig({
}),
tailwind(),
react(),
sitemap(),
],
});
1 change: 1 addition & 0 deletions apps/typegpu-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"dependencies": {
"@astrojs/check": "^0.8.2",
"@astrojs/react": "^3.6.1",
"@astrojs/sitemap": "^3.1.6",
"@astrojs/starlight": "^0.25.2",
"@astrojs/tailwind": "^5.1.0",
"@babel/standalone": "^7.24.7",
Expand Down
1 change: 1 addition & 0 deletions apps/typegpu-docs/src/layouts/PageLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const { title } = Astro.props;
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="/typegpu/favicon.svg" />
<link rel="sitemap" href="/typegpu/sitemap-index.xml" />
<style is:global>
@font-face {
font-family: 'Aeonik';
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5e0bfba

Please sign in to comment.