File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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' ,
Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 11---
2- import type { Props } from ' @astrojs/starlight/props' ;
32import Search from " @astrojs/starlight/components/Search.astro" ;
43import ThemeSelect from " @astrojs/starlight/components/ThemeSelect.astro" ;
54import 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 >
Original file line number Diff line number Diff line change 11---
2- import type { Props } from ' @astrojs/starlight/props' ;
32import Default from ' @astrojs/starlight/components/PageSidebar.astro' ;
43
54const 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 / >
You can’t perform that action at this time.
0 commit comments