Skip to content

Commit 85fc269

Browse files
committed
Merge branch 'main' into cozmin/ope-197
2 parents 0d80d4a + 0567add commit 85fc269

28 files changed

+1139
-1331
lines changed

.changeset/olive-crabs-reply.md

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

.changeset/tame-monkeys-fix.md

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

docs/astro.config.mjs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,18 @@ export default defineConfig({
4545
starlightOpenAPI([
4646
{
4747
base: 'apis/resource-server',
48-
label: 'Open Payments',
49-
schema: '../openapi/resource-server.yaml'
48+
schema: '../openapi/resource-server.yaml',
49+
sidebar: { label: 'Open Payments' }
5050
},
5151
{
5252
base: 'apis/wallet-address-server',
53-
label: 'Wallet Addresses',
54-
schema: '../openapi/wallet-address-server.yaml'
53+
schema: '../openapi/wallet-address-server.yaml',
54+
sidebar: { label: 'Wallet Addresses' }
5555
},
5656
{
5757
base: 'apis/auth-server',
58-
label: 'Open Payments Authorization Server',
59-
schema: '../openapi/auth-server.yaml'
58+
schema: '../openapi/auth-server.yaml',
59+
sidebar: { label: 'Open Payments Authorization Server' }
6060
}
6161
]),
6262
starlightLinksValidator({
@@ -222,10 +222,6 @@ export default defineConfig({
222222
label: 'Guides',
223223
collapsed: true,
224224
items: [
225-
{
226-
label: 'Create an interactive grant',
227-
link: '/guides/create-interactive-grant/'
228-
},
229225
{
230226
label: 'Make a one-time payment',
231227
link: '/guides/make-onetime-payment/'
@@ -397,9 +393,13 @@ export default defineConfig({
397393
]
398394
}
399395
],
400-
social: {
401-
github: 'https://github.com/interledger/open-payments'
402-
}
396+
social: [
397+
{
398+
icon: 'github',
399+
label: 'GitHub',
400+
href: 'https://github.com/interledger/open-payments'
401+
}
402+
]
403403
}),
404404
starlightOpenAPI()
405405
],

docs/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
"astro": "astro"
1111
},
1212
"dependencies": {
13-
"@astrojs/starlight": "^0.31.1",
14-
"@interledger/docs-design-system": "^0.6.1",
15-
"astro": "5.2.5",
16-
"mermaid": "^11.4.1",
17-
"sharp": "^0.33.5",
18-
"shiki": "2.3.2",
19-
"starlight-openapi": "^0.12.0",
20-
"starlight-links-validator": "^0.14.2"
13+
"@astrojs/starlight": "^0.33.0",
14+
"@interledger/docs-design-system": "^0.6.2",
15+
"astro": "5.6.1",
16+
"mermaid": "^11.6.0",
17+
"sharp": "^0.34.1",
18+
"shiki": "3.2.1",
19+
"starlight-openapi": "^0.14.4",
20+
"starlight-links-validator": "^0.15.0"
2121
},
2222
"devDependencies": {
23-
"prettier": "3.5.0"
23+
"prettier": "3.5.3"
2424
}
2525
}

docs/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 OpenPaymentsLogo from "../components/OpenPaymentsLogo.astro";
109
<OpenPaymentsLogo />
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>

docs/src/components/PageSidebar.astro

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +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
]
8-
const noOverview = removeOverview.includes(Astro.props.slug);
9-
const toc = noOverview && Astro.props.toc !== undefined
10-
? {
11-
...Astro.props.toc,
12-
items: Astro.props.toc?.items.slice(1),
13-
}
14-
: Astro.props.toc;
7+
const { id, toc } = Astro.locals.starlightRoute;
8+
const noOverview = removeOverview.includes(id);
9+
10+
if (noOverview && toc) {
11+
Astro.locals.starlightRoute.toc = {
12+
...toc,
13+
items: toc.items.slice(1),
14+
};
15+
}
1516
---
1617

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

docs/src/content/docs/guides/create-interactive-grant.mdx

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

0 commit comments

Comments
 (0)