/
showcase.ts
119 lines (118 loc) · 2.73 KB
/
showcase.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
/**
* # Markdown Showcase
*
* All comments are parsed as **Markdown**. TypeDoc uses the
* [Marked](https://github.com/markedjs/marked) markdown parser to _convert
* comments to HTML_.
*
* ## Symbol References
*
* You can link to other classes, members or functions using double square
* brackets or an inline link tag. See the [TypeDoc
* documentation](https://typedoc.org/guides/doccomments/#symbol-references) for
* details.
*
* ## Code in Doc Comments
*
* Some inline code: `npm install --save-dev typedoc`
*
* A TypeScript code block:
*
* ```
* // A fabulous variable
* const x: number | string = 12
* ```
*
* See {@link syntaxHighlightingShowcase | `syntaxHighlightingShowcase`} for more code blocks.
*
* ## A List
*
* - 🥚 ~~Eggs~~
* - 🍞 Bread
* - 🧀 Swiss cheese
*
* ## A Table
*
* | Package | Version |
* | ------- | ------- |
* | lodash | 4.17.21 |
* | react | 17.0.2 |
* | typedoc | 0.22.4 |
*
* A Random Shakespeare Quote
* --------------------------
*
* > Rebellious subjects, enemies to peace, Profaners of this neighbour-stained
* > steel,-- Will they not hear? What, ho! you men, you beasts, That quench the
* > fire of your pernicious rage With purple fountains issuing from your veins
*
* ## An Image
*
* <img src="media://typescript-logo.svg" width="120" />
*
* This requires the [media option](https://typedoc.org/guides/options/#media)
* to be set.
*/
export function markdownShowcase(): void {
// does nothing
}
/**
* TypeDoc supports code blocks in Markdown and uses
* [Shiki](https://shiki.matsu.io/) to provide syntax highlighting.
*
* If no language is specified, the code block is assumed to be TypeScript:
*
* ```
* // A fabulous variable
* const x: number | string = 12
* ```
*
* You can specify the language at the start of your code block like this:
*
* ````text
* ```rust
* ````
*
* Use the `tsx` language to get JSX support:
*
* ```tsx
* function BasicComponent(): ReactElement {
* return <div>Test</div>
* }
* ```
*
* You might want to write code in the language your backend uses. Here's some
* Python:
*
* ```python
* for i in range(30):
* print(i + 1)
* ```
*
* And some CSS:
*
* ```css
* .card {
* background-color: white;
* padding: 1rem;
* border: 1px solid lightgray;
* }
* ```
*
* If you don't want syntax highlighting, use the `text` language:
*
* ```text
* package.json
* src/
* index.ts
* __tests__/
* index.test.ts
* ```
*
* [**View the full list of supported
* languages.**](https://github.com/shikijs/shiki/blob/main/docs/languages.md#all-languages)
* You can also get this list by running `typedoc --help`.
*/
export function syntaxHighlightingShowcase(): void {
// does nothing
}