Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,9 @@ jobs:

- name: Run linter
run: npm run lint

# TODO: Enable once links are fixed
# - name: Run build
# run: npm run build
# env:
# CHECK_LINKS: true
2 changes: 1 addition & 1 deletion .prettierrc.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ export default {
options: {
parser: "astro",
},
},
}
],
};
15 changes: 12 additions & 3 deletions astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import cloudflare from "@astrojs/cloudflare";
import markdoc from "@astrojs/markdoc";
import react from "@astrojs/react";
import starlight from "@astrojs/starlight";
import starlightLinksValidator from "starlight-links-validator";
Expand Down Expand Up @@ -155,10 +154,20 @@ export default defineConfig({
},

integrations: [
markdoc({ allowHTML: true }),
react(),
starlight({
plugins: [starlightLinksValidator(), starlightLlmsTxt()],
plugins: [
...(process.env.CHECK_LINKS || false
? [
starlightLinksValidator({
components: [["Anchor", "url"]],
exclude: ["/api/**", "/contact"],
errorOnInvalidHashes: false,
}),
]
: []),
starlightLlmsTxt(),
],
title: "SumUp Developer",
favicon: "favicon.png",
disable404Route: true,
Expand Down
12 changes: 0 additions & 12 deletions markdoc.config.json

This file was deleted.

12 changes: 0 additions & 12 deletions markdoc.config.ts

This file was deleted.

Loading
Loading