Skip to content

Commit 93110b3

Browse files
fix mdx files
1 parent ab5df3b commit 93110b3

23 files changed

+327
-221
lines changed

src/content/docs/classes/details.mdx

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,16 @@ You can nest any other Markdown syntax inside a `<details>` element. Some, if no
1414

1515
```html
1616
<details>
17-
<summary>Who has two thumbs, speaks limited French, and hasn't cried once today?</summary>
18-
<img
19-
src="/img/thismoi.png"
20-
alt="Liz Lemon"
21-
style="max-width:200px"
22-
/>
17+
<summary>
18+
Who has two thumbs, speaks limited French, and hasn't cried once today?
19+
</summary>
20+
<img src="/img/thismoi.png" alt="Liz Lemon" style="max-width:200px" />
2321
</details>
2422
```
2523

2624
<details>
27-
<summary>Who has two thumbs, speaks limited French, and hasn't cried once today?</summary>
28-
<img
29-
src="/img/thismoi.png"
30-
alt="Liz Lemon"
31-
style="max-width:200px"
32-
/>
33-
</details>
25+
<summary>
26+
Who has two thumbs, speaks limited French, and hasn't cried once today?
27+
</summary>
28+
<img src="/img/thismoi.png" alt="Liz Lemon" style="max-width:200px" />
29+
</details>

src/content/docs/classes/external-links.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ To add an icon to external links that appear in the left sidenav, follow the for
1414
'data-icon': 'external',
1515
},
1616
```
17+
1718
Et voila
1819
1920
<img
2021
src="/img/external-link-icon.png"
2122
style="max-width:300px"
2223
class="img-outline"
23-
/>
24+
/>

src/content/docs/content/api.mdx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
title: API style guide
33
---
44

5-
import { CodeBlock } from "@interledger/docs-design-system"
6-
import { Tabs, TabItem } from '@astrojs/starlight/components'
5+
import { CodeBlock } from "@interledger/docs-design-system";
6+
import { Tabs, TabItem } from "@astrojs/starlight/components";
77

88
## Introduction
99

@@ -33,7 +33,6 @@ Make sure you import the `<Tabs>` and `<TabItem>` components to your MDX file li
3333
`import { Tabs, TabItem } from '@astrojs/starlight/components'`
3434
:::
3535

36-
3736
#### Operation tab
3837

3938
- Include the query/mutation in a code block
@@ -83,7 +82,7 @@ Make sure you import the `<Tabs>` and `<TabItem>` components to your MDX file li
8382
</CodeBlock>
8483

8584
:::note
86-
Before this style guide was created, there were older GraphQL examples that, in most cases, contained a table displaying variable names and descriptions. If you are updating one of these older examples, delete this table. The input object documentation explains all of the variables and we link to that page in the Variables tab.
85+
Before this style guide was created, there were older GraphQL examples that, in most cases, contained a table displaying variable names and descriptions. If you are updating one of these older examples, delete this table. The input object documentation explains all of the variables and we link to that page in the Variables tab.
8786
:::
8887

8988
#### Response tab
@@ -146,6 +145,7 @@ Before this style guide was created, there were older GraphQL examples that, in
146145
}
147146
}
148147
```
148+
149149
</TabItem>
150150
</Tabs>
151151
````
@@ -186,9 +186,10 @@ Before this style guide was created, there were older GraphQL examples that, in
186186
}
187187
}
188188
```
189+
189190
</TabItem>
190191
</Tabs>
191192

192193
## REST API
193194

194-
Coming soon
195+
Coming soon

src/content/docs/content/global.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,17 +150,17 @@ We're taking [Google's approach](https://developers.google.com/style/word-list#p
150150

151151
## See
152152

153-
Previously, we tried to be more inclusive by staying away from using *see* when referring to a link (for example, *see XYZ for more information*).
153+
Previously, we tried to be more inclusive by staying away from using _see_ when referring to a link (for example, _see XYZ for more information_).
154154

155-
We've decided that it **is** OK to use *see*.
155+
We've decided that it **is** OK to use _see_.
156156

157-
The W3C uses *see* for link references in their [Accessibility, Usability, and Inclusion](https://www.w3.org/WAI/fundamentals/accessibility-usability-inclusion/) page. Similarly, Google uses it in their [Write inclusive documentation](https://developers.google.com/style/inclusive-documentation) page and their [word list](https://developers.google.com/style/word-list#see) indicates its OK to use when referring to links and cross-references.
157+
The W3C uses _see_ for link references in their [Accessibility, Usability, and Inclusion](https://www.w3.org/WAI/fundamentals/accessibility-usability-inclusion/) page. Similarly, Google uses it in their [Write inclusive documentation](https://developers.google.com/style/inclusive-documentation) page and their [word list](https://developers.google.com/style/word-list#see) indicates its OK to use when referring to links and cross-references.
158158

159159
## SHA (secure hash algorithm)
160160

161-
SHA is a common technical term that doesn't need to be defined before it's first use.
161+
SHA is a common technical term that doesn't need to be defined before it's first use.
162162

163-
When an a/an article is needed, use **a**.
163+
When an a/an article is needed, use **a**.
164164

165165
- A SHA-256 hash of the interaction is sent in the response. ✅
166166
- An SHA-256 has of the interaction is sent in the response. ❌

src/content/docs/content/interledger.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Interledger Protocol specs style guide
33
---
44

5-
import { Card } from '@astrojs/starlight/components';
5+
import { Card } from "@astrojs/starlight/components";
66

77
<Card title="After a Starlight upgrade to interledger.org-developers" icon="star">
88
```
@@ -16,11 +16,11 @@ bun run start
1616

