* pull changes from docs-playground * cleanup, add callout banner * cleanup linting and test fixes * add discussion link Co-authored-by: James M. Greene <JamesMGreene@github.com>
34 lines
731 B
TypeScript
34 lines
731 B
TypeScript
export interface CodeBlockRef {
|
|
id: string
|
|
highlight?: Array<[number, number]> | number | [number, number]
|
|
}
|
|
export interface ContentBlock {
|
|
title?: string
|
|
type: 'default' | 'sub-section' | 'sub-section-2'
|
|
content: string
|
|
codeBlock: CodeBlockRef
|
|
}
|
|
export interface CodeBlock {
|
|
fileName: string
|
|
language: string
|
|
code: string
|
|
}
|
|
export interface PlaygroundArticleT {
|
|
title: string
|
|
shortTitle: string
|
|
topics: Array<string>
|
|
intro: string
|
|
slug: string
|
|
originalArticle: string
|
|
type: 'tutorial'
|
|
prerequisites?: string
|
|
codeLanguageId: string
|
|
contentBlocks: Array<ContentBlock>
|
|
codeBlocks: Record<string, CodeBlock | Array<CodeBlock>>
|
|
}
|
|
|
|
export interface CodeLanguage {
|
|
id: string
|
|
label: string
|
|
}
|