Skip to content

Commit e87f236

Browse files
committed
improve content
1 parent 522d4f9 commit e87f236

File tree

4 files changed

+278
-27
lines changed

4 files changed

+278
-27
lines changed

content/2.essentials/1.markdown-syntax.md

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ navigation.icon: i-lucide-heading-1
66

77
## Titles
88

9+
Use titles to introduce main sections. They structure your documentation and help users navigate content.
10+
911
::code-preview{class="[&>div]:*:my-0"}
1012

1113
## Titles
@@ -20,6 +22,8 @@ navigation.icon: i-lucide-heading-1
2022

2123
### Subtitles
2224

25+
Use subtitles to divide sections further. They create a more detailed content hierarchy for better readability.
26+
2327
::code-preview{class="[&>div]:*:my-0"}
2428

2529
### Subtitles
@@ -46,15 +50,15 @@ Nuxt UI Pro supports most Markdown formatting options.
4650
| Italic | `*italic*` | *Italic* |
4751
| Strike | `~~strike~~` | ~~Strike~~ |
4852

49-
You can also combine them:
53+
Combine formatting for richer text styles and visual emphasis.
5054

5155
| Style | How to use | Result |
5256
|---------------|---------------------|-------------------|
5357
| Bold Italic | `**_bold italic_**` | **_Bold Italic_** |
5458
| Bold Strike | `~~**bold**~~` | ~~**Bold**~~ |
5559
| Italic Strike | `~~*italic*~~` | ~~*Italic*~~ |
5660

57-
You need to use HTML to write superscript and subscript text. Add `sup` or `sub` around your text to create superscript or subscript.
61+
For exponents, indices, or mathematical notations, use HTML `<sup>` and `<sub>` tags.
5862

5963
| Style | How to use | Result |
6064
|-------------|--------------------------|------------------------|
@@ -63,6 +67,7 @@ You need to use HTML to write superscript and subscript text. Add `sup` or `sub`
6367

6468
## Links
6569

70+
Links connect different parts of your documentation and external resources, essential for user navigation and providing references.
6671
To create a link, wrap the link text in brackets `[]()`.
6772

6873
::code-preview{class="[&>div]:*:my-0"}
@@ -77,9 +82,9 @@ To create a link, wrap the link text in brackets `[]()`.
7782

7883
::
7984

80-
### Links to other pages
85+
### Internal links
8186

82-
Links to other pages of your documentation needs to be root-relative. For example, if you have a page called `getting-started/installation`, the link to that page should be `[Installation](/getting-started/installation)`.
87+
For linking within your documentation, use root-relative paths like `/getting-started/installation`.
8388

8489
::code-preview{class="[&>div]:*:my-0"}
8590

@@ -95,9 +100,11 @@ Links to other pages of your documentation needs to be root-relative. For exampl
95100

96101
## Lists
97102

103+
Organize related items in a structured, readable format. Markdown supports unordered, ordered, and nested lists for various content needs.
104+
98105
### Unordered
99106

100-
To create an unordered list, start each item with a `-`.
107+
Use unordered lists for items without a specific sequence. Start each item with a `-` symbol.
101108

102109
::code-preview{class="[&>div]:*:my-0"}
103110

@@ -117,7 +124,7 @@ To create an unordered list, start each item with a `-`.
117124

118125
### Ordered
119126

120-
To create an ordered list, start each item with a number.
127+
Use ordered lists when item order matters, like steps in a process. Start each item with a number.
121128

122129
::code-preview{class="[&>div]:*:my-0"}
123130

@@ -137,7 +144,7 @@ To create an ordered list, start each item with a number.
137144

138145
### Nested
139146

140-
To create a nested list, indent each item with four spaces.
147+
Create hierarchical lists with sub-items for complex structures. Indent sub-items by four spaces for nesting.
141148

142149
::code-preview{class="[&>div]:*:my-0"}
143150

@@ -159,7 +166,7 @@ To create a nested list, indent each item with four spaces.
159166

160167
## Tables
161168

162-
To create a table, use three or more hyphens (`---`) to separate each column.
169+
Present structured data in rows and columns clearly. Tables are ideal for comparing data or listing properties.
163170

164171
::code-preview{class="[&>div]:*:my-0 [&>div]:*:w-full"}
165172

@@ -183,9 +190,11 @@ To create a table, use three or more hyphens (`---`) to separate each column.
183190

184191
## Blockquotes
185192

193+
Highlight important quotations, citations, or emphasized text. Blockquotes visually distinguish quoted content.
194+
186195
### Singleline
187196

