Skip to content

Commit 253a91a

Browse files
committed
feat: migrate to mdx
1 parent 153e87e commit 253a91a

110 files changed

Lines changed: 3646 additions & 3214 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,9 @@ jobs:
3737

3838
- name: Run linter
3939
run: npm run lint
40+
41+
# TODO: Enable once links are fixed
42+
# - name: Run build
43+
# run: npm run build
44+
# env:
45+
# CHECK_LINKS: true

.prettierrc.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ export default {
77
options: {
88
parser: "astro",
99
},
10-
},
10+
}
1111
],
1212
};

astro.config.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import cloudflare from "@astrojs/cloudflare";
2-
import markdoc from "@astrojs/markdoc";
32
import react from "@astrojs/react";
43
import starlight from "@astrojs/starlight";
54
import starlightLinksValidator from "starlight-links-validator";
@@ -155,10 +154,20 @@ export default defineConfig({
155154
},
156155

157156
integrations: [
158-
markdoc({ allowHTML: true }),
159157
react(),
160158
starlight({
161-
plugins: [starlightLinksValidator(), starlightLlmsTxt()],
159+
plugins: [
160+
...(process.env.CHECK_LINKS || false
161+
? [
162+
starlightLinksValidator({
163+
components: [["Anchor", "url"]],
164+
exclude: ["/api/**", "/contact"],
165+
errorOnInvalidHashes: false,
166+
}),
167+
]
168+
: []),
169+
starlightLlmsTxt(),
170+
],
162171
title: "SumUp Developer",
163172
favicon: "favicon.png",
164173
disable404Route: true,

markdoc.config.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

markdoc.config.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)