@mgks/docmd 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/package.json +28 -24
- package/src/templates/layout.ejs +16 -6
- package/src/templates/no-style.ejs +5 -1
- package/src/templates/partials/theme-init.js +20 -16
- package/src/templates/toc.ejs +1 -1
- package/.gitattributes +0 -2
- package/.github/CODE_OF_CONDUCT.md +0 -48
- package/.github/CONTRIBUTING.md +0 -129
- package/.github/FUNDING.yml +0 -15
- package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -58
- package/.github/ISSUE_TEMPLATE/feature_request.yml +0 -27
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -16
- package/.github/SECURITY.md +0 -18
- package/.github/workflows/deploy-docmd.yml +0 -45
- package/.github/workflows/npm-publish.yml +0 -49
- package/assets/css/welcome.css +0 -6
- package/assets/images/preview-dark-1.webp +0 -0
- package/assets/images/preview-dark-2.webp +0 -0
- package/assets/images/preview-dark-3.webp +0 -0
- package/assets/images/preview-dark-welcome.png +0 -0
- package/assets/images/preview-light-1.webp +0 -0
- package/assets/images/preview-light-2.webp +0 -0
- package/assets/images/preview-light-3.webp +0 -0
- package/docs/cli-commands.md +0 -108
- package/docs/comparison.md +0 -56
- package/docs/configuration.md +0 -289
- package/docs/content/containers/buttons.md +0 -88
- package/docs/content/containers/callouts.md +0 -154
- package/docs/content/containers/cards.md +0 -93
- package/docs/content/containers/changelogs.md +0 -128
- package/docs/content/containers/collapsible.md +0 -89
- package/docs/content/containers/index.md +0 -35
- package/docs/content/containers/nested-containers.md +0 -329
- package/docs/content/containers/steps.md +0 -175
- package/docs/content/containers/tabs.md +0 -228
- package/docs/content/custom-containers.md +0 -24
- package/docs/content/frontmatter.md +0 -84
- package/docs/content/images.md +0 -205
- package/docs/content/index.md +0 -19
- package/docs/content/markdown-syntax.md +0 -309
- package/docs/content/mermaid.md +0 -723
- package/docs/content/no-style-example.md +0 -112
- package/docs/content/no-style-pages.md +0 -226
- package/docs/content/search.md +0 -68
- package/docs/contributing.md +0 -101
- package/docs/deployment.md +0 -120
- package/docs/getting-started/basic-usage.md +0 -89
- package/docs/getting-started/index.md +0 -21
- package/docs/getting-started/installation.md +0 -75
- package/docs/index.md +0 -168
- package/docs/overview.md +0 -63
- package/docs/plugins/analytics.md +0 -75
- package/docs/plugins/index.md +0 -70
- package/docs/plugins/seo.md +0 -127
- package/docs/plugins/sitemap.md +0 -87
- package/docs/recipes/custom-fonts.md +0 -43
- package/docs/recipes/favicon.md +0 -38
- package/docs/recipes/index.md +0 -12
- package/docs/recipes/landing-page.md +0 -46
- package/docs/theming/assets-management.md +0 -126
- package/docs/theming/available-themes.md +0 -77
- package/docs/theming/custom-css-js.md +0 -79
- package/docs/theming/icons.md +0 -92
- package/docs/theming/index.md +0 -19
- package/docs/theming/light-dark-mode.md +0 -114
- package/src/assets/css/docmd-highlight-dark.css +0 -1
- package/src/assets/css/docmd-highlight-light.css +0 -1
- package/src/assets/css/docmd-main.css +0 -1608
- package/src/assets/css/docmd-theme-retro.css +0 -868
- package/src/assets/css/docmd-theme-ruby.css +0 -629
- package/src/assets/css/docmd-theme-sky.css +0 -618
- package/src/assets/favicon.ico +0 -0
- package/src/assets/images/docmd-logo-dark.png +0 -0
- package/src/assets/images/docmd-logo-light.png +0 -0
- package/src/assets/images/docmd-logo.png +0 -0
- package/src/assets/images/docmd-preview.png +0 -0
- package/src/assets/js/docmd-image-lightbox.js +0 -74
- package/src/assets/js/docmd-main.js +0 -249
- package/src/assets/js/docmd-mermaid.js +0 -205
- package/src/assets/js/docmd-search.js +0 -218
|
@@ -1,329 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "Nested Containers"
|
|
3
|
-
description: "Learn how to use the advanced nested container system to create complex, interactive documentation layouts with seamless container nesting."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Nested Containers
|
|
7
|
-
|
|
8
|
-
The advanced nested container system in docmd allows you to create complex, interactive documentation layouts by nesting containers within each other. This powerful feature enables you to build rich, structured content that was previously impossible.
|
|
9
|
-
|
|
10
|
-
## Overview
|
|
11
|
-
|
|
12
|
-
With docmd v0.2.0, you can nest containers seamlessly:
|
|
13
|
-
|
|
14
|
-
- **Cards within Tabs** - Organize content into structured sections within tabs
|
|
15
|
-
- **Callouts within Cards** - Add informational content within structured cards
|
|
16
|
-
- **Buttons within Any Container** - Place action buttons in any context
|
|
17
|
-
- **Multiple Levels of Nesting** - Support for complex nested structures up to 7+ levels
|
|
18
|
-
- **Steps for Simple Sequences** - Use steps containers for straightforward, sequential instructions
|
|
19
|
-
|
|
20
|
-
## Container Nesting Rules
|
|
21
|
-
|
|
22
|
-
### Supported Nesting Combinations
|
|
23
|
-
|
|
24
|
-
| Container | Can Nest Inside | Can Contain |
|
|
25
|
-
|-----------|----------------|-------------|
|
|
26
|
-
| **Callouts** | Any container | Any container |
|
|
27
|
-
| **Cards** | Any container | Any container |
|
|
28
|
-
| **Buttons** | Any container | None (self-closing) |
|
|
29
|
-
| **Steps** | Any container (except tabs) | Any container (except tabs) |
|
|
30
|
-
| **Tabs** | Any container (except steps) | Any container (except tabs, steps) |
|
|
31
|
-
|
|
32
|
-
### Nesting Best Practices
|
|
33
|
-
|
|
34
|
-
1. **Logical Structure** - Nest containers in a way that makes logical sense
|
|
35
|
-
2. **Readability** - Don't nest too deeply (3-4 levels maximum for readability)
|
|
36
|
-
3. **Performance** - Complex nesting is supported but keep it reasonable
|
|
37
|
-
4. **Content Organization** - Use nesting to organize related content
|
|
38
|
-
5. **Use the Right Tool** - Use steps for simple sequences, cards/tabs for complex content
|
|
39
|
-
|
|
40
|
-
### Nesting Limitations
|
|
41
|
-
|
|
42
|
-
::: callout error Known Issues
|
|
43
|
-
**Steps ↔ Tabs Incompatibility:** Steps and tabs containers cannot be nested within each other due to parsing complexity. Use them as separate sections instead.
|
|
44
|
-
:::
|
|
45
|
-
|
|
46
|
-
- **Tabs cannot contain tabs** - This prevents infinite recursion
|
|
47
|
-
- **Tabs cannot contain steps** - Due to parsing conflicts with markdown processing
|
|
48
|
-
- **Steps cannot contain tabs** - Due to parsing complexity
|
|
49
|
-
- **Steps cannot be inside tabs** - Due to container recognition issues
|
|
50
|
-
- **Maximum depth** - While technically unlimited, keep it under 7 levels for readability
|
|
51
|
-
- **Performance** - Very deep nesting may impact rendering performance
|
|
52
|
-
|
|
53
|
-
## Basic Nesting Examples
|
|
54
|
-
|
|
55
|
-
### Cards with Nested Content
|
|
56
|
-
|
|
57
|
-
```bash
|
|
58
|
-
::: card Installation Guide
|
|
59
|
-
|
|
60
|
-
Here's how to install the application:
|
|
61
|
-
|
|
62
|
-
::: callout tip Pro Tip
|
|
63
|
-
Make sure to download the correct version for your platform.
|
|
64
|
-
:::
|
|
65
|
-
|
|
66
|
-
::: button Download_Now /downloads
|
|
67
|
-
|
|
68
|
-
:::
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
::: card Installation Guide
|
|
72
|
-
|
|
73
|
-
Here's how to install the application:
|
|
74
|
-
|
|
75
|
-
::: callout tip Pro Tip
|
|
76
|
-
Make sure to download the correct version for your platform.
|
|
77
|
-
:::
|
|
78
|
-
|
|
79
|
-
::: button Download_Now /downloads
|
|
80
|
-
|
|
81
|
-
:::
|
|
82
|
-
|
|
83
|
-
### Tabs with Nested Content
|
|
84
|
-
|
|
85
|
-
```bash
|
|
86
|
-
::: tabs
|
|
87
|
-
|
|
88
|
-
== tab "Windows"
|
|
89
|
-
Download the Windows installer (.exe) file.
|
|
90
|
-
|
|
91
|
-
::: callout tip
|
|
92
|
-
Make sure to run as administrator for best results.
|
|
93
|
-
:::
|
|
94
|
-
|
|
95
|
-
::: button Download_Windows /downloads/windows
|
|
96
|
-
|
|
97
|
-
== tab "macOS"
|
|
98
|
-
Download the macOS package (.pkg) file.
|
|
99
|
-
|
|
100
|
-
::: callout warning
|
|
101
|
-
You may need to allow the app in Security & Privacy settings.
|
|
102
|
-
:::
|
|
103
|
-
|
|
104
|
-
::: button Download_macOS /downloads/macos
|
|
105
|
-
|
|
106
|
-
== tab "Linux"
|
|
107
|
-
Download the Linux tarball (.tar.gz) file.
|
|
108
|
-
|
|
109
|
-
::: button Download_Linux /downloads/linux
|
|
110
|
-
|
|
111
|
-
:::
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
::: tabs
|
|
115
|
-
|
|
116
|
-
== tab "Windows"
|
|
117
|
-
Download the Windows installer (.exe) file.
|
|
118
|
-
|
|
119
|
-
::: callout tip
|
|
120
|
-
Make sure to run as administrator for best results.
|
|
121
|
-
:::
|
|
122
|
-
|
|
123
|
-
::: button Download_Windows /downloads/windows
|
|
124
|
-
|
|
125
|
-
== tab "macOS"
|
|
126
|
-
Download the macOS package (.pkg) file.
|
|
127
|
-
|
|
128
|
-
::: callout warning
|
|
129
|
-
You may need to allow the app in Security & Privacy settings.
|
|
130
|
-
:::
|
|
131
|
-
|
|
132
|
-
::: button Download_macOS /downloads/macos
|
|
133
|
-
|
|
134
|
-
== tab "Linux"
|
|
135
|
-
Download the Linux tarball (.tar.gz) file.
|
|
136
|
-
|
|
137
|
-
::: button Download_Linux /downloads/linux
|
|
138
|
-
|
|
139
|
-
:::
|
|
140
|
-
|
|
141
|
-
## Advanced Nesting Patterns
|
|
142
|
-
|
|
143
|
-
### Complex Nested Structure
|
|
144
|
-
|
|
145
|
-
````bash
|
|
146
|
-
::: card Installation Guide
|
|
147
|
-
|
|
148
|
-
**Download**
|
|
149
|
-
Get the latest version for your platform.
|
|
150
|
-
|
|
151
|
-
::: button Download_Now /downloads
|
|
152
|
-
|
|
153
|
-
**Install**
|
|
154
|
-
Run the installer and follow the prompts.
|
|
155
|
-
|
|
156
|
-
```bash
|
|
157
|
-
install docmd
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
**Configure**
|
|
161
|
-
Set up your preferences.
|
|
162
|
-
|
|
163
|
-
::: callout warning Important
|
|
164
|
-
Don't forget to configure your settings!
|
|
165
|
-
:::
|
|
166
|
-
|
|
167
|
-
:::
|
|
168
|
-
````
|
|
169
|
-
|
|
170
|
-
::: card Installation Guide
|
|
171
|
-
|
|
172
|
-
**Download**
|
|
173
|
-
Get the latest version for your platform.
|
|
174
|
-
|
|
175
|
-
::: button Download_Now /downloads
|
|
176
|
-
|
|
177
|
-
**Install**
|
|
178
|
-
Run the installer and follow the prompts.
|
|
179
|
-
|
|
180
|
-
```bash
|
|
181
|
-
install docmd
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
**Configure**
|
|
185
|
-
Set up your preferences.
|
|
186
|
-
|
|
187
|
-
::: callout warning Important
|
|
188
|
-
Don't forget to configure your settings!
|
|
189
|
-
:::
|
|
190
|
-
|
|
191
|
-
:::
|
|
192
|
-
|
|
193
|
-
### Cards with Multiple Nested Elements
|
|
194
|
-
|
|
195
|
-
```markdown
|
|
196
|
-
::: card API Reference
|
|
197
|
-
|
|
198
|
-
::: callout info API Key Required
|
|
199
|
-
All API requests require a valid API key.
|
|
200
|
-
:::
|
|
201
|
-
|
|
202
|
-
**Setup Steps**
|
|
203
|
-
|
|
204
|
-
1. Get your API key from the dashboard
|
|
205
|
-
2. Include it in your request headers
|
|
206
|
-
3. Test your connection
|
|
207
|
-
|
|
208
|
-
::: button Test_API /api/test
|
|
209
|
-
|
|
210
|
-
:::
|
|
211
|
-
```
|
|
212
|
-
|
|
213
|
-
::: card API Reference
|
|
214
|
-
|
|
215
|
-
::: callout info API Key Required
|
|
216
|
-
All API requests require a valid API key.
|
|
217
|
-
:::
|
|
218
|
-
|
|
219
|
-
**Setup Steps**
|
|
220
|
-
|
|
221
|
-
1. Get your API key from the dashboard
|
|
222
|
-
2. Include it in your request headers
|
|
223
|
-
3. Test your connection
|
|
224
|
-
|
|
225
|
-
::: button Test_API /api/test
|
|
226
|
-
|
|
227
|
-
:::
|
|
228
|
-
|
|
229
|
-
## Steps Container
|
|
230
|
-
|
|
231
|
-
Steps containers are designed for simple, sequential instructions and work well with other containers:
|
|
232
|
-
|
|
233
|
-
```bash
|
|
234
|
-
::: steps
|
|
235
|
-
|
|
236
|
-
1. **Download the Application**
|
|
237
|
-
Get the latest version from our download page.
|
|
238
|
-
|
|
239
|
-
::: button Download_Now /downloads
|
|
240
|
-
|
|
241
|
-
2. **Install the Application**
|
|
242
|
-
Run the installer and follow the setup wizard.
|
|
243
|
-
|
|
244
|
-
::: callout tip Pro Tip
|
|
245
|
-
Check our system requirements page for detailed information.
|
|
246
|
-
:::
|
|
247
|
-
|
|
248
|
-
3. **Configure Settings**
|
|
249
|
-
Set up your preferences and start using the app.
|
|
250
|
-
|
|
251
|
-
::: card Configuration
|
|
252
|
-
- Choose your theme
|
|
253
|
-
- Set up notifications
|
|
254
|
-
- Configure integrations
|
|
255
|
-
:::
|
|
256
|
-
|
|
257
|
-
:::
|
|
258
|
-
```
|
|
259
|
-
|
|
260
|
-
::: steps
|
|
261
|
-
|
|
262
|
-
1. **Download the Application**
|
|
263
|
-
Get the latest version from our download page.
|
|
264
|
-
|
|
265
|
-
::: button Download_Now /downloads
|
|
266
|
-
|
|
267
|
-
2. **Install the Application**
|
|
268
|
-
Run the installer and follow the setup wizard.
|
|
269
|
-
|
|
270
|
-
::: callout tip Pro Tip
|
|
271
|
-
Check our system requirements page for detailed information.
|
|
272
|
-
:::
|
|
273
|
-
|
|
274
|
-
3. **Configure Settings**
|
|
275
|
-
Set up your preferences and start using the app.
|
|
276
|
-
|
|
277
|
-
::: card Configuration
|
|
278
|
-
- Choose your theme
|
|
279
|
-
- Set up notifications
|
|
280
|
-
- Configure integrations
|
|
281
|
-
:::
|
|
282
|
-
|
|
283
|
-
:::
|
|
284
|
-
|
|
285
|
-
## Troubleshooting
|
|
286
|
-
|
|
287
|
-
### Common Issues
|
|
288
|
-
|
|
289
|
-
1. **Container not rendering** - Ensure proper spacing and syntax
|
|
290
|
-
2. **Nested content not showing** - Check for proper closing tags
|
|
291
|
-
3. **Performance issues** - Reduce nesting depth if experiencing slowdowns
|
|
292
|
-
|
|
293
|
-
### Debugging Tips
|
|
294
|
-
|
|
295
|
-
- **Check syntax** - Ensure all containers have proper opening and closing tags
|
|
296
|
-
- **Verify nesting** - Make sure containers are properly nested
|
|
297
|
-
- **Test incrementally** - Build complex structures step by step
|
|
298
|
-
- **Use browser dev tools** - Inspect the generated HTML for issues
|
|
299
|
-
- **Use the right container** - Steps for simple sequences, cards/tabs for complex content
|
|
300
|
-
|
|
301
|
-
## Migration from v0.1.x
|
|
302
|
-
|
|
303
|
-
### Breaking Changes
|
|
304
|
-
|
|
305
|
-
- **Container parsing** - The internal parsing system has been optimized for reliability
|
|
306
|
-
- **Nesting behavior** - Most containers support seamless nesting
|
|
307
|
-
|
|
308
|
-
### What's New
|
|
309
|
-
|
|
310
|
-
- **Enhanced nesting** - Cards, tabs, callouts, and buttons support seamless nesting
|
|
311
|
-
- **Better performance** - Improved parsing performance for complex structures
|
|
312
|
-
- **Clear limitations** - Well-defined boundaries for what each container can do
|
|
313
|
-
|
|
314
|
-
### Backward Compatibility
|
|
315
|
-
|
|
316
|
-
- **Existing syntax** - All existing container syntax remains the same
|
|
317
|
-
- **Enhanced functionality** - New nesting capabilities are additive for supported containers
|
|
318
|
-
|
|
319
|
-
## Future Container Types
|
|
320
|
-
|
|
321
|
-
The nested container system is designed to be easily extensible. Future container types that could be added include:
|
|
322
|
-
|
|
323
|
-
- **Timeline containers** - For chronological content
|
|
324
|
-
- **Changelog containers** - For version history
|
|
325
|
-
- **FAQ containers** - For question-answer content
|
|
326
|
-
- **Gallery containers** - For image collections
|
|
327
|
-
- **Code playground containers** - For interactive code examples
|
|
328
|
-
|
|
329
|
-
The architecture supports adding new containers by simply defining them in the containers object and implementing their render functions.
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "Steps Container"
|
|
3
|
-
description: "Create step-by-step instructions and tutorials with the steps container."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Steps Container
|
|
7
|
-
|
|
8
|
-
The steps container allows you to create clear, sequential instructions and tutorials. It automatically numbers your steps and provides a clean, organized layout.
|
|
9
|
-
|
|
10
|
-
## Basic Usage
|
|
11
|
-
|
|
12
|
-
**Code:**
|
|
13
|
-
|
|
14
|
-
```markdown
|
|
15
|
-
::: steps
|
|
16
|
-
|
|
17
|
-
1. **Create a new project**
|
|
18
|
-
Initialize your project with the necessary configuration files.
|
|
19
|
-
|
|
20
|
-
2. **Install dependencies**
|
|
21
|
-
Run the package manager to install required libraries.
|
|
22
|
-
|
|
23
|
-
3. **Start development**
|
|
24
|
-
Begin coding your application with the setup complete.
|
|
25
|
-
|
|
26
|
-
::: button Learn_More #customization color:green
|
|
27
|
-
|
|
28
|
-
:::
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
**Rendered Preview:**
|
|
32
|
-
|
|
33
|
-
::: steps
|
|
34
|
-
|
|
35
|
-
1. **Create a new project**
|
|
36
|
-
Initialize your project with the necessary configuration files.
|
|
37
|
-
|
|
38
|
-
2. **Install dependencies**
|
|
39
|
-
Run the package manager to install required libraries.
|
|
40
|
-
|
|
41
|
-
3. **Start development**
|
|
42
|
-
Begin coding your application with the setup complete.
|
|
43
|
-
|
|
44
|
-
::: button Learn_More #customization color:green
|
|
45
|
-
|
|
46
|
-
:::
|
|
47
|
-
|
|
48
|
-
## Steps with Nested Containers
|
|
49
|
-
|
|
50
|
-
You can include cards, callouts, and buttons inside steps for richer content:
|
|
51
|
-
|
|
52
|
-
**Code:**
|
|
53
|
-
|
|
54
|
-
```markdown
|
|
55
|
-
::: steps
|
|
56
|
-
|
|
57
|
-
1. **Plan Your Project**
|
|
58
|
-
Define the scope and requirements for your application.
|
|
59
|
-
|
|
60
|
-
::: callout info Planning Tip
|
|
61
|
-
Consider creating user stories to better understand your requirements.
|
|
62
|
-
:::
|
|
63
|
-
|
|
64
|
-
2. **Setup Development Environment**
|
|
65
|
-
Configure your local development tools and workspace.
|
|
66
|
-
|
|
67
|
-
::: card Environment Checklist
|
|
68
|
-
- Install code editor (VS Code recommended)
|
|
69
|
-
- Setup version control (Git)
|
|
70
|
-
- Install Node.js and npm
|
|
71
|
-
- Configure linting and formatting tools
|
|
72
|
-
:::
|
|
73
|
-
|
|
74
|
-
3. **Initialize Project**
|
|
75
|
-
Create the project structure and configuration files.
|
|
76
|
-
|
|
77
|
-
::: button Create_Project external:https://github.com/new color:#2564e4
|
|
78
|
-
|
|
79
|
-
4. **Start Coding**
|
|
80
|
-
Begin implementing your application features.
|
|
81
|
-
|
|
82
|
-
::: callout success Ready to Code
|
|
83
|
-
Your development environment is now ready! Happy coding!
|
|
84
|
-
:::
|
|
85
|
-
|
|
86
|
-
:::
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
**Rendered Preview:**
|
|
90
|
-
|
|
91
|
-
::: steps
|
|
92
|
-
|
|
93
|
-
1. **Plan Your Project**
|
|
94
|
-
Define the scope and requirements for your application.
|
|
95
|
-
|
|
96
|
-
::: callout info Planning Tip
|
|
97
|
-
Consider creating user stories to better understand your requirements.
|
|
98
|
-
:::
|
|
99
|
-
|
|
100
|
-
2. **Setup Development Environment**
|
|
101
|
-
Configure your local development tools and workspace.
|
|
102
|
-
|
|
103
|
-
::: card Environment Checklist
|
|
104
|
-
- Install code editor (VS Code recommended)
|
|
105
|
-
- Setup version control (Git)
|
|
106
|
-
- Install Node.js and npm
|
|
107
|
-
- Configure linting and formatting tools
|
|
108
|
-
:::
|
|
109
|
-
|
|
110
|
-
3. **Initialize Project**
|
|
111
|
-
Create the project structure and configuration files.
|
|
112
|
-
|
|
113
|
-
::: button Create_Project external:https://github.com/new color:#2564e4
|
|
114
|
-
|
|
115
|
-
4. **Start Coding**
|
|
116
|
-
Begin implementing your application features.
|
|
117
|
-
|
|
118
|
-
::: callout success Ready to Code
|
|
119
|
-
Your development environment is now ready! Happy coding!
|
|
120
|
-
:::
|
|
121
|
-
|
|
122
|
-
:::
|
|
123
|
-
|
|
124
|
-
## Steps and Tabs Compatibility
|
|
125
|
-
|
|
126
|
-
::: callout error Important Limitation
|
|
127
|
-
**Steps and tabs containers are incompatible** - they cannot be nested within each other due to markdown parsing conflicts. Use them as separate sections instead.
|
|
128
|
-
|
|
129
|
-
**Supported in steps:** Cards, callouts, buttons
|
|
130
|
-
**Not supported:** Tabs containers
|
|
131
|
-
:::
|
|
132
|
-
|
|
133
|
-
**Code:**
|
|
134
|
-
|
|
135
|
-
```markdown
|
|
136
|
-
## Installation Steps
|
|
137
|
-
|
|
138
|
-
::: steps
|
|
139
|
-
|
|
140
|
-
1. **Choose Your Platform**
|
|
141
|
-
Select the appropriate installation method for your operating system.
|
|
142
|
-
|
|
143
|
-
2. **Download the Installer**
|
|
144
|
-
Get the latest version from the downloads section.
|
|
145
|
-
|
|
146
|
-
3. **Run Installation**
|
|
147
|
-
Follow the setup wizard to complete installation.
|
|
148
|
-
|
|
149
|
-
:::
|
|
150
|
-
|
|
151
|
-
## Platform-Specific Instructions
|
|
152
|
-
|
|
153
|
-
::: tabs
|
|
154
|
-
== tab "Windows"
|
|
155
|
-
Download the `.exe` installer and run as administrator.
|
|
156
|
-
|
|
157
|
-
::: button Learn_More #customization
|
|
158
|
-
|
|
159
|
-
== tab "macOS"
|
|
160
|
-
Download the `.dmg` file and drag to Applications folder.
|
|
161
|
-
|
|
162
|
-
::: button Learn_More #customization
|
|
163
|
-
|
|
164
|
-
:::
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
## Customization
|
|
168
|
-
|
|
169
|
-
Steps containers automatically apply consistent styling and numbering. The container handles:
|
|
170
|
-
|
|
171
|
-
- **Automatic numbering** - Steps are numbered sequentially
|
|
172
|
-
- **Consistent spacing** - Proper spacing between steps
|
|
173
|
-
- **Responsive design** - Works on all screen sizes
|
|
174
|
-
- **Theme integration** - Matches your site's theme
|
|
175
|
-
- **Smart list handling** - Only step items get special styling, nested lists remain normal
|
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "Tabs Container"
|
|
3
|
-
description: "Create tabbed content sections with the tabs container for organizing related information."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Tabs Container
|
|
7
|
-
|
|
8
|
-
The tabs container allows you to organize content into multiple tabbed sections, making it easy to present related information in a clean, organized way.
|
|
9
|
-
|
|
10
|
-
## Basic Usage
|
|
11
|
-
|
|
12
|
-
```markdown
|
|
13
|
-
::: tabs
|
|
14
|
-
|
|
15
|
-
== tab "First Tab"
|
|
16
|
-
Content for the first tab goes here.
|
|
17
|
-
|
|
18
|
-
== tab "Second Tab"
|
|
19
|
-
Content for the second tab goes here.
|
|
20
|
-
|
|
21
|
-
== tab "Third Tab"
|
|
22
|
-
Content for the third tab goes here.
|
|
23
|
-
|
|
24
|
-
:::
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
::: tabs
|
|
28
|
-
|
|
29
|
-
== tab "First Tab"
|
|
30
|
-
Content for the first tab goes here.
|
|
31
|
-
|
|
32
|
-
== tab "Second Tab"
|
|
33
|
-
Content for the second tab goes here.
|
|
34
|
-
|
|
35
|
-
== tab "Third Tab"
|
|
36
|
-
Content for the third tab goes here.
|
|
37
|
-
|
|
38
|
-
:::
|
|
39
|
-
|
|
40
|
-
## Tabs with Nested Content
|
|
41
|
-
|
|
42
|
-
### Tabs with Buttons
|
|
43
|
-
|
|
44
|
-
```markdown
|
|
45
|
-
::: tabs
|
|
46
|
-
|
|
47
|
-
== tab "Download"
|
|
48
|
-
Get the latest version of our application.
|
|
49
|
-
|
|
50
|
-
::: button Download_Here external:https://github.com/mgks/docmd/releases
|
|
51
|
-
::: button Learn_More #advanced-tabs
|
|
52
|
-
::: button NPM_Package external:https://www.npmjs.com/package/@mgks/docmd
|
|
53
|
-
|
|
54
|
-
== tab "Documentation"
|
|
55
|
-
Read our comprehensive documentation.
|
|
56
|
-
|
|
57
|
-
::: button View_Getting_Started #basic-usage
|
|
58
|
-
::: button API_Reference external:https://github.com/mgks/docmd/wiki
|
|
59
|
-
::: button View_Examples #advanced-tabs
|
|
60
|
-
|
|
61
|
-
:::
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
::: tabs
|
|
65
|
-
|
|
66
|
-
== tab "Download"
|
|
67
|
-
Get the latest version of our application.
|
|
68
|
-
|
|
69
|
-
::: button Download_Here external:https://github.com/mgks/docmd/releases
|
|
70
|
-
::: button Learn_More #advanced-tabs
|
|
71
|
-
::: button NPM_Package external:https://www.npmjs.com/package/@mgks/docmd
|
|
72
|
-
|
|
73
|
-
== tab "Documentation"
|
|
74
|
-
Read our comprehensive documentation.
|
|
75
|
-
|
|
76
|
-
::: button View_Getting_Started #basic-usage
|
|
77
|
-
::: button API_Reference external:https://github.com/mgks/docmd/wiki
|
|
78
|
-
::: button View_Examples #advanced-tabs
|
|
79
|
-
|
|
80
|
-
:::
|
|
81
|
-
|
|
82
|
-
### Tabs with Callouts
|
|
83
|
-
|
|
84
|
-
```markdown
|
|
85
|
-
::: tabs
|
|
86
|
-
|
|
87
|
-
== tab "Getting Started"
|
|
88
|
-
Welcome to our platform!
|
|
89
|
-
|
|
90
|
-
::: callout info Welcome
|
|
91
|
-
This is your first time here. Let's get you started!
|
|
92
|
-
:::
|
|
93
|
-
|
|
94
|
-
::: callout tip Pro Tip
|
|
95
|
-
Check out our quick start guide for the fastest setup.
|
|
96
|
-
:::
|
|
97
|
-
|
|
98
|
-
== tab "Advanced Features"
|
|
99
|
-
Explore advanced functionality.
|
|
100
|
-
|
|
101
|
-
::: callout warning Important
|
|
102
|
-
Some features require additional configuration.
|
|
103
|
-
:::
|
|
104
|
-
|
|
105
|
-
::: callout success Ready
|
|
106
|
-
You're all set to explore advanced features!
|
|
107
|
-
:::
|
|
108
|
-
|
|
109
|
-
:::
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
::: tabs
|
|
113
|
-
|
|
114
|
-
== tab "Getting Started"
|
|
115
|
-
Welcome to our platform!
|
|
116
|
-
|
|
117
|
-
::: callout info Welcome
|
|
118
|
-
This is your first time here. Let's get you started!
|
|
119
|
-
:::
|
|
120
|
-
|
|
121
|
-
::: callout tip Pro Tip
|
|
122
|
-
Check out our quick start guide for the fastest setup.
|
|
123
|
-
:::
|
|
124
|
-
|
|
125
|
-
== tab "Advanced Features"
|
|
126
|
-
Explore advanced functionality.
|
|
127
|
-
|
|
128
|
-
::: callout warning Important
|
|
129
|
-
Some features require additional configuration.
|
|
130
|
-
:::
|
|
131
|
-
|
|
132
|
-
::: callout success Ready
|
|
133
|
-
You're all set to explore advanced features!
|
|
134
|
-
:::
|
|
135
|
-
|
|
136
|
-
:::
|
|
137
|
-
|
|
138
|
-
## Complex Nested Structure
|
|
139
|
-
|
|
140
|
-
````bash
|
|
141
|
-
::: tabs
|
|
142
|
-
|
|
143
|
-
== tab "Nested Card Example"
|
|
144
|
-
::: card Installation Guide
|
|
145
|
-
|
|
146
|
-
**Download**
|
|
147
|
-
Get the latest version for your platform.
|
|
148
|
-
|
|
149
|
-
::: button Get_Latest external:https://github.com/mgks/docmd/releases
|
|
150
|
-
|
|
151
|
-
**Install**
|
|
152
|
-
Run the installer and follow the prompts.
|
|
153
|
-
|
|
154
|
-
```bash
|
|
155
|
-
install docmd
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
:::
|
|
159
|
-
|
|
160
|
-
== tab "Callout Example"
|
|
161
|
-
|
|
162
|
-
**Configure**
|
|
163
|
-
Set up your preferences.
|
|
164
|
-
|
|
165
|
-
::: callout warning Configuration
|
|
166
|
-
Don't forget to configure your settings!
|
|
167
|
-
:::
|
|
168
|
-
|
|
169
|
-
:::
|
|
170
|
-
````
|
|
171
|
-
|
|
172
|
-
::: tabs
|
|
173
|
-
|
|
174
|
-
== tab "Nested Card Example"
|
|
175
|
-
::: card Installation Guide
|
|
176
|
-
|
|
177
|
-
**Download**
|
|
178
|
-
Get the latest version for your platform.
|
|
179
|
-
|
|
180
|
-
::: button Get_Latest external:https://github.com/mgks/docmd/releases
|
|
181
|
-
|
|
182
|
-
**Install**
|
|
183
|
-
Run the installer and follow the prompts.
|
|
184
|
-
|
|
185
|
-
```bash
|
|
186
|
-
install docmd
|
|
187
|
-
```
|
|
188
|
-
|
|
189
|
-
:::
|
|
190
|
-
|
|
191
|
-
== tab "Callout Example"
|
|
192
|
-
|
|
193
|
-
**Configure**
|
|
194
|
-
Set up your preferences.
|
|
195
|
-
|
|
196
|
-
::: callout warning Configuration
|
|
197
|
-
Don't forget to configure your settings!
|
|
198
|
-
:::
|
|
199
|
-
|
|
200
|
-
:::
|
|
201
|
-
|
|
202
|
-
## Customization
|
|
203
|
-
|
|
204
|
-
Tabs containers automatically handle:
|
|
205
|
-
|
|
206
|
-
- **Responsive design** - Works on all screen sizes
|
|
207
|
-
- **Theme integration** - Matches your site's theme
|
|
208
|
-
- **Accessibility** - Proper ARIA labels and keyboard navigation
|
|
209
|
-
- **Smooth transitions** - Elegant tab switching animations
|
|
210
|
-
|
|
211
|
-
## Best Practices
|
|
212
|
-
|
|
213
|
-
1. **Clear Labels** - Use descriptive tab names
|
|
214
|
-
2. **Consistent Content** - Keep similar content types in each tab
|
|
215
|
-
3. **Logical Order** - Arrange tabs in a logical sequence
|
|
216
|
-
4. **Not Too Many** - Limit to 5-7 tabs for best usability
|
|
217
|
-
5. **Mobile Friendly** - Consider mobile users when organizing content
|
|
218
|
-
|
|
219
|
-
## Nesting Limitations
|
|
220
|
-
|
|
221
|
-
::: callout error Important Limitation
|
|
222
|
-
**Steps containers cannot be used inside tabs** due to parsing conflicts. If you need step-by-step instructions within tabs, use regular numbered lists or consider restructuring your content.
|
|
223
|
-
:::
|
|
224
|
-
|
|
225
|
-
- **Tabs cannot contain tabs** - This prevents infinite recursion
|
|
226
|
-
- **Steps inside tabs not supported** - Use regular ordered lists instead
|
|
227
|
-
- **Maximum depth** - While technically unlimited, keep it under 7 levels for readability
|
|
228
|
-
- **Performance** - Very deep nesting may impact rendering performance
|