Skip to content

Commit

Permalink
chore: update sidebar with new external link icon (#454)
Browse files Browse the repository at this point in the history
  • Loading branch information
huijing authored May 9, 2024
1 parent f24e176 commit 3229192
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 41 deletions.
53 changes: 22 additions & 31 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default defineConfig({
fr: {
label: 'Français',
lang: 'fr',
}
},
},
components: {
Header: './src/components/docs/Header.astro',
Expand Down Expand Up @@ -190,42 +190,33 @@ export default defineConfig({
link: '/docs/resources/get-involved',
},
{
label: 'External resources',
collapsed: true,
items: [
{
label: 'Interledger',
link: 'https://interledger.org/',
attrs: { target: '_blank' },
},
{
label: 'Open Payments API',
link: 'https://openpayments.guide/',
attrs: { target: '_blank' },
},
{
label: 'Payment Handler API',
link: 'https://w3c.github.io/payment-handler/',
attrs: { target: '_blank' },
},
{
label: 'Payment pointers',
link: 'https://paymentpointers.org/',
attrs: { target: '_blank' },
},
{
label: 'Payment Request API',
link: 'https://www.w3.org/TR/payment-request/',
attrs: { target: '_blank' },
},
],
label: 'Interledger',
link: 'https://interledger.org/',
attrs: {
target: '_blank',
rel: 'noopener noreferrer',
'data-icon': 'external',
},
},
{
label: 'Open Payments API',
link: 'https://openpayments.guide/',
attrs: {
target: '_blank',
rel: 'noopener noreferrer',
'data-icon': 'external',
},
},
],
},
{
label: 'Specification',
link: 'https://webmonetization.org/specification/',
attrs: { target: '_blank' },
attrs: {
target: '_blank',
rel: 'noopener noreferrer',
'data-icon': 'external',
},
},
],
}),
Expand Down
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/react": "^3.1.0",
"@astrojs/starlight": "^0.21.1",
"@interledger/docs-design-system": "^0.3.2",
"@types/react": "^18.2.67",
"@types/react-dom": "^18.2.22",
"astro": "4.5.5",
"@astrojs/react": "^3.3.2",
"@astrojs/starlight": "^0.22.2",
"@interledger/docs-design-system": "^0.5.0",
"@types/react": "^18.3.1",
"@types/react-dom": "^18.3.0",
"astro": "4.7.1",
"astro-i18next": "^1.0.0-beta.21",
"prettier": "^3.2.5",
"prism-react-renderer": "^2.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-minimal-pie-chart": "^8.4.0",
"remark-mermaidjs": "^6.0.0",
"respec": "^34.5.0",
"sharp": "^0.33.2"
"respec": "^35.0.2",
"sharp": "^0.33.3"
}
}

0 comments on commit 3229192

Please sign in to comment.