Skip to content

Commit

Permalink
Docs: Add sitemap for SEO
Browse files Browse the repository at this point in the history
  • Loading branch information
cabralpinto committed Aug 29, 2023
1 parent d28060b commit e1366b7
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import { defineConfig } from "astro/config";
import rehypeKatex from "rehype-katex";
Expand All @@ -7,7 +8,7 @@ import remarkLayout from "./src/plugins/remark-layout.mjs";

// https://astro.build/config
export default defineConfig({
integrations: [tailwind(), mdx()],
integrations: [tailwind(), mdx(), sitemap()],
markdown: {
remarkPlugins: [remarkMath, remarkLayout],
rehypePlugins: [rehypeKatex],
Expand Down
46 changes: 46 additions & 0 deletions docs/package-lock.json

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

3 changes: 2 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "",
"name": "modular-diffusion-docs",
"type": "module",
"version": "0.0.1",
"scripts": {
Expand All @@ -11,6 +11,7 @@
},
"dependencies": {
"@astrojs/mdx": "^0.19.7",
"@astrojs/sitemap": "^2.0.2",
"@astrojs/tailwind": "^4.0.0",
"@fontsource/roboto": "^5.0.8",
"astro": "^2.10.1",
Expand Down
4 changes: 4 additions & 0 deletions docs/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
User-agent: *
Allow: /

Sitemap: https://cabralpinto.github.io/sitemap-index.xml
1 change: 1 addition & 0 deletions docs/src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const {
integrity="sha384-MlJdn/WNKDGXveldHDdyRP1R4CTHr3FeuDNfhsLPYrq2t0UBkUdK2jyTnXPEK1NQ"
crossorigin="anonymous"
/>
<link rel="sitemap" href="/sitemap-index.xml" />
</head>
<body>
<div class="flex flex-col text-gray-800">
Expand Down

0 comments on commit e1366b7

Please sign in to comment.