Skip to content

Commit

Permalink
docs(*): Fix enum names in docs generation
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed May 27, 2021
1 parent 7cd1e07 commit 7ef14ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ts/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ async function build(): Promise<void> {
],
})
}),
order: 'unordered',
order: 'Unordered',
}),
],
[]
Expand Down Expand Up @@ -335,7 +335,7 @@ async function schema2Article(schema: JsonSchema): Promise<Article> {
tableCell({ content: ['Type'] }),
tableCell({ content: ['Description'] }),
],
rowType: 'header',
rowType: 'Header',
})
const tableData = anyOf.map((memberSchema) => {
let { $ref, '@id': id, description = '' } = memberSchema
Expand Down Expand Up @@ -364,7 +364,7 @@ async function schema2Article(schema: JsonSchema): Promise<Article> {
tableCell({ content: ['Description'] }),
tableCell({ content: ['Inherited from'] }),
],
rowType: 'header',
rowType: 'Header',
})
const tableData = await Promise.all(
Object.entries(properties)
Expand Down Expand Up @@ -500,7 +500,7 @@ async function schema2Article(schema: JsonSchema): Promise<Article> {
? [
heading({ content: ['Notes'], depth: 2 }),
list({
order: 'ascending',
order: 'Ascending',
items: [...notes.map((note) => listItem({ content: [note] }))],
}),
]
Expand Down

0 comments on commit 7ef14ed

Please sign in to comment.