188-
To create a blockquote, add a `>` in front of a paragraph.
197+
Single-line blockquotes are best for short, impactful quotes or citations that fit within a single line. To create a single-line blockquote, add a `>` in front of a paragraph. Ideal for short and impactful quotes.
189198

190199
::code-preview{class="[&>div]:*:my-0"}
191200

@@ -201,6 +210,8 @@ To create a blockquote, add a `>` in front of a paragraph.
201210

202211
### Multiline
203212

213+
Multi-line blockquotes are suitable for longer quotes or when you need to include multiple paragraphs within a single quotation.
214+
204215
::code-preview{class="[&>div]:*:my-0"}
205216

206217
> Nuxt UI Pro is a collection of Vue components, composables and utils built on top of Nuxt UI, oriented on structure and layout and designed to be used as building blocks for your app.

content/2.essentials/2.code-blocks.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ navigation.icon: i-lucide-code-xml
88

99
### Inline Code
1010

11-
To display a word or phrase as code, enclose it in backticks (\`).
11+
Use inline code to display code snippets within text paragraphs. It's ideal for referencing code elements directly in sentences.
1212

1313
::code-preview{class="[&>div]:*:my-0"}
1414

@@ -24,7 +24,7 @@ To display a word or phrase as code, enclose it in backticks (\`).
2424

2525
### Code Blocks
2626

27-
To display a block of code, with syntax highlighting, use three backticks (\`\`\`).
27+
Use code blocks to display multi-line code snippets with syntax highlighting. Code blocks are essential for presenting code examples clearly.
2828

2929
::code-preview{class="[&>div]:*:my-0 [&>div]:*:w-full"}
3030

@@ -47,6 +47,7 @@ export default defineNuxtConfig({
4747
::
4848

4949
When writing a code-block, you can specify a filename that will be displayed on top of the code block. An icon will be automatically displayed based on the extension or the name.
50+
Filenames help users understand the code's location and purpose within a project.
5051

5152
::code-preview{class="[&>div]:*:my-0 [&>div]:*:w-full"}
5253

@@ -106,6 +107,7 @@ export default defineAppConfig({
106107
#### Highlight Line
107108

108109
To highlight lines of code, add `{}` around the line numbers you want to highlight.
110+
Line highlighting is useful for focusing users on important parts of code examples.
109111

110112
::code-preview{class="[&>div]:*:my-0 [&>div]:*:w-full"}
111113

@@ -142,7 +144,7 @@ export default defineAppConfig({
142144

143145
### CodeGroup
144146

145-
Wrap your code-blocks around a `code-group` component to group them together in a tabbed interface.
147+
Group code blocks in tabs using `code-group`. `code-group` is perfect for showing code examples in multiple languages or package managers.
146148

147149
::code-preview{class="[&>div]:*:my-0 [&>div]:*:w-full"}
148150

@@ -198,7 +200,7 @@ Like the `ProsePre` component, the `CodeGroup` handles filenames, icons and copy
198200

199201
### CodeTree
200202

201-
Wrap your code-blocks with a `code-tree` component in any particular order to display a tree view of your files.
203+
Display code blocks in a file tree view using `code-tree`. `code-tree` is excellent for showcasing project structures and file relationships.
202204

203205
::code-preview{class="[&>div]:*:my-0 [&>div]:*:w-full"}
204206

@@ -362,7 +364,8 @@ Learn more about the `code-tree` component.
362364

363365
### `CodePreview`
364366

365-
To display a code block with he's preview, use the `code-preview` component. Write the code to be previewed in a the `default` slot and the actual code in the `code` slot.
367+
Use `code-preview` to show code output alongside the code. `code-preview` is ideal for interactive examples and demonstrating code results.
368+
Write the code to be previewed in a the `default` slot and the actual code in the `code` slot.
366369

367370
::code-preview{class="[&>div]:*:my-0 [&>div]:*:w-full" label="Preview"}
368371

@@ -394,7 +397,7 @@ To display a code block with he's preview, use the `code-preview` component. Wri
394397

395398
### `CodeCollapse`
396399

397-
Use the `code-collapse` component to display a long code block in a collapsible format.
400+
Use `code-collapse` for long code blocks to keep pages clean. `code-collapse` allows users to expand code blocks only when needed, improving readability.
398401

399402
::code-preview{class="[&>div]:*:my-0 [&>div]:*:w-full"}
400403

0 commit comments

Comments
 (0)