File tree Expand file tree Collapse file tree 5 files changed +462
-1132
lines changed Expand file tree Collapse file tree 5 files changed +462
-1132
lines changed Original file line number Diff line number Diff line change @@ -66,9 +66,13 @@ export default defineConfig({
66
66
logo : {
67
67
src : './public/img/icon.svg'
68
68
} ,
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
+ ] ,
72
76
sidebar : [
73
77
{
74
78
label : 'Overview' ,
Original file line number Diff line number Diff line change 9
9
"astro" : " astro"
10
10
},
11
11
"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 " ,
16
16
"astro-graphql-plugin" : " ^0.4.2" ,
17
17
"graphql" : " 16.10.0" ,
18
- "mermaid" : " ^11.4.1 " ,
18
+ "mermaid" : " ^11.6.0 " ,
19
19
"rehype-autolink-headings" : " ^7.1.0" ,
20
- "rehype-mathjax" : " ^6.0 .0" ,
20
+ "rehype-mathjax" : " ^7.1 .0" ,
21
21
"remark-math" : " ^6.0.0" ,
22
- "starlight-links-validator" : " ^0.14.3 "
22
+ "starlight-links-validator" : " ^0.15.1 "
23
23
}
24
24
}
Original file line number Diff line number Diff line change 1
1
---
2
- import type { Props } from ' @astrojs/starlight/props' ;
3
2
import Search from " @astrojs/starlight/components/Search.astro" ;
4
3
import ThemeSelect from " @astrojs/starlight/components/ThemeSelect.astro" ;
5
4
import SocialIcons from " @astrojs/starlight/components/SocialIcons.astro" ;
@@ -10,10 +9,10 @@ import RafikiLogo from "../components/RafikiLogo.astro";
10
9
<RafikiLogo />
11
10
</a >
12
11
<div class =" secondary-wrap" >
13
- <Search { ... Astro . props } />
14
- <SocialIcons { ... Astro . props } />
12
+ <Search />
13
+ <SocialIcons />
15
14
<div class =" sl-hidden md:sl-flex" >
16
- <ThemeSelect { ... Astro . props } />
15
+ <ThemeSelect />
17
16
</div >
18
17
</div >
19
18
</div >
Original file line number Diff line number Diff line change 1
1
---
2
- import type { Props } from ' @astrojs/starlight/props' ;
3
2
import Default from ' @astrojs/starlight/components/PageSidebar.astro' ;
4
3
5
4
const removeOverview = [
6
5
' resources/glossary' ,
7
6
' overview/concepts/payment-pointers' ,
8
7
]
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
+ }
16
16
---
17
17
18
- <Default { ... Astro . props } { toc }>< slot /></ Default >
18
+ <Default / >
You can’t perform that action at this time.
0 commit comments