@mgks/docmd 0.3.2 → 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.
Files changed (77) hide show
  1. package/README.md +5 -1
  2. package/package.json +28 -24
  3. package/.gitattributes +0 -2
  4. package/.github/CODE_OF_CONDUCT.md +0 -48
  5. package/.github/CONTRIBUTING.md +0 -129
  6. package/.github/FUNDING.yml +0 -15
  7. package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -58
  8. package/.github/ISSUE_TEMPLATE/feature_request.yml +0 -27
  9. package/.github/PULL_REQUEST_TEMPLATE.md +0 -16
  10. package/.github/SECURITY.md +0 -18
  11. package/.github/workflows/deploy-docmd.yml +0 -45
  12. package/.github/workflows/npm-publish.yml +0 -49
  13. package/assets/css/welcome.css +0 -6
  14. package/assets/images/preview-dark-1.webp +0 -0
  15. package/assets/images/preview-dark-2.webp +0 -0
  16. package/assets/images/preview-dark-3.webp +0 -0
  17. package/assets/images/preview-dark-welcome.png +0 -0
  18. package/assets/images/preview-light-1.webp +0 -0
  19. package/assets/images/preview-light-2.webp +0 -0
  20. package/assets/images/preview-light-3.webp +0 -0
  21. package/docs/cli-commands.md +0 -108
  22. package/docs/comparison.md +0 -56
  23. package/docs/configuration.md +0 -289
  24. package/docs/content/containers/buttons.md +0 -88
  25. package/docs/content/containers/callouts.md +0 -154
  26. package/docs/content/containers/cards.md +0 -93
  27. package/docs/content/containers/changelogs.md +0 -128
  28. package/docs/content/containers/collapsible.md +0 -89
  29. package/docs/content/containers/index.md +0 -35
  30. package/docs/content/containers/nested-containers.md +0 -329
  31. package/docs/content/containers/steps.md +0 -175
  32. package/docs/content/containers/tabs.md +0 -228
  33. package/docs/content/custom-containers.md +0 -24
  34. package/docs/content/frontmatter.md +0 -84
  35. package/docs/content/images.md +0 -205
  36. package/docs/content/index.md +0 -19
  37. package/docs/content/markdown-syntax.md +0 -309
  38. package/docs/content/mermaid.md +0 -723
  39. package/docs/content/no-style-example.md +0 -112
  40. package/docs/content/no-style-pages.md +0 -226
  41. package/docs/content/search.md +0 -68
  42. package/docs/contributing.md +0 -101
  43. package/docs/deployment.md +0 -120
  44. package/docs/getting-started/basic-usage.md +0 -89
  45. package/docs/getting-started/index.md +0 -21
  46. package/docs/getting-started/installation.md +0 -75
  47. package/docs/index.md +0 -168
  48. package/docs/overview.md +0 -63
  49. package/docs/plugins/analytics.md +0 -75
  50. package/docs/plugins/index.md +0 -70
  51. package/docs/plugins/seo.md +0 -127
  52. package/docs/plugins/sitemap.md +0 -87
  53. package/docs/recipes/custom-fonts.md +0 -43
  54. package/docs/recipes/favicon.md +0 -38
  55. package/docs/recipes/index.md +0 -12
  56. package/docs/recipes/landing-page.md +0 -46
  57. package/docs/theming/assets-management.md +0 -126
  58. package/docs/theming/available-themes.md +0 -77
  59. package/docs/theming/custom-css-js.md +0 -79
  60. package/docs/theming/icons.md +0 -92
  61. package/docs/theming/index.md +0 -19
  62. package/docs/theming/light-dark-mode.md +0 -114
  63. package/src/assets/css/docmd-highlight-dark.css +0 -1
  64. package/src/assets/css/docmd-highlight-light.css +0 -1
  65. package/src/assets/css/docmd-main.css +0 -1627
  66. package/src/assets/css/docmd-theme-retro.css +0 -868
  67. package/src/assets/css/docmd-theme-ruby.css +0 -629
  68. package/src/assets/css/docmd-theme-sky.css +0 -618
  69. package/src/assets/favicon.ico +0 -0
  70. package/src/assets/images/docmd-logo-dark.png +0 -0
  71. package/src/assets/images/docmd-logo-light.png +0 -0
  72. package/src/assets/images/docmd-logo.png +0 -0
  73. package/src/assets/images/docmd-preview.png +0 -0
  74. package/src/assets/js/docmd-image-lightbox.js +0 -74
  75. package/src/assets/js/docmd-main.js +0 -285
  76. package/src/assets/js/docmd-mermaid.js +0 -205
  77. package/src/assets/js/docmd-search.js +0 -218
