Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
e3e8fbe
add eslint/prettier config
JonathanMatthey Nov 28, 2025
7b4a24d
eslint prettier config
JonathanMatthey Nov 28, 2025
b071db0
lint format mdx
JonathanMatthey Nov 28, 2025
ed6abd2
lint format mdx
JonathanMatthey Nov 28, 2025
db1df8c
lintformat
JonathanMatthey Nov 28, 2025
971c1f3
lint prettier file
JonathanMatthey Dec 1, 2025
309e2a2
Update src/content/docs/content/rafiki.mdx
JonathanMatthey Dec 2, 2025
b413cde
Update src/content/docs/content/starlight.mdx
JonathanMatthey Dec 2, 2025
2106316
Update src/content/docs/index.mdx
JonathanMatthey Dec 2, 2025
a0cc7b4
Update src/content/docs/shared/linkout.mdx
JonathanMatthey Dec 2, 2025
f0dca4a
Update src/content/docs/shared/removeoverview.mdx
JonathanMatthey Dec 2, 2025
166895b
Update src/content/docs/shared/linkout.mdx
JonathanMatthey Dec 2, 2025
42e13ef
Update src/content/docs/shared/linkout.mdx
JonathanMatthey Dec 2, 2025
58211d3
Update src/content/docs/shared/linkout.mdx
JonathanMatthey Dec 2, 2025
209f078
Update src/content/docs/shared/linkout.mdx
JonathanMatthey Dec 2, 2025
aeb2152
fix: readme and contibuting and worfkflow
JonathanMatthey Dec 2, 2025
5b5a0e5
fix ignore tags
JonathanMatthey Dec 2, 2025
d582747
fix codeblock
JonathanMatthey Dec 2, 2025
0f10877
pnpm format
JonathanMatthey Dec 2, 2025
5338156
changing jsx codeblocks to mdx
JonathanMatthey Dec 2, 2025
98e7dc2
npm format
JonathanMatthey Dec 2, 2025
e68a474
force mdx format
JonathanMatthey Dec 2, 2025
8b5785a
pnpm lock
JonathanMatthey Dec 2, 2025
f36ea92
fix line block
JonathanMatthey Dec 2, 2025
5980bb6
change mdx to jsx
JonathanMatthey Dec 2, 2025
56ff898
add prettier ignore
JonathanMatthey Dec 2, 2025
fff469c
Update src/content/docs/content/global.mdx
JonathanMatthey Dec 2, 2025
5fc8baa
Update src/content/docs/shared/mermaidwrapper.mdx
JonathanMatthey Dec 2, 2025
643a127
Update src/content/docs/shared/disclosure.mdx
JonathanMatthey Dec 2, 2025
48cffa3
Update src/content/docs/shared/mermaidwrapper.mdx
JonathanMatthey Dec 2, 2025
c737243
prettier ignore
JonathanMatthey Dec 2, 2025
4f03db3
multiline array
Anca2022 Dec 2, 2025
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
4 changes: 4 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ Provide a succinct description of what this pull request entails.
What were you trying to do?
Link issues here - using `fixes #number`
-->

## Checklist

- [ ] I have run `bun run format` (or `bun run lint`) to check formatting and linting
2 changes: 2 additions & 0 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ jobs:
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Check formatting and linting
run: bun run lint
- name: Test build website
run: bun run build
8 changes: 8 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.github
.astro
node_modules
public
dist
**/*.min.css
**/*.min.js

23 changes: 23 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"semi": false,
"singleQuote": true,
"trailingComma": "none",
"plugins": ["prettier-plugin-astro"],
"overrides": [
{
"files": "**/*.astro",
"options": {
"parser": "astro"
}
},
{
"files": "**/*.mdx",
"options": {
"parser": "mdx"
}
}
]
}



18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,16 @@ curl -fsSL https://bun.sh/install | bash

All commands are run from the root of the project, from a terminal:

| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `bun install` | Installs dependencies |
| `bun run start` | Starts local dev server at `localhost:1105` |
| `bun run build` | Build your production site to `./dist/` |
| `bun run preview` | Preview your build locally, before deploying |
| `bun run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `bun run astro -- --help` | Get help using the Astro CLI |
| Command | Action |
| :------------------------ | :-------------------------------------------------- |
| `bun install` | Installs dependencies |
| `bun run start` | Starts local dev server at `localhost:1105` |
| `bun run build` | Build your production site to `./dist/` |
| `bun run preview` | Preview your build locally, before deploying |
| `bun run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `bun run astro -- --help` | Get help using the Astro CLI |
| `bun run format` | Format and auto-fix code with Prettier & ESLint |
| `bun run lint` | Check formatting and linting without making changes |

You can substitute the `bun` commands with whatever package manager of your choice uses.

