Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions packages/documentation/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,13 @@ export default defineConfig({
logo: {
src: './public/img/icon.svg'
},
social: {
github: 'https://github.com/interledger/rafiki/tree/main'
},
social: [
{
icon: 'github',
label: 'GitHub',
href: 'https://github.com/interledger/rafiki/tree/main'
}
],
sidebar: [
{
label: 'Overview',
Expand Down
14 changes: 7 additions & 7 deletions packages/documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/markdown-remark": "^6.1.0",
"@astrojs/starlight": "^0.31.1",
"@interledger/docs-design-system": "^0.6.1",
"astro": "5.2.0",
"@astrojs/markdown-remark": "^6.3.1",
"@astrojs/starlight": "^0.33.0",
"@interledger/docs-design-system": "^0.6.2",
"astro": "5.6.1",
"astro-graphql-plugin": "^0.4.2",
"graphql": "16.10.0",
"mermaid": "^11.4.1",
"mermaid": "^11.6.0",
"rehype-autolink-headings": "^7.1.0",
"rehype-mathjax": "^6.0.0",
"rehype-mathjax": "^7.1.0",
"remark-math": "^6.0.0",
"starlight-links-validator": "^0.14.3"
"starlight-links-validator": "^0.15.1"
}
}
7 changes: 3 additions & 4 deletions packages/documentation/src/components/Header.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
import type { Props } from '@astrojs/starlight/props';
import Search from "@astrojs/starlight/components/Search.astro";
import ThemeSelect from "@astrojs/starlight/components/ThemeSelect.astro";
import SocialIcons from "@astrojs/starlight/components/SocialIcons.astro";
Expand All @@ -10,10 +9,10 @@ import RafikiLogo from "../components/RafikiLogo.astro";
<RafikiLogo />
</a>
<div class="secondary-wrap">
<Search {...Astro.props} />
<SocialIcons {...Astro.props} />
<Search />
<SocialIcons />
<div class="sl-hidden md:sl-flex">
<ThemeSelect {...Astro.props} />
<ThemeSelect />
</div>
</div>
</div>
Expand Down
18 changes: 9 additions & 9 deletions packages/documentation/src/components/PageSidebar.astro
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
---
import type { Props } from '@astrojs/starlight/props';
import Default from '@astrojs/starlight/components/PageSidebar.astro';

const removeOverview = [
'resources/glossary',
'overview/concepts/payment-pointers',
]
const noOverview = removeOverview.includes(Astro.props.slug);
const toc = noOverview && Astro.props.toc !== undefined
? {
...Astro.props.toc,
items: Astro.props.toc?.items.slice(1),
}
: Astro.props.toc;
const { id, toc } = Astro.locals.starlightRoute;
const noOverview = removeOverview.includes(id);
if (noOverview && toc) {
Astro.locals.starlightRoute.toc = {
...toc,
items: toc.items.slice(1),
};
}
---

<Default {...Astro.props} {toc}><slot /></Default>
<Default />
Loading
Loading