Skip to content

Commit 3c83401

Browse files
committed
add graph
1 parent 7e1248d commit 3c83401

File tree

5 files changed

+28
-4
lines changed

5 files changed

+28
-4
lines changed

astro.config.mjs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import starlight from '@astrojs/starlight';
33
import MetaBind from './metaBindLanguage.js';
44
import CustomMD from './customMD.js';
55
import starlightLinksValidator from 'starlight-links-validator';
6+
import starlightSiteGraph from 'starlight-site-graph';
67
import { bundledLanguages } from 'shiki';
78
import starlightTypeDoc, { typeDocSidebarGroup } from 'starlight-typedoc';
89

@@ -93,6 +94,18 @@ export default defineConfig({
9394
collapsed: false,
9495
},
9596
}),
97+
starlightSiteGraph({
98+
graphConfig: {
99+
depth: 5,
100+
trackVisitedPages: false,
101+
},
102+
storageLocation: 'none',
103+
contentRoot: './src/content/docs',
104+
include_sitemap: ['./api/*/**/*.md'],
105+
exclude_sitemap: ['**'],
106+
show_graph: ['api/**'],
107+
hide_graph: ['**', ''],
108+
}),
96109
],
97110
}),
98111
],

bun.lockb

-87.7 KB
Binary file not shown.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@
1414
"@astrojs/starlight": "0.26.1",
1515
"astro": "4.14.2",
1616
"starlight-links-validator": "^0.9.1",
17+
"starlight-site-graph": "0.0.13",
1718
"starlight-typedoc": "^0.14.0",
18-
"typedoc": "^0.26.5",
19+
"typedoc": "^0.26.6",
1920
"typedoc-plugin-markdown": "^4.2.5",
20-
"typedoc-plugin-mdn-links": "^3.2.8"
21+
"typedoc-plugin-mdn-links": "^3.2.9",
22+
"typescript": "^5.5.4"
2123
},
2224
"devDependencies": {
2325
"prettier": "^3.3.3",

src/content/docs/reference/viewFields/text.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ A text view field displays its content as plain text.
2020
### Examples
2121

2222
```meta-bind
23-
VIEW[Movie Title: {moveTitle}]
23+
VIEW[Movie Title: {moveTitle}][text]
2424
```

tsconfig.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
{
2-
"extends": "astro/tsconfigs/strict"
2+
"extends": "astro/tsconfigs/strict",
3+
"compilerOptions": {
4+
"skipLibCheck": true,
5+
"module": "ESNext",
6+
"target": "ESNext",
7+
"moduleResolution": "Bundler",
8+
"allowSyntheticDefaultImports": true,
9+
"esModuleInterop": true,
10+
"verbatimModuleSyntax": true
11+
}
312
}

0 commit comments

Comments
 (0)