|
| 1 | +--- |
| 2 | +toc_min_heading_level: 2 |
| 3 | +toc_max_heading_level: 6 |
| 4 | +--- |
| 5 | +import Tabs from '@theme/Tabs'; |
| 6 | +import TabItem from '@theme/TabItem'; |
| 7 | +import TOCInline from '@theme/TOCInline'; |
| 8 | +import BrowserWindow from '@site/src/components/BrowserWindow'; |
| 9 | +import IframeWindow from '@site/src/components/BrowserWindow/IframeWindow'; |
| 10 | + |
| 11 | +# Placeholder |
| 12 | + |
| 13 | +## Tabs |
| 14 | + |
| 15 | +[Documentation](https://docusaurus.io/docs/markdown-features/tabs) |
| 16 | + |
| 17 | +<Tabs> |
| 18 | + <TabItem value="apple" label="Apple" default> |
| 19 | + This is an apple 🍎 |
| 20 | + </TabItem> |
| 21 | + <TabItem value="orange" label="Orange"> |
| 22 | + This is an orange 🍊 |
| 23 | + </TabItem> |
| 24 | + <TabItem value="banana" label="Banana"> |
| 25 | + This is a banana 🍌 |
| 26 | + </TabItem> |
| 27 | +</Tabs> |
| 28 | + |
| 29 | +## Code Block |
| 30 | + |
| 31 | +[Documentation](https://docusaurus.io/docs/markdown-features/code-blocks) |
| 32 | + |
| 33 | +### Simple |
| 34 | + |
| 35 | +```ts title="example.ts" |
| 36 | +function add(a: number, b: number): number { |
| 37 | + return a + b; |
| 38 | +} |
| 39 | +``` |
| 40 | + |
| 41 | +And here is some inline code: `const x = 10;` |
| 42 | + |
| 43 | +### With line numbers |
| 44 | + |
| 45 | +```ts title="example.ts" showLineNumbers |
| 46 | +function add(a: number, b: number): number { |
| 47 | + return a + b; |
| 48 | +} |
| 49 | +``` |
| 50 | + |
| 51 | +### With highlighted lines |
| 52 | + |
| 53 | +#### Highlight line |
| 54 | + |
| 55 | +```ts title="example.ts" |
| 56 | +function add(a: number, b: number): number { |
| 57 | + // highlight-next-line |
| 58 | + return a + b; |
| 59 | +} |
| 60 | +``` |
| 61 | + |
| 62 | +#### Highligh error line |
| 63 | + |
| 64 | +```ts title="example.ts" |
| 65 | +function divide(a: number, b: number): number { |
| 66 | + // code-block-error-line |
| 67 | + return a / b; |
| 68 | +} |
| 69 | +``` |
| 70 | + |
| 71 | +## Admonitions |
| 72 | + |
| 73 | +[Documentation](https://docusaurus.io/docs/markdown-features/admonitions) |
| 74 | + |
| 75 | +:::note |
| 76 | + |
| 77 | +Some **content** with _Markdown_ `syntax`. Check [this `api`](#). |
| 78 | + |
| 79 | +::: |
| 80 | + |
| 81 | +:::tip |
| 82 | + |
| 83 | +Some **content** with _Markdown_ `syntax`. Check [this `api`](#). |
| 84 | + |
| 85 | +::: |
| 86 | + |
| 87 | +:::info |
| 88 | + |
| 89 | +Some **content** with _Markdown_ `syntax`. Check [this `api`](#). |
| 90 | + |
| 91 | +::: |
| 92 | + |
| 93 | +:::warning |
| 94 | + |
| 95 | +Some **content** with _Markdown_ `syntax`. Check [this `api`](#). |
| 96 | + |
| 97 | +::: |
| 98 | + |
| 99 | +:::danger |
| 100 | + |
| 101 | +Some **content** with _Markdown_ `syntax`. Check [this `api`](#). |
| 102 | + |
| 103 | +::: |
| 104 | + |
| 105 | +### Nested admonitions |
| 106 | + |
| 107 | +:::::info[Parent] |
| 108 | + |
| 109 | +Parent content |
| 110 | + |
| 111 | +::::danger[Child] |
| 112 | + |
| 113 | +Child content |
| 114 | + |
| 115 | +:::tip[Deep Child] |
| 116 | + |
| 117 | +Deep child content |
| 118 | + |
| 119 | +::: |
| 120 | + |
| 121 | +:::: |
| 122 | + |
| 123 | +::::: |
| 124 | + |
| 125 | +#### Admonitions with MDX |
| 126 | + |
| 127 | +:::tip[Use tabs in admonitions] |
| 128 | + |
| 129 | +<Tabs> |
| 130 | + <TabItem value="apple" label="Apple">This is an apple 🍎</TabItem> |
| 131 | + <TabItem value="orange" label="Orange">This is an orange 🍊</TabItem> |
| 132 | + <TabItem value="banana" label="Banana">This is a banana 🍌</TabItem> |
| 133 | +</Tabs> |
| 134 | + |
| 135 | +::: |
| 136 | + |
| 137 | +## Headings |
| 138 | + |
| 139 | +[Documentation](https://docusaurus.io/docs/markdown-features/headings) |
| 140 | + |
| 141 | +### H3 Lorem ipsum |
| 142 | + |
| 143 | +#### H4 Dolor sit amet |
| 144 | + |
| 145 | +##### H5 Consectetur |
| 146 | + |
| 147 | +###### H6 Sed do eiusmod |
| 148 | + |
| 149 | +### Table of contents |
| 150 | + |
| 151 | +<TOCInline |
| 152 | + toc={toc.filter((node) => node.level === 2 || node.level === 4)} |
| 153 | + minHeadingLevel={2} |
| 154 | + maxHeadingLevel={4} |
| 155 | +/> |
| 156 | + |
| 157 | +## Details |
| 158 | + |
| 159 | +[Documentation](https://docusaurus.io/docs/markdown-features#details) |
| 160 | + |
| 161 | +<summary>Click to expand</summary> |
| 162 | +<details> |
| 163 | +This content is hidden by default. |
| 164 | +</details> |
| 165 | + |
| 166 | +## Table |
| 167 | + |
| 168 | +| Syntax | Description | Test | |
| 169 | +| ----------- | ----------- | ---- | |
| 170 | +| Header | Title | Here's this | |
| 171 | +| Paragraph | Text | And more | |
| 172 | +| Multiline | Text | And more | |
| 173 | +| With breaks | Text | And more | |
| 174 | + |
| 175 | +### Browser |
| 176 | + |
| 177 | +### Browser Window |
| 178 | + |
| 179 | +<BrowserWindow url="https://lttle.cloud/"> |
| 180 | + |
| 181 | +Hello world |
| 182 | + |
| 183 | +</BrowserWindow> |
| 184 | + |
| 185 | +### IframeWindow |
| 186 | + |
| 187 | +<IframeWindow url="https://lttle.cloud/" /> |
0 commit comments