1717
### Common nouns
1818

19-
* connector
20-
* packet
19+
- connector
20+
- packet
2121

2222
### Proper nouns
2323

24-
* Fulfill packet
25-
* Prepare packet
26-
* Reject packet
24+
- Fulfill packet
25+
- Prepare packet
26+
- Reject packet

src/content/docs/content/markdown.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import { CodeBlock } from "@interledger/docs-design-system";
88

99
Most content in the documentation projects are written in Markdown. This page touches on some high-level Markdown topics. For more information on Markdown syntax, see:
1010

11-
* https://starlight.astro.build/guides/authoring-content/
12-
* https://www.markdownguide.org/basic-syntax/
13-
* https://www.markdownguide.org/extended-syntax/
11+
- https://starlight.astro.build/guides/authoring-content/
12+
- https://www.markdownguide.org/basic-syntax/
13+
- https://www.markdownguide.org/extended-syntax/
1414

1515
Frontmatter [YAML](https://dev.to/paulasantamaria/introduction-to-yaml-125f) is used to define metadata such as a title and description.
1616

@@ -24,15 +24,15 @@ For example, to show \{client_domain/jwks.json\} in plain text (as shown here),
2424

2525
## Frontmatter
2626

27-
Most files require a `title` in their frontmatter.
27+
Most files require a `title` in their frontmatter.
2828

2929
```md
3030
---
3131
title: Remember to set this
3232
---
3333
```
3434

35-
One scenario in which a title is **not** required is when the file is a [partial](/content/global#content-reuse).
35+
One scenario in which a title is **not** required is when the file is a [partial](/content/global#content-reuse).
3636

3737
Check the full list of [frontmatter configuration](https://starlight.astro.build/reference/frontmatter/) for more fun options.
3838

src/content/docs/content/openpayments.mdx

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,18 @@
22
title: Open Payments style guide
33
---
44

5-
import { Card, Steps } from '@astrojs/starlight/components';
5+
import { Card, Steps } from "@astrojs/starlight/components";
66

77
<Card title="Before committing changes" icon="star">
88

99
1. Your PR title must contain the appropriate prefix (`docs:`).
1010
2. Run the following command in the `doc` directory:
11-
```
12-
npx prettier . --write
13-
```
14-
You can also try the following. It might work, or you might get an error.
15-
```
16-
pnpm format
17-
```
18-
</Card>
11+
` npx prettier . --write
12+
`
13+
You can also try the following. It might work, or you might get an error.
14+
` pnpm format
15+
`
16+
</Card>
1917

2018
<Card title="After a Starlight upgrade to open-payments" icon="star">
2119
```
@@ -45,4 +43,4 @@ pnpm start
4543

4644
### Open Payments
4745

48-
Spell as two words, not one (OpenPayments).
46+
Spell as two words, not one (OpenPayments).

src/content/docs/content/paymentpointers.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
title: Paymentpointers.org style guide
33
---
44

5-
import { Card } from '@astrojs/starlight/components';
5+
import { Card } from "@astrojs/starlight/components";
66

77
<Card title="After a Starlight upgrade to paymentpointers" icon="star">
88
```
99
cd <to project folder>
1010
bun install
1111
bun run start
1212
```
13-
</Card>
13+
</Card>

src/content/docs/content/rafiki.mdx

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,25 @@
22
title: Rafiki style guide
33
---
44

5-
import { Card, Tabs, TabItem } from '@astrojs/starlight/components';
5+
import { Card, Tabs, TabItem } from "@astrojs/starlight/components";
66

77
<Card title="Before committing changes" icon="star">
88

9-
1. Your PR title must contain the appropriate prefix (`docs:`).
9+
1. Your PR title must contain the appropriate prefix (`docs:`).
1010

11-
2. Run the following command in the `/packages/documentation` directory:
11+
2. Run the following command in the `/packages/documentation` directory:
1212

13-
```
14-
npx prettier . --write
15-
```
13+
```
14+
npx prettier . --write
15+
```
1616

17-
You can also try the following. It might work, or you might get an error.
17+
You can also try the following. It might work, or you might get an error.
1818

19-
```
20-
pnpm format
21-
```
22-
</Card>
19+
```
20+
pnpm format
21+
```
22+
23+
</Card>
2324

2425
<Card title="After a Starlight upgrade to rafiki" icon="star">
2526
```
@@ -57,17 +58,19 @@ Open the generated HTML files (`src/pages/apis/graphql/auth/index.html` and `src
5758
```
5859

5960
This ensures that the GraphQL API docs are included in the site search.
61+
6062
</Card>
6163

6264
## Nouns
6365

6466
### Common nouns
65-
* authorization server
66-
* resource server
67+
68+
- authorization server
69+
- resource server
6770

6871
## Spellings
6972

70-
### backend/frontend
73+
### backend/frontend
7174

7275
When writing about the backend/frontend services and packages in Rafiki, spell as shown. Don't hyphenate or add a space (for example, back end). FWIW, this is how Microsoft, Google, and Cloudflare treat the terms in their docs.
7376

@@ -77,8 +80,8 @@ When writing about the backend/frontend services and packages in Rafiki, spell a
7780

7881
Many of the tables in the Rafiki docs are wider than the main content panel. We've tried to care for this in a few ways.
7982

80-
* We implemented toggles across all doc sites that allows you to collapse/expand the left and right panels. This gives the main content panel a wider viewable area.
81-
* We also added support to the Rafiki docs for custom CSS table styles.
83+
- We implemented toggles across all doc sites that allows you to collapse/expand the left and right panels. This gives the main content panel a wider viewable area.
84+
- We also added support to the Rafiki docs for custom CSS table styles.
8285

8386
You can wrap your markdown table in one of the following `div`s.
8487

@@ -103,6 +106,7 @@ You can wrap your markdown table in one of the following `div`s.
103106
**Example**
104107

105108
![Wide overflow table example](/img/rafiki-overflow-wide.png)
109+
106110
</TabItem>
107111
<TabItem label="wider-column">
108112
The `wider-column` sets the minimum width of the table (sum of the total width of all columns) to 80rem.
@@ -114,5 +118,6 @@ You can wrap your markdown table in one of the following `div`s.
114118
**Example**
115119

116120
![Wider overflow table example](/img/rafiki-overflow-wider.png)
121+
117122
</TabItem>
118123
</Tabs>

0 commit comments

Comments
 (0)