Expand Down
87 changes: 47 additions & 40 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,75 +1,82 @@
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import remarkMath from "remark-math";
import rehypeMathjax from "rehype-mathjax";
import starlightLinksValidator from "starlight-links-validator";
import starlightFullViewMode from "starlight-fullview-mode";
import { defineConfig } from 'astro/config'
import starlight from '@astrojs/starlight'
import remarkMath from 'remark-math'
import rehypeMathjax from 'rehype-mathjax'
import starlightLinksValidator from 'starlight-links-validator'
import starlightFullViewMode from 'starlight-fullview-mode'

// https://astro.build/config
export default defineConfig({
site: "https://interledger.net",
site: 'https://interledger.net',
markdown: {
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeMathjax],
rehypePlugins: [rehypeMathjax]
},
integrations: [
starlight({
title: "Docs style guide",
description: "The style guide for all Interledger documentation sites. Because we love consistency.",
title: 'Docs style guide',
description:
'The style guide for all Interledger documentation sites. Because we love consistency.',
customCss: [
"./node_modules/@interledger/docs-design-system/src/styles/teal-theme.css",
"./node_modules/@interledger/docs-design-system/src/styles/ilf-docs.css",
'./node_modules/@interledger/docs-design-system/src/styles/teal-theme.css',
'./node_modules/@interledger/docs-design-system/src/styles/ilf-docs.css'
],
plugins: [starlightLinksValidator(), starlightFullViewMode()],
expressiveCode: {
styleOverrides: {
borderColor: "transparent",
borderRadius: "var(--border-radius)",
},
borderColor: 'transparent',
borderRadius: 'var(--border-radius)'
}
},
social: [{ icon: "github", label: "GitHub", href: "https://github.com/interledger/docs-styleguide" }],
social: [
{
icon: 'github',
label: 'GitHub',
href: 'https://github.com/interledger/docs-styleguide'
}
],
components: {
Header: "./src/components/Header.astro",
Header: './src/components/Header.astro'
},
sidebar: [
{
label: "Overview of doc styles",
link: "/",
label: 'Overview of doc styles',
link: '/'
},
{
label: "Style guides",
label: 'Style guides',
autogenerate: {
directory: "content",
},
directory: 'content'
}
},
{
label: "Classes, styles, HTML, etc",
label: 'Classes, styles, HTML, etc',
autogenerate: {
directory: "classes",
},
directory: 'classes'
}
},
{
label: "Shared Components",
label: 'Shared Components',
autogenerate: {
directory: "shared",
},
directory: 'shared'
}
},
{
label: "Open Payments Components",
label: 'Open Payments Components',
autogenerate: {
directory: "oppm",
},
directory: 'oppm'
}
},
{
label: "Web Monetization Components",
label: 'Web Monetization Components',
autogenerate: {
directory: "webm",
},
},
],
}),
directory: 'webm'
}
}
]
})
],
server: {
port: 1105,
},
});
port: 1105
}
})
30 changes: 30 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import js from '@eslint/js'
import globals from 'globals'
import tseslint from 'typescript-eslint'
import { defineConfig, globalIgnores } from 'eslint/config'
import eslintConfigPrettier from 'eslint-config-prettier/flat'
import eslintPluginAstro from 'eslint-plugin-astro'

export default defineConfig([
{
files: ['**/*.{js,mjs,cjs,ts,mts,cts}'],
plugins: { js },
extends: ['js/recommended'],
languageOptions: { globals: { ...globals.browser, ...globals.node } }
},
tseslint.configs.recommended,
eslintPluginAstro.configs.recommended,
globalIgnores(['dist', '.astro', 'node_modules', 'public', '**/*.min.js']),
{
rules: {
'no-console': 'error',
'@typescript-eslint/no-unused-vars': [
'error',
{ argsIgnorePattern: '^_' }
],
'@typescript-eslint/no-explicit-any': 'error',
'astro/no-set-text-directive': 'error'
}
},
eslintConfigPrettier
])
16 changes: 15 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
"astro": "astro",
"format": "prettier --write '**/*.{js,mjs,ts,tsx,json,md,mdx,astro}' && eslint --max-warnings=0 --fix .",
"lint": "prettier --check '**/*.{js,mjs,ts,tsx,json,md,mdx,astro}' && eslint --max-warnings=0 ."
},
"dependencies": {
"@astrojs/starlight": "^0.36.2",
Expand All @@ -17,5 +19,17 @@
"sharp": "^0.34.5",
"starlight-fullview-mode": "^0.2.6",
"starlight-links-validator": "^0.19.1"
},
"devDependencies": {
"@eslint/js": "^9.39.1",
"@typescript-eslint/parser": "^8.48.0",
"astro-eslint-parser": "^1.2.2",
"eslint": "^9.39.1",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-astro": "^1.5.0",
"globals": "^16.5.0",
"prettier": "3.6.2",
"prettier-plugin-astro": "0.14.1",
"typescript-eslint": "^8.48.0"
}
}
Loading