@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,154 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "Container: Callouts"
|
|
3
|
-
description: "How to use callouts to highlight important information, warnings, tips, or notes in your documentation."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Callouts
|
|
7
|
-
|
|
8
|
-
Callouts are perfect for drawing the user's attention to a specific piece of information. They are visually distinct from the regular text and are ideal for tips, warnings, and important notes.
|
|
9
|
-
|
|
10
|
-
## Usage
|
|
11
|
-
|
|
12
|
-
The basic syntax uses the `callout` container name, followed by the callout type.
|
|
13
|
-
|
|
14
|
-
::: callout info
|
|
15
|
-
Container blocks (like `::: callout`) should be preceded by a blank line to ensure proper parsing by the markdown processor.
|
|
16
|
-
:::
|
|
17
|
-
|
|
18
|
-
**Syntax:**
|
|
19
|
-
```markdown
|
|
20
|
-
::: callout type
|
|
21
|
-
The main content of the callout.
|
|
22
|
-
:::
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
**With Custom Title:**
|
|
26
|
-
```markdown
|
|
27
|
-
::: callout type Custom Title Here
|
|
28
|
-
The main content of the callout.
|
|
29
|
-
:::
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
**Parameters:**
|
|
33
|
-
* `type`: The type determines the color and styling of the callout. Available types are: `info`, `tip`, `warning`, `danger`, `success`.
|
|
34
|
-
* `Custom Title Here` (optional): Any text following the type becomes the callout title.
|
|
35
|
-
|
|
36
|
-
::: callout info Auto Emojis
|
|
37
|
-
Some themes (like Sky) automatically add emojis to callout titles: ℹ️ for info, ⚠️ for warning, 💡 for tip, 🚨 for danger, and ✅ for success.
|
|
38
|
-
:::
|
|
39
|
-
|
|
40
|
-
---
|
|
41
|
-
|
|
42
|
-
## Examples
|
|
43
|
-
|
|
44
|
-
### Info
|
|
45
|
-
|
|
46
|
-
Use the `info` type for general notes or neutral supplementary details.
|
|
47
|
-
|
|
48
|
-
**Code:**
|
|
49
|
-
```markdown
|
|
50
|
-
::: callout info
|
|
51
|
-
This is an informational message. It's great for providing context or background information that is helpful but not critical.
|
|
52
|
-
:::
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
**Rendered Preview:**
|
|
56
|
-
::: callout info
|
|
57
|
-
This is an informational message. It's great for providing context or background information that is helpful but not critical.
|
|
58
|
-
:::
|
|
59
|
-
|
|
60
|
-
**With Custom Title:**
|
|
61
|
-
```markdown
|
|
62
|
-
::: callout info Quick Reference
|
|
63
|
-
This callout has a custom title that appears prominently at the top.
|
|
64
|
-
:::
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
**Rendered Preview:**
|
|
68
|
-
::: callout info Quick Reference
|
|
69
|
-
This callout has a custom title that appears prominently at the top.
|
|
70
|
-
:::
|
|
71
|
-
|
|
72
|
-
### Tip
|
|
73
|
-
|
|
74
|
-
Use the `tip` type for helpful tips, best practices, or suggestions.
|
|
75
|
-
|
|
76
|
-
**Code:**
|
|
77
|
-
```markdown
|
|
78
|
-
::: callout tip
|
|
79
|
-
Here's a helpful tip to improve your workflow. Using this shortcut can save you a lot of time!
|
|
80
|
-
:::
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
**Rendered Preview:**
|
|
84
|
-
::: callout tip
|
|
85
|
-
Here's a helpful tip to improve your workflow. Using this shortcut can save you a lot of time!
|
|
86
|
-
:::
|
|
87
|
-
|
|
88
|
-
**With Custom Title:**
|
|
89
|
-
```markdown
|
|
90
|
-
::: callout tip Pro Tip
|
|
91
|
-
Custom titles help organize your callouts and make them more scannable for readers.
|
|
92
|
-
:::
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
**Rendered Preview:**
|
|
96
|
-
::: callout tip Pro Tip
|
|
97
|
-
Custom titles help organize your callouts and make them more scannable for readers.
|
|
98
|
-
:::
|
|
99
|
-
|
|
100
|
-
### Warning
|
|
101
|
-
|
|
102
|
-
Use the `warning` type to indicate something that requires caution or might lead to unexpected results.
|
|
103
|
-
|
|
104
|
-
**Code:**
|
|
105
|
-
```markdown
|
|
106
|
-
::: callout warning
|
|
107
|
-
**Heads up!** Changing this setting can have unintended side effects. Please make sure you understand the consequences before proceeding.
|
|
108
|
-
:::
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
**Rendered Preview:**
|
|
112
|
-
::: callout warning
|
|
113
|
-
**Heads up!** Changing this setting can have unintended side effects. Please make sure you understand the consequences before proceeding.
|
|
114
|
-
:::
|
|
115
|
-
|
|
116
|
-
### Danger
|
|
117
|
-
|
|
118
|
-
Use the `danger` type for critical information, destructive actions, or security warnings.
|
|
119
|
-
|
|
120
|
-
**Code:**
|
|
121
|
-
```markdown
|
|
122
|
-
::: callout danger
|
|
123
|
-
**Critical!** This action is irreversible and will result in permanent data loss. Do not proceed unless you have a backup.
|
|
124
|
-
:::
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
**Rendered Preview:**
|
|
128
|
-
::: callout danger
|
|
129
|
-
**Critical!** This action is irreversible and will result in permanent data loss. Do not proceed unless you have a backup.
|
|
130
|
-
:::
|
|
131
|
-
|
|
132
|
-
## All Callout Types with Titles
|
|
133
|
-
|
|
134
|
-
Here's a quick reference showing all available callout types with custom titles:
|
|
135
|
-
|
|
136
|
-
::: callout info Documentation Note
|
|
137
|
-
Use info callouts for neutral supplementary information.
|
|
138
|
-
:::
|
|
139
|
-
|
|
140
|
-
::: callout tip Best Practice
|
|
141
|
-
Use tip callouts for helpful suggestions and best practices.
|
|
142
|
-
:::
|
|
143
|
-
|
|
144
|
-
::: callout warning Important
|
|
145
|
-
Use warning callouts for actions that require caution.
|
|
146
|
-
:::
|
|
147
|
-
|
|
148
|
-
::: callout danger Critical Alert
|
|
149
|
-
Use danger callouts for destructive actions or critical warnings.
|
|
150
|
-
:::
|
|
151
|
-
|
|
152
|
-
::: callout success Task Complete
|
|
153
|
-
Use success callouts to indicate completed tasks or positive outcomes.
|
|
154
|
-
:::
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "Container: Cards"
|
|
3
|
-
description: "How to use cards to group related content into visually distinct blocks with an optional title."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Cards
|
|
7
|
-
|
|
8
|
-
Cards provide a visually distinct block for grouping related content. They are a versatile component that can be used for feature overviews, summaries, or linking to other sections.
|
|
9
|
-
|
|
10
|
-
## Usage
|
|
11
|
-
|
|
12
|
-
The `card` container can be used with or without a title.
|
|
13
|
-
|
|
14
|
-
::: callout info
|
|
15
|
-
Container blocks (like `::: card`) should be preceded by a blank line to ensure proper parsing by the markdown processor.
|
|
16
|
-
:::
|
|
17
|
-
|
|
18
|
-
**Syntax:**
|
|
19
|
-
```markdown
|
|
20
|
-
::: card Optional Card Title
|
|
21
|
-
The main body content of the card.
|
|
22
|
-
Supports **Markdown** formatting.
|
|
23
|
-
:::
|
|
24
|
-
```
|
|
25
|
-
- `Optional Card Title`: If you provide text after `card`, it becomes the title of the card.
|
|
26
|
-
|
|
27
|
-
---
|
|
28
|
-
|
|
29
|
-
## Examples
|
|
30
|
-
|
|
31
|
-
### Card with a Title
|
|
32
|
-
|
|
33
|
-
This is the most common use case, where the card has a clear heading.
|
|
34
|
-
|
|
35
|
-
**Code:**
|
|
36
|
-
```markdown
|
|
37
|
-
::: card My Feature Overview
|
|
38
|
-
This card describes an amazing feature.
|
|
39
|
-
* It's easy to use.
|
|
40
|
-
* It solves a common problem.
|
|
41
|
-
|
|
42
|
-
Learn more by reading the full guide.
|
|
43
|
-
:::
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
**Rendered Preview:**
|
|
47
|
-
::: card My Feature Overview
|
|
48
|
-
This card describes an amazing feature.
|
|
49
|
-
* It's easy to use.
|
|
50
|
-
* It solves a common problem.
|
|
51
|
-
|
|
52
|
-
Learn more by reading the full guide.
|
|
53
|
-
:::
|
|
54
|
-
|
|
55
|
-
### Card without a Title
|
|
56
|
-
|
|
57
|
-
If you omit the title, the content starts directly. This is ideal for small, self-contained snippets or quotes.
|
|
58
|
-
|
|
59
|
-
**Code:**
|
|
60
|
-
```markdown
|
|
61
|
-
::: card
|
|
62
|
-
This is a card without an explicit title. The content starts directly, which is great for simple, focused information.
|
|
63
|
-
:::
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
**Rendered Preview:**
|
|
67
|
-
::: card
|
|
68
|
-
This is a card without an explicit title. The content starts directly, which is great for simple, focused information.
|
|
69
|
-
:::
|
|
70
|
-
|
|
71
|
-
### Nesting Content in Cards
|
|
72
|
-
|
|
73
|
-
Cards are great for composition. You can easily place other elements, like buttons, inside a card to create a call to action.
|
|
74
|
-
|
|
75
|
-
**Code:**
|
|
76
|
-
```markdown
|
|
77
|
-
::: card Download the App
|
|
78
|
-
Get the latest version for your platform and start building today.
|
|
79
|
-
|
|
80
|
-
::: button Learn_More #customization
|
|
81
|
-
::: button View_GitHub external:https://github.com/mgks/docmd color:#5865f2
|
|
82
|
-
:::
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
**Rendered Preview:**
|
|
86
|
-
|
|
87
|
-
::: card Download the App
|
|
88
|
-
Get the latest version for your platform and start building today.
|
|
89
|
-
|
|
90
|
-
::: button Learn_More #customization
|
|
91
|
-
::: button View_GitHub external:https://github.com/mgks/docmd color:#5865f2
|
|
92
|
-
|
|
93
|
-
:::
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "Container: Changelogs"
|
|
3
|
-
description: "Create a beautiful, timeline-style version history for your project."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Changelog Container
|
|
7
|
-
|
|
8
|
-
The `changelog` container allows you to present version history and release notes in a clean, timeline layout. It separates metadata (dates/versions) from the narrative content, making it easy for users to scan updates.
|
|
9
|
-
|
|
10
|
-
## Usage
|
|
11
|
-
|
|
12
|
-
The changelog container uses a specific syntax where entries are separated by `==` markers.
|
|
13
|
-
|
|
14
|
-
::: callout info
|
|
15
|
-
Container blocks (like `::: changelog`) should be preceded by a blank line.
|
|
16
|
-
:::
|
|
17
|
-
|
|
18
|
-
**Syntax:**
|
|
19
|
-
```markdown
|
|
20
|
-
::: changelog
|
|
21
|
-
|
|
22
|
-
== Version/Date String
|
|
23
|
-
Content for this version.
|
|
24
|
-
Supports **Markdown**, lists, and other containers.
|
|
25
|
-
|
|
26
|
-
== Next Version/Date String
|
|
27
|
-
Content for the next version.
|
|
28
|
-
|
|
29
|
-
:::
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
**`==`**: This marker denotes the start of a new entry. Everything after `==` on the same line is treated as the "Date" or "Version" badge on the left side of the timeline.
|
|
33
|
-
|
|
34
|
-
---
|
|
35
|
-
|
|
36
|
-
## Examples
|
|
37
|
-
|
|
38
|
-
### Basic Version History
|
|
39
|
-
|
|
40
|
-
**Code:**
|
|
41
|
-
```markdown
|
|
42
|
-
::: changelog
|
|
43
|
-
|
|
44
|
-
== v2.0.0 (2025-01-15)
|
|
45
|
-
### Major Update 🚀
|
|
46
|
-
We completely rewrote the core engine for better performance.
|
|
47
|
-
|
|
48
|
-
* Added new plugin system
|
|
49
|
-
* Improved build speed by 50%
|
|
50
|
-
|
|
51
|
-
== v1.1.0 (2024-12-01)
|
|
52
|
-
### Feature Drop
|
|
53
|
-
Added support for custom themes and dark mode.
|
|
54
|
-
|
|
55
|
-
== v1.0.0 (2024-11-10)
|
|
56
|
-
Initial public release.
|
|
57
|
-
:::
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
**Rendered Preview:**
|
|
61
|
-
|
|
62
|
-
::: changelog
|
|
63
|
-
|
|
64
|
-
== v2.0.0 (2025-01-15)
|
|
65
|
-
### Major Update 🚀
|
|
66
|
-
We completely rewrote the core engine for better performance.
|
|
67
|
-
|
|
68
|
-
* Added new plugin system
|
|
69
|
-
* Improved build speed by 50%
|
|
70
|
-
|
|
71
|
-
== v1.1.0 (2024-12-01)
|
|
72
|
-
### Feature Drop
|
|
73
|
-
Added support for custom themes and dark mode.
|
|
74
|
-
|
|
75
|
-
== v1.0.0 (2024-11-10)
|
|
76
|
-
Initial public release.
|
|
77
|
-
:::
|
|
78
|
-
|
|
79
|
-
### Changelog with Nested Elements
|
|
80
|
-
|
|
81
|
-
You can put anything inside a changelog entry, including callouts and code blocks.
|
|
82
|
-
|
|
83
|
-
**Code:**
|
|
84
|
-
````markdown
|
|
85
|
-
::: changelog
|
|
86
|
-
|
|
87
|
-
== v3.0.0-beta
|
|
88
|
-
### The Future is Here
|
|
89
|
-
|
|
90
|
-
::: callout warning Breaking Changes
|
|
91
|
-
This release changes the config format. Please update your `docmd.config.js`.
|
|
92
|
-
:::
|
|
93
|
-
|
|
94
|
-
**New Config Example:**
|
|
95
|
-
```javascript
|
|
96
|
-
module.exports = {
|
|
97
|
-
version: 3,
|
|
98
|
-
// ...
|
|
99
|
-
}
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
== v2.5.0
|
|
103
|
-
Maintenance release with bug fixes.
|
|
104
|
-
:::
|
|
105
|
-
````
|
|
106
|
-
|
|
107
|
-
**Rendered Preview:**
|
|
108
|
-
|
|
109
|
-
::: changelog
|
|
110
|
-
|
|
111
|
-
== v3.0.0-beta
|
|
112
|
-
### The Future is Here
|
|
113
|
-
|
|
114
|
-
::: callout warning Breaking Changes
|
|
115
|
-
This release changes the config format. Please update your `docmd.config.js`.
|
|
116
|
-
:::
|
|
117
|
-
|
|
118
|
-
**New Config Example:**
|
|
119
|
-
```javascript
|
|
120
|
-
module.exports = {
|
|
121
|
-
version: 3,
|
|
122
|
-
// ...
|
|
123
|
-
}
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
== v2.5.0
|
|
127
|
-
Maintenance release with bug fixes.
|
|
128
|
-
:::
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "Container: Collapsible"
|
|
3
|
-
description: "Create accordion-style toggleable sections for FAQs, spoilers, or advanced details."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Collapsible Container
|
|
7
|
-
|
|
8
|
-
The `collapsible` container creates an accordion-style block that can be toggled open or closed. This is perfect for FAQs, "spoiler" content, or hiding complex details that aren't immediately necessary.
|
|
9
|
-
|
|
10
|
-
## Usage
|
|
11
|
-
|
|
12
|
-
The syntax allows you to define the title and the default state (open or closed).
|
|
13
|
-
|
|
14
|
-
**Syntax:**
|
|
15
|
-
```markdown
|
|
16
|
-
::: collapsible [open] Title Text Here
|
|
17
|
-
The hidden content goes here.
|
|
18
|
-
:::
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
- **`open`**: (Optional) If included, the section will be expanded by default on page load.
|
|
22
|
-
- **`Title Text Here`**: The text displayed on the clickable bar. If omitted, it defaults to "Click to expand".
|
|
23
|
-
|
|
24
|
-
---
|
|
25
|
-
|
|
26
|
-
## Examples
|
|
27
|
-
|
|
28
|
-
### Basic Collapsible (Closed by Default)
|
|
29
|
-
|
|
30
|
-
Use this for content that should be hidden initially, like lengthy code examples or optional details.
|
|
31
|
-
|
|
32
|
-
**Code:**
|
|
33
|
-
```markdown
|
|
34
|
-
::: collapsible View Advanced Configuration
|
|
35
|
-
Here are the advanced settings for power users:
|
|
36
|
-
* `memory_limit`: Set the max heap size.
|
|
37
|
-
* `threads`: Number of worker threads.
|
|
38
|
-
:::
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
**Rendered Preview:**
|
|
42
|
-
|
|
43
|
-
::: collapsible View Advanced Configuration
|
|
44
|
-
Here are the advanced settings for power users:
|
|
45
|
-
* `memory_limit`: Set the max heap size.
|
|
46
|
-
* `threads`: Number of worker threads.
|
|
47
|
-
:::
|
|
48
|
-
|
|
49
|
-
### Default Open
|
|
50
|
-
|
|
51
|
-
Use the `open` keyword if you want the content visible but capable of being tucked away.
|
|
52
|
-
|
|
53
|
-
**Code:**
|
|
54
|
-
```markdown
|
|
55
|
-
::: collapsible open Important Notice
|
|
56
|
-
This content is visible immediately but can be collapsed if it takes up too much space.
|
|
57
|
-
:::
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
**Rendered Preview:**
|
|
61
|
-
|
|
62
|
-
::: collapsible open Important Notice
|
|
63
|
-
This content is visible immediately but can be collapsed if it takes up too much space.
|
|
64
|
-
:::
|
|
65
|
-
|
|
66
|
-
### FAQ Pattern
|
|
67
|
-
|
|
68
|
-
Collapsibles are ideal for Frequently Asked Questions.
|
|
69
|
-
|
|
70
|
-
**Code:**
|
|
71
|
-
```markdown
|
|
72
|
-
::: collapsible Is docmd free to use?
|
|
73
|
-
**Yes!** docmd is 100% open-source and free under the MIT license.
|
|
74
|
-
:::
|
|
75
|
-
|
|
76
|
-
::: collapsible Can I host it on GitHub Pages?
|
|
77
|
-
Absolutely. The `build` command generates static HTML files that work perfectly on GitHub Pages, Netlify, or Vercel.
|
|
78
|
-
:::
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
**Rendered Preview:**
|
|
82
|
-
|
|
83
|
-
::: collapsible Is docmd free to use?
|
|
84
|
-
**Yes!** docmd is 100% open-source and free under the MIT license.
|
|
85
|
-
:::
|
|
86
|
-
|
|
87
|
-
::: collapsible Can I host it on GitHub Pages?
|
|
88
|
-
Absolutely. The `build` command generates static HTML files that work perfectly on GitHub Pages, Netlify, or Vercel.
|
|
89
|
-
:::
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "Custom Containers"
|
|
3
|
-
description: "Enhance your documentation with special components like callouts, cards, steps, and tabs using docmd's custom container syntax."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
`docmd` provides a simple syntax for adding richer, pre-styled components to your Markdown content. These are powered by the `markdown-it-container` plugin.
|
|
7
|
-
|
|
8
|
-
The general syntax for simple containers like `callout` and `card` is:
|
|
9
|
-
|
|
10
|
-
```markdown
|
|
11
|
-
::: containerName [optionalTitleOrType]
|
|
12
|
-
Content for the container goes here.
|
|
13
|
-
:::
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
For more complex components like `steps` and `tabs`, we use a more robust and intuitive syntax that relies on standard Markdown, preventing common nesting issues.
|
|
17
|
-
|
|
18
|
-
## Advanced Nested Container System
|
|
19
|
-
|
|
20
|
-
With docmd v0.2.0, all containers support **seamless nesting** - you can nest any container within any other container to create complex, interactive documentation layouts.
|
|
21
|
-
|
|
22
|
-
**New in v0.2.0:** [Learn about nested containers →](./nested-containers)
|
|
23
|
-
|
|
24
|
-
## Available Containers
|
|
25
|
-
|
|
26
|
-
Select a container type from the list below or from the sidebar to see detailed usage instructions and examples.
|
|
27
|
-
|
|
28
|
-
- [**Callouts**](./callouts/) - For highlighting important information like notes, tips, and warnings.
|
|
29
|
-
- [**Cards**](./cards/) - For grouping related content into visually distinct blocks.
|
|
30
|
-
- [**Steps**](./steps/) - For presenting a sequence of instructions in a numbered format.
|
|
31
|
-
- [**Tabs**](./tabs/) - For organizing content in a switchable, tabbed interface.
|
|
32
|
-
- [**Buttons**](./buttons/) - For creating stylish, clickable calls to action.
|
|
33
|
-
- [**Nested Containers**](./nested-containers/) - For creating complex, interactive layouts with container nesting.
|
|
34
|
-
|
|
35
|
-
These custom containers allow you to create more engaging and structured documentation without needing to write custom HTML or CSS.
|