@@ -1,19 +0,0 @@
1
- ---
2
- title: "Content"
3
- description: "Learn how to write and format content in docmd"
4
- ---
5
-
6
- # Content in docmd
7
-
8
- docmd uses Markdown files to create beautiful documentation. This section covers everything you need to know about writing content:
9
-
10
- ## Available Guides
11
-
12
- - [**Frontmatter**](/content/frontmatter/) - Learn how to add metadata to your pages
13
- - [**Markdown Syntax**](/content/markdown-syntax/) - Basic and advanced Markdown features
14
- - [**Images**](/content/images/) - How to add and style images in your documentation
15
- - [**Mermaid Diagrams**](/content/mermaid/) - Create beautiful diagrams and flowcharts with Mermaid
16
- - [**Custom Containers**](/content/custom-containers/) - Special content blocks like callouts and cards
17
- - [**noStyle Pages**](/content/no-style-pages/) - Create custom standalone pages with complete HTML control
18
-
19
- Choose a topic from the sidebar to get started.
@@ -1,309 +0,0 @@
1
- ---
2
- title: "Markdown Syntax Guide"
3
- description: "Learn how to use Markdown syntax to format your documentation in docmd."
4
- ---
5
-
6
- # Markdown Syntax
7
-
8
- `docmd` uses `markdown-it` under the hood, which is a highly extensible and standards-compliant Markdown parser. It supports CommonMark syntax by default, along with some useful extensions like GitHub Flavored Markdown (GFM) tables and strikethrough.
9
-
10
- ## Common Elements
11
-
12
- You can use all standard Markdown elements:
13
-
14
- * **Headings:**
15
- ```markdown
16
- # Heading 1
17
- ## Heading 2
18
- ### Heading 3
19
- ...
20
- ###### Heading 6
21
- ```
22
- * **Paragraphs:** Just type text. Separate paragraphs with a blank line.
23
- * **Emphasis:**
24
- ```markdown
25
- *This text will be italic.*
26
- _This will also be italic._
27
-
28
- **This text will be bold.**
29
- __This will also be bold.__
30
-
31
- ***This text will be bold and italic.***
32
- ```
33
- * **Lists:**
34
- * **Unordered:**
35
- ```markdown
36
- * Item 1
37
- * Item 2
38
- * Nested Item 2a
39
- * Nested Item 2b
40
- + Item 3 (using +)
41
- - Item 4 (using -)
42
- ```
43
- * **Ordered:**
44
- ```markdown
45
- 1. First item
46
- 2. Second item
47
- 3. Third item
48
- 1. Nested ordered item
49
- ```
50
- * **Links:**
51
- ```markdown
52
- [Link Text](https://www.example.com)
53
- [Link with Title](https://www.example.com "Link Title")
54
- [Relative Link to another page](../section/other-page/)
55
- ```
56
- *Note: For internal links to other documentation pages, use relative paths to the `.md` files. `docmd` will convert these to the correct HTML paths during the build.*
57
-
58
- * **Images:**
59
- ```markdown
60
- ![Alt text for image](/path/to/your/image.jpg "Optional Image Title")
61
- ```
62
- *Place images in your `docs/` directory (e.g., `docs/images/`) or a similar assets folder that gets copied to your `site/` output.*
63
-
64
- * **Blockquotes:**
65
- ```markdown
66
- > This is a blockquote.
67
- > It can span multiple lines.
68
- ```
69
- * **Horizontal Rules:**
70
- ```markdown
71
- ---
72
- ***
73
- ___
74
- ```
75
- * **Inline Code:**
76
- ```markdown
77
- Use `backticks` for inline code like `variableName`.
78
- ```
79
-
80
- ## Code Blocks & Syntax Highlighting
81
-
82
- `docmd` uses `highlight.js` for automatic syntax highlighting of fenced code blocks. Specify the language after the opening triple backticks:
83
-
84
- ```javascript
85
- function greet(name) {
86
- console.log(`Hello, ${name}!`);
87
- }
88
- greet('docmd user');
89
- ```
90
-
91
- ```python
92
- def hello():
93
- print("Hello from Python!")
94
-
95
- hello()
96
- ```
97
-
98
- ```html
99
- <div>
100
- <p>This is some HTML.</p>
101
- </div>
102
- ```
103
-
104
- ```css
105
- body {
106
- font-family: sans-serif;
107
- color: #333;
108
- }
109
- ```
110
-
111
- ```bash
112
- npm install -g docmd
113
- docmd init my-docs
114
- ```
115
-
116
- If you don't specify a language, `highlight.js` will attempt to auto-detect it, or it will be rendered as plain preformatted text.
117
-
118
- ## Tables (GFM Style)
119
-
120
- You can create tables using GitHub Flavored Markdown syntax:
121
-
122
- ```bash
123
- | Header 1 | Header 2 | Header 3 |
124
- | :------- | :------: | -------: |
125
- | Align L | Center | Align R |
126
- | Cell 1 | Cell 2 | Cell 3 |
127
- | Cell 4 | Cell 5 | Cell 6 |
128
- ```
129
- Renders as:
130
-
131
- | Header 1 | Header 2 | Header 3 |
132
- | :------- | :------: | -------: |
133
- | Align L | Center | Align R |
134
- | Cell 1 | Cell 2 | Cell 3 |
135
- | Cell 4 | Cell 5 | Cell 6 |
136
-
137
- ## Strikethrough (GFM Style)
138
-
139
- Wrap text with two tildes (`~~`) for strikethrough:
140
- ```bash
141
- This is ~~strikethrough~~ text.
142
- ```
143
- Renders as: This is ~~strikethrough~~ text.
144
-
145
- ## HTML
146
-
147
- Because `markdown-it` is configured with `html: true`, you can embed raw HTML directly in your Markdown files. However, use this sparingly, as it can make your content less portable and harder to maintain.
148
-
149
- ```html
150
- <div style="color: blue;">
151
- This is a blue div rendered directly from HTML.
152
- </div>
153
- ```
154
-
155
- For most formatting needs, standard Markdown and `docmd`'s [Custom Containers](/content/custom-containers/) should suffice.
156
-
157
- # Advanced Markdown Capabilities
158
-
159
- Beyond the basic syntax, `docmd` supports a variety of advanced Markdown features to help you create richer documentation.
160
-
161
- ## Example Callout
162
-
163
- ::: callout info
164
- This is a real callout example to test container rendering. Callouts are great for highlighting important information.
165
- :::
166
-
167
- ::: callout warning
168
- **Warning!** Be careful when using advanced features, ensure they are properly documented.
169
- :::
170
-
171
- ## GFM (GitHub Flavored Markdown)
172
-
173
- docmd supports GitHub Flavored Markdown extensions including:
174
-
175
- - **Task Lists** - Create interactive checklists:
176
- ```markdown
177
- - [x] Completed task
178
- - [ ] Incomplete task
179
- - [ ] Another item
180
- ```
181
-
182
- Renders as:
183
- - [x] Completed task
184
- - [ ] Incomplete task
185
- - [ ] Another item
186
-
187
- - **Autolinked References** - URL and email addresses are automatically linked:
188
- ```markdown
189
- Visit https://docmd.mgks.dev for more information.
190
- Contact support@example.com for help.
191
- ```
192
-
193
- - **Emoji** - Use emoji shortcodes:
194
- ```markdown
195
- I :heart: documentation! :rocket: :smile:
196
- ```
197
-
198
- Renders emoji symbols like: I ❤️ documentation! 🚀 😄
199
-
200
- ## Custom Attributes (IDs and Classes)
201
-
202
- You can add custom IDs and CSS classes to headers, images, and links using curly braces `{}`.
203
-
204
- ### Custom IDs
205
- By default, `docmd` generates IDs for headers automatically. You can override this:
206
-
207
- ```markdown
208
- ## My Header {#custom-id}
209
- ```
210
-
211
- ### Custom Classes
212
- Add styling classes to elements:
213
-
214
- ```markdown
215
- ## Styled Header {.text-center .text-red}
216
- ```
217
-
218
- ### Links and Buttons
219
- Create buttons using standard links and classes:
220
-
221
- ```markdown
222
- [Download Now](/download){.btn .btn-primary}
223
- ```
224
-
225
- ### Images
226
- Control image styling directly:
227
-
228
- ```markdown
229
- ![Screenshot](image.png){width="100%" .shadow-lg}
230
- ```
231
-
232
- ## Footnotes
233
-
234
- You can add footnotes to your content for references or additional information[^1].
235
-
236
- ```markdown
237
- Here's a statement that needs citation[^1].
238
-
239
- [^1]: This is the footnote content.
240
- ```
241
-
242
- Multiple footnotes can be used throughout your document[^2], and the definitions can be collected at the bottom.
243
-
244
- [^1]: This is the first footnote reference.
245
- [^2]: This is the second footnote with more information.
246
-
247
- ## Definition Lists
248
-
249
- Some Markdown parsers support definition lists:
250
-
251
- ```markdown
252
- Term
253
- : Definition for the term.
254
- : Another definition for the same term.
255
-
256
- Another Term
257
- : Definition of another term.
258
- ```
259
-
260
- Term
261
- : Definition for the term.
262
- : Another definition for the same term.
263
-
264
- Another Term
265
- : Definition of another term.
266
-
267
- ## Abbreviations
268
-
269
- You can define abbreviations in your Markdown (depending on plugin support):
270
-
271
- ```markdown
272
- *[HTML]: Hyper Text Markup Language
273
- *[W3C]: World Wide Web Consortium
274
-
275
- HTML is defined by the W3C standards.
276
- ```
277
-
278
- *[HTML]: Hyper Text Markup Language
279
- *[W3C]: World Wide Web Consortium
280
-
281
- HTML is defined by the W3C standards.
282
-
283
- ## Math Expressions
284
-
285
- If enabled with the appropriate plugins, you can include mathematical expressions using LaTeX syntax:
286
-
287
- ```markdown
288
- Inline math: $E=mc^2$
289
-
290
- Block math:
291
- $$
292
- \frac{d}{dx}e^x = e^x
293
- $$
294
- ```
295
-
296
- ## Container Extensions
297
-
298
- Beyond standard Markdown, docmd provides custom containers for enhanced formatting.
299
- These are detailed in the [Custom Containers](/content/custom-containers/) guide, and include:
300
-
301
- ::: callout info
302
- Use containers for callouts, cards, and steps to structure your documentation.
303
- :::
304
-
305
- ## Conclusion
306
-
307
- Markdown provides a powerful yet simple way to write and format documentation. With docmd's extensions and customizations, you can create rich, beautiful documentation that's easy to maintain.
308
-
309
- For more examples and practical applications, check the rest of the documentation or browse the source of this page by viewing its Markdown file.