Skip to content

Commit

Permalink
Add starlight links validator
Browse files Browse the repository at this point in the history
  • Loading branch information
huijing committed May 29, 2024
1 parent 35ce0cf commit ce8f519
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 29 deletions.
2 changes: 2 additions & 0 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { defineConfig } from 'astro/config'
import starlight from '@astrojs/starlight'
import starlightOpenAPI from 'starlight-openapi'
import starlightLinksValidator from 'starlight-links-validator'

// https://astro.build/config
export default defineConfig({
Expand Down Expand Up @@ -28,6 +29,7 @@ export default defineConfig({
src: './public/favicon.svg'
},
plugins: [
starlightLinksValidator(),
// Generate the OpenAPI documentation pages.
starlightOpenAPI([
{
Expand Down
3 changes: 2 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"mermaid": "^10.9.0",
"sharp": "^0.33.3",
"shiki": "1.4.0",
"starlight-openapi": "^0.6.3"
"starlight-openapi": "^0.6.3",
"starlight-links-validator": "^0.9.0"
},
"devDependencies": {
"prettier": "3.2.5"
Expand Down
63 changes: 35 additions & 28 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 ce8f519

Please sign in to comment.