Skip to content

Commit bc5bbae

Browse files
huijingJoblersTune
andauthored
chore: bump dependencies to latest versions (#3387)
* chore: bump dependencies to latest versions * bump starlight-links-validator to fix locallinks issue --------- Co-authored-by: Sarah Jones <[email protected]>
1 parent 2137867 commit bc5bbae

File tree

5 files changed

+462
-1132
lines changed

5 files changed

+462
-1132
lines changed

packages/documentation/astro.config.mjs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,13 @@ export default defineConfig({
6666
logo: {
6767
src: './public/img/icon.svg'
6868
},
69-
social: {
70-
github: 'https://github.com/interledger/rafiki/tree/main'
71-
},
69+
social: [
70+
{
71+
icon: 'github',
72+
label: 'GitHub',
73+
href: 'https://github.com/interledger/rafiki/tree/main'
74+
}
75+
],
7276
sidebar: [
7377
{
7478
label: 'Overview',

packages/documentation/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
"astro": "astro"
1010
},
1111
"dependencies": {
12-
"@astrojs/markdown-remark": "^6.1.0",
13-
"@astrojs/starlight": "^0.31.1",
14-
"@interledger/docs-design-system": "^0.6.1",
15-
"astro": "5.2.0",
12+
"@astrojs/markdown-remark": "^6.3.1",
13+
"@astrojs/starlight": "^0.33.0",
14+
"@interledger/docs-design-system": "^0.6.2",
15+
"astro": "5.6.1",
1616
"astro-graphql-plugin": "^0.4.2",
1717
"graphql": "16.10.0",
18-
"mermaid": "^11.4.1",
18+
"mermaid": "^11.6.0",
1919
"rehype-autolink-headings": "^7.1.0",
20-
"rehype-mathjax": "^6.0.0",
20+
"rehype-mathjax": "^7.1.0",
2121
"remark-math": "^6.0.0",
22-
"starlight-links-validator": "^0.14.3"
22+
"starlight-links-validator": "^0.15.1"
2323
}
2424
}

packages/documentation/src/components/Header.astro

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
import type { Props } from '@astrojs/starlight/props';
32
import Search from "@astrojs/starlight/components/Search.astro";
43
import ThemeSelect from "@astrojs/starlight/components/ThemeSelect.astro";
54
import SocialIcons from "@astrojs/starlight/components/SocialIcons.astro";
@@ -10,10 +9,10 @@ import RafikiLogo from "../components/RafikiLogo.astro";
109
<RafikiLogo />
1110
</a>
1211
<div class="secondary-wrap">
13-
<Search {...Astro.props} />
14-
<SocialIcons {...Astro.props} />
12+
<Search />
13+
<SocialIcons />
1514
<div class="sl-hidden md:sl-flex">
16-
<ThemeSelect {...Astro.props} />
15+
<ThemeSelect />
1716
</div>
1817
</div>
1918
</div>
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
2-
import type { Props } from '@astrojs/starlight/props';
32
import Default from '@astrojs/starlight/components/PageSidebar.astro';
43
54
const removeOverview = [
65
'resources/glossary',
76
'overview/concepts/payment-pointers',
87
]
9-
const noOverview = removeOverview.includes(Astro.props.slug);
10-
const toc = noOverview && Astro.props.toc !== undefined
11-
? {
12-
...Astro.props.toc,
13-
items: Astro.props.toc?.items.slice(1),
14-
}
15-
: Astro.props.toc;
8+
const { id, toc } = Astro.locals.starlightRoute;
9+
const noOverview = removeOverview.includes(id);
10+
if (noOverview && toc) {
11+
Astro.locals.starlightRoute.toc = {
12+
...toc,
13+
items: toc.items.slice(1),
14+
};
15+
}
1616
---
1717

18-
<Default {...Astro.props} {toc}><slot /></Default>
18+
<Default />

0 commit comments

Comments
 (0)