Skip to content

Commit a9ccec1

Browse files
committed
add working graph
1 parent 0606f9e commit a9ccec1

Some content is hidden

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

47 files changed

+926
-856
lines changed

astro.config.mjs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import starlightLinksValidator from 'starlight-links-validator';
55
import remarkMath from 'remark-math';
66
import rehypeMathjax from 'rehype-mathjax';
77
import starlightSiteGraph from 'starlight-site-graph';
8-
import svelte from '@astrojs/svelte';
98

109
// https://astro.build/config
1110
export default defineConfig({
@@ -66,11 +65,22 @@ export default defineConfig({
6665
collapsed: true,
6766
},
6867
}),
69-
// starlightSiteGraph({}),
68+
starlightSiteGraph({
69+
graphConfig: {
70+
depth: 5,
71+
trackVisitedPages: false,
72+
},
73+
storageLocation: 'none',
74+
contentRoot: './src/content/docs',
75+
include_sitemap: ['./api/*/**/*.md'],
76+
exclude_sitemap: ['**'],
77+
show_graph: ['api/**'],
78+
hide_graph: ['**', ''],
79+
}),
7080
],
7181
customCss: ['./src/styles/custom.css'],
7282
}),
73-
svelte(),
83+
// svelte(),
7484
],
7585
markdown: {
7686
remarkPlugins: [remarkMath],

bun.lockb

1.19 KB
Binary file not shown.

package.json

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,19 @@
1111
"format": "prettier --plugin prettier-plugin-astro --plugin prettier-plugin-svelte --write ."
1212
},
1313
"dependencies": {
14-
"@astrojs/starlight": "0.25.4",
14+
"@astrojs/starlight": "0.26.1",
1515
"@astrojs/svelte": "^5.7.0",
16-
"astro": "4.13.2",
17-
"d3": "^7.9.0",
18-
"pixi.js": "^8.3.2",
16+
"astro": "4.14.2",
1917
"rehype-mathjax": "^6.0.0",
2018
"remark-math": "^6.0.0",
21-
"sharp": "^0.33.4",
19+
"sharp": "^0.33.5",
2220
"starlight-links-validator": "^0.9.1",
23-
"starlight-site-graph": "^0.0.1",
21+
"starlight-site-graph": "0.0.13",
2422
"starlight-typedoc": "^0.14.0",
2523
"svelte": "5.0.0-next.210",
26-
"typedoc": "^0.26.5",
27-
"typedoc-plugin-markdown": "^4.2.3",
28-
"typedoc-plugin-mdn-links": "^3.2.7",
24+
"typedoc": "^0.26.6",
25+
"typedoc-plugin-markdown": "^4.2.5",
26+
"typedoc-plugin-mdn-links": "^3.2.9",
2927
"typescript": "^5.5.4"
3028
},
3129
"devDependencies": {

src/components/Graph.astro

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

src/components/Graph.ts

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

0 commit comments

Comments
 (0)