@mgks/docmd 0.3.7 → 0.3.8

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 (73) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +61 -63
  3. package/bin/docmd.js +13 -16
  4. package/bin/postinstall.js +4 -4
  5. package/package.json +12 -10
  6. package/src/assets/css/docmd-highlight-dark.css +86 -1
  7. package/src/assets/css/docmd-highlight-light.css +86 -1
  8. package/src/assets/css/docmd-main.css +544 -464
  9. package/src/assets/css/docmd-theme-retro.css +105 -106
  10. package/src/assets/css/docmd-theme-ruby.css +92 -92
  11. package/src/assets/css/docmd-theme-sky.css +63 -64
  12. package/src/assets/favicon.ico +0 -0
  13. package/src/assets/images/docmd-logo-dark.png +0 -0
  14. package/src/assets/images/docmd-logo-light.png +0 -0
  15. package/src/assets/js/docmd-image-lightbox.js +2 -2
  16. package/src/assets/js/docmd-main.js +1 -1
  17. package/src/assets/js/docmd-mermaid.js +1 -1
  18. package/src/assets/js/docmd-search.js +1 -1
  19. package/src/commands/build.js +71 -370
  20. package/src/commands/dev.js +141 -80
  21. package/src/commands/init.js +107 -132
  22. package/src/commands/live.js +145 -0
  23. package/src/core/asset-manager.js +72 -0
  24. package/src/core/config-loader.js +2 -2
  25. package/src/core/config-validator.js +1 -1
  26. package/src/core/file-processor.js +13 -9
  27. package/src/core/fs-utils.js +40 -0
  28. package/src/core/html-formatter.js +97 -0
  29. package/src/core/html-generator.js +61 -65
  30. package/src/core/icon-renderer.js +1 -1
  31. package/src/core/logger.js +1 -1
  32. package/src/core/markdown/containers.js +1 -1
  33. package/src/core/markdown/renderers.js +1 -1
  34. package/src/core/markdown/rules.js +1 -2
  35. package/src/core/markdown/setup.js +1 -1
  36. package/src/core/navigation-helper.js +1 -1
  37. package/src/index.js +12 -0
  38. package/src/live/core.js +5 -1
  39. package/src/live/index.html +16 -1
  40. package/src/live/live.css +157 -68
  41. package/src/plugins/analytics.js +1 -1
  42. package/src/plugins/seo.js +26 -36
  43. package/src/plugins/sitemap.js +2 -2
  44. package/src/templates/layout.ejs +50 -81
  45. package/src/templates/navigation.ejs +23 -76
  46. package/src/templates/no-style.ejs +115 -129
  47. package/src/templates/partials/theme-init.js +1 -1
  48. package/src/templates/toc.ejs +6 -35
  49. package/dist/assets/css/docmd-highlight-dark.css +0 -1
  50. package/dist/assets/css/docmd-highlight-light.css +0 -1
  51. package/dist/assets/css/docmd-main.css +0 -1627
  52. package/dist/assets/css/docmd-theme-retro.css +0 -868
  53. package/dist/assets/css/docmd-theme-ruby.css +0 -629
  54. package/dist/assets/css/docmd-theme-sky.css +0 -618
  55. package/dist/assets/favicon.ico +0 -0
  56. package/dist/assets/images/docmd-logo-dark.png +0 -0
  57. package/dist/assets/images/docmd-logo-light.png +0 -0
  58. package/dist/assets/images/docmd-logo.png +0 -0
  59. package/dist/assets/js/docmd-image-lightbox.js +0 -74
  60. package/dist/assets/js/docmd-main.js +0 -222
  61. package/dist/assets/js/docmd-mermaid.js +0 -205
  62. package/dist/assets/js/docmd-search.js +0 -218
  63. package/dist/assets/js/mermaid.min.js +0 -2811
  64. package/dist/assets/js/minisearch.js +0 -2013
  65. package/dist/docmd-live.js +0 -30748
  66. package/dist/index.html +0 -201
  67. package/dist/live.css +0 -167
  68. package/docmd.config.js +0 -175
  69. package/scripts/build-live.js +0 -157
  70. package/scripts/failsafe.js +0 -37
  71. package/scripts/test-live.js +0 -54
  72. package/src/assets/images/docmd-logo.png +0 -0
  73. package/src/live/templates.js +0 -9
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 mgks
3
+ Copyright (c) 2025 docmd (docmd.io)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  <!-- PROJECT TITLE -->
4
4
  <h1>
5
- <img src="https://github.com/mgks/docmd/blob/main/src/assets/images/docmd-logo-light.png?raw=true" alt="docmd logo" width="150" />
5
+ <img src="https://github.com/docmd-io/docmd/blob/main/src/assets/images/docmd-logo-dark.png?raw=true" alt="docmd logo" width="200" />
6
6
  <!-- docmd -->
7
7
  </h1>
8
8
 
@@ -13,20 +13,20 @@
13
13
 
14
14
  <!-- BADGES -->
15
15
  <p>
16
- <img src="https://img.shields.io/npm/v/@mgks/docmd.svg?style=flat-square&color=d25353" alt="npm version">
17
- <img src="https://img.shields.io/github/commit-activity/m/mgks/docmd?style=flat-square&color=38bd24" alt="commits">
18
- <img src="https://img.shields.io/npm/dt/@mgks/docmd.svg?style=flat-square&color=38bd24" alt="downloads">
19
- <img src="https://img.shields.io/github/stars/mgks/docmd?style=flat-square&logo=github" alt="stars">
20
- <img src="https://img.shields.io/github/license/mgks/docmd.svg?style=flat-square&color=blue" alt="license">
16
+ <a href="https://www.npmjs.com/package/@mgks/docmd"><img src="https://img.shields.io/npm/v/@mgks/docmd.svg?style=flat-square&color=d25353" alt="npm version"></a>
17
+ <a href="https://github.com/docmd-io/docmd/commits/main/"><img src="https://img.shields.io/github/commit-activity/m/docmd-io/docmd?style=flat-square&color=38bd24" alt="commits"></a>
18
+ <a href="https://www.npmjs.com/package/@mgks/docmd?activeTab=versions"><img src="https://img.shields.io/npm/dt/@mgks/docmd.svg?style=flat-square&color=38bd24" alt="downloads"></a>
19
+ <a href="https://github.com/docmd-io/docmd/stargazers"><img src="https://img.shields.io/github/stars/docmd-io/docmd?style=flat-square&logo=github" alt="stars"></a>
20
+ <a href="https://github.com/docmd-io/docmd/blob/main/LICENSE"><img src="https://img.shields.io/github/license/docmd-io/docmd.svg?style=flat-square&color=blue" alt="license"></a>
21
21
  </p>
22
22
 
23
23
  <!-- MENU -->
24
24
  <p>
25
25
  <h4>
26
- <a href="https://docmd.mgks.dev">View Demo</a> •
27
- <a href="https://docmd.mgks.dev/getting-started/installation/">Documentation</a> •
28
- <a href="https://docmd.mgks.dev/live/">Live Editor</a> •
29
- <a href="https://github.com/mgks/docmd/issues">Report Bug</a>
26
+ <a href="https://docmd.io">View Demo</a> •
27
+ <a href="https://docs.docmd.io/getting-started/installation/">Documentation</a> •
28
+ <a href="https://live.docmd.io">Live Editor</a> •
29
+ <a href="https://github.com/docmd-io/docmd/issues">Report Bug</a>
30
30
  </h4>
31
31
  </p>
32
32
 
@@ -44,60 +44,53 @@
44
44
  - **Zero Config**: Works out of the box with sensible defaults. Just `init` and go.
45
45
  - **Blazing Fast**: Generates **pure, static HTML**. No React hydration lag, no heavy bundles.
46
46
  - **Smart Search**: Built-in, **offline-capable** full-text search with fuzzy matching. No API keys required.
47
- - **Isomorphic Core**: Runs anywhereNode.js CLI, CI/CD pipelines, or **directly in the browser** via WASM.
47
+ - **Isomorphic Core**: Runs anywhere, Node.js CLI, CI/CD pipelines, or **directly in the browser**.
48
48
  - **Rich Content**: Built-in support for Callouts, Cards, Tabs, Steps, Changelogs, and Mermaid diagrams.
49
49
  - **Theming**: Beautiful light/dark modes and multiple pre-built themes (`sky`, `ruby`, `retro`).
50
50
 
51
- ## Quick Start
52
-
53
- **Installation:**
51
+ ## Installation
54
52
 
55
53
  ```bash
56
54
  npm install -g @mgks/docmd
57
55
  ```
58
56
 
59
- **Run:**
57
+ ## Usage
58
+
59
+ ### CLI
60
+
61
+ The Command Line Interface is the primary way to interact with `docmd`.
60
62
 
61
63
  ```bash
62
- docmd init my-docs # Initialize a new project
63
- cd my-docs # Enter directory
64
- docmd dev # Start live-reloading server
65
- docmd build # Generate static site for deployment
66
- docmd live # Launch live editor to preview and design pages
64
+ docmd init # Initialize a new project with config and assets
65
+ docmd dev # Start a local development server with hot-reload
66
+ docmd build # Generate a production-ready static site in ./site
67
+ docmd live # Launch the browser-based Live Editor locally
67
68
  ```
68
69
 
69
- **Dev Server:**
70
-
71
- ```js
72
-
73
- _ _
74
- _| |___ ___ _____ _| |
75
- | . | . | _| | . |
76
- |___|___|___|_|_|_|___|
77
-
78
- v0.x.x
70
+ ### API
79
71
 
72
+ `docmd` exports its core engine, allowing you to build documentation programmatically within your own Node.js scripts or build tools.
80
73
 
81
- 🚀 Performing initial build...
74
+ ```javascript
75
+ const { build, buildLive } = require('@mgks/docmd');
82
76
 
83
- 👀 Watching for changes in:
84
- - Source: ./docs
85
- - Config: ./config.js
86
- - Assets: ./assets
77
+ // Trigger a standard documentation build
78
+ await build('./docmd.config.js', {
79
+ isDev: false,
80
+ preserve: true
81
+ });
87
82
 
88
- ────────────────────────────────────────
89
- SERVER RUNNING (v0.3.5)
83
+ // Trigger a Live Editor bundle build
84
+ await buildLive();
85
+ ```
90
86
 
91
- Local: http://127.0.0.1:3000
92
- Network: http://192.1.1.1:3000
87
+ ### Live Editor
93
88
 
94
- Serving: ./site
95
- ────────────────────────────────────────
96
- ```
89
+ `docmd` features a modular architecture that allows the core engine to run client-side.
97
90
 
98
- ## Usage in Detail
91
+ Running `docmd live` builds a standalone web application where you can write Markdown and see the preview instantly without any server-side processing. You can embed the generated `docmd-live.js` bundle to add Markdown capabilities to your own applications.
99
92
 
100
- ### Project Structure
93
+ ## Project Structure
101
94
 
102
95
  `docmd` keeps it simple. Your content lives in `docs/`, your config in `docmd.config.js`.
103
96
 
@@ -107,43 +100,48 @@ my-docs/
107
100
  │ ├── index.md # Homepage
108
101
  │ └── guide.md # Content page
109
102
  ├── assets/ # Images and custom CSS
110
- └── docmd.config.js # Configuration
103
+ ├── docmd.config.js # Configuration
104
+ └── package.json
111
105
  ```
112
106
 
113
- ### Configuration
107
+ ## Configuration
114
108
 
115
109
  Customize your site in seconds via `docmd.config.js`:
116
110
 
117
111
  ```javascript
118
112
  module.exports = {
119
113
  siteTitle: 'My Project',
114
+ siteUrl: 'https://mysite.com',
120
115
  srcDir: 'docs',
121
116
  outputDir: 'site',
117
+
118
+ // Theme Settings
122
119
  theme: {
123
120
  name: 'sky', // 'default', 'sky', 'ruby', 'retro'
124
- defaultMode: 'dark', // 'light' or 'dark'
121
+ defaultMode: 'system', // 'light', 'dark', or 'system'
125
122
  enableModeToggle: true
126
123
  },
124
+
125
+ // Sidebar Navigation
127
126
  navigation: [
128
127
  { title: 'Home', path: '/', icon: 'home' },
129
- { title: 'Guide', path: '/guide', icon: 'book' }
130
- ]
128
+ {
129
+ title: 'Guide',
130
+ icon: 'book',
131
+ children: [
132
+ { title: 'Installation', path: '/guide/install' }
133
+ ]
134
+ }
135
+ ],
136
+
137
+ // Plugins
138
+ plugins: {
139
+ seo: { /* ... */ },
140
+ sitemap: { /* ... */ }
141
+ }
131
142
  }
132
143
  ```
133
144
 
134
- ## Live Editor
135
-
136
- `docmd` comes with a modular architecture that allows the core engine to run client-side.
137
-
138
- **Launch locally:**
139
- ```bash
140
- docmd live
141
- ```
142
- This builds and serves a local editor where you can write Markdown and see the preview instantly without any server-side processing.
143
-
144
- **Embed in your app:**
145
- You can also use the `dist/docmd-live.js` bundle to add Markdown compilation capabilities to your own web applications.
146
-
147
145
  ## Comparison
148
146
 
149
147
  | Feature | docmd | Docusaurus | MkDocs | Mintlify |
@@ -166,4 +164,4 @@ Distributed under the MIT License. See `LICENSE` for more information.
166
164
 
167
165
  > **{ github.com/mgks }**
168
166
  >
169
- > ![Website Badge](https://img.shields.io/badge/Visit-mgks.dev-blue?style=flat&link=https%3A%2F%2Fmgks.dev) ![Sponsor Badge](https://img.shields.io/badge/%20%20Become%20a%20Sponsor%20%20-red?style=flat&logo=github&link=https%3A%2F%2Fgithub.com%2Fsponsors%2Fmgks)
167
+ > ![Website Badge](https://img.shields.io/badge/Visit-mgks.dev-blue?style=flat&link=https%3A%2F%2Fmgks.dev) ![Sponsor Badge](https://img.shields.io/badge/%20%20Become%20a%20Sponsor%20%20-red?style=flat&logo=github&link=https%3A%2F%2Fgithub.com%2Fsponsors%2Fmgks)
package/bin/docmd.js CHANGED
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  const { program } = require('commander');
4
- // This import corresponds to module.exports = { startDevServer } in src/commands/dev.js
5
4
  const { startDevServer } = require('../src/commands/dev');
6
5
  const { buildSite } = require('../src/commands/build');
7
6
  const { initProject } = require('../src/commands/init');
7
+ const { build: buildLive } = require('../src/commands/live');
8
8
  const { version } = require('../package.json');
9
9
  const { printBanner } = require('../src/core/logger');
10
10
  const path = require('path');
@@ -51,25 +51,22 @@ program
51
51
  program
52
52
  .command('live')
53
53
  .description('Build and serve the browser-based live editor')
54
- .action(() => {
55
- const scriptPath = path.resolve(__dirname, '../scripts/build-live.js');
56
- const distPath = path.resolve(__dirname, '../dist');
57
-
58
- console.log('🚀 Starting Live Editor build...');
59
-
60
- // Using spawn ensures the build runs in a fresh process context
61
- const build = spawn(process.execPath, [scriptPath], { stdio: 'inherit' });
62
-
63
- build.on('close', (code) => {
64
- if (code === 0) {
54
+ .action(async () => {
55
+ try {
56
+ await buildLive();
57
+
65
58
  console.log('\n🌍 Launching server...');
66
59
  console.log(' Press Ctrl+C to stop.\n');
67
-
68
- // Fix for Node DeprecationWarning regarding shell: true
60
+
61
+ const distPath = path.resolve(__dirname, '../dist');
69
62
  const serveCmd = `npx serve "${distPath}"`;
63
+
70
64
  spawn(serveCmd, { stdio: 'inherit', shell: true });
71
- }
72
- });
65
+
66
+ } catch (e) {
67
+ console.error('Live build failed:', e);
68
+ process.exit(1);
69
+ }
73
70
  });
74
71
 
75
72
  program.parse();
@@ -1,14 +1,14 @@
1
- // bin/postinstall.js
2
-
3
- const chalk = require('chalk');
1
+ // Source file from the docmd project — https://github.com/docmd-io/docmd
4
2
 
5
3
  // This script runs after 'npm install', runs only when the user installs it globally and not in a CI environment
6
4
 
5
+ const chalk = require('chalk');
6
+
7
7
  if (process.env.npm_config_global && !process.env.CI) {
8
8
  console.log(chalk.green('\n🎉 Thank you for installing docmd!'));
9
9
  console.log('\nTo get started, run the following commands:');
10
10
  console.log(`\n ${chalk.cyan('docmd init my-awesome-docs')}`);
11
11
  console.log(` ${chalk.cyan('cd my-awesome-docs')}`);
12
12
  console.log(` ${chalk.cyan('npm start')}`);
13
- console.log('\nFor complete documentation, visit: https://docmd.mgks.dev');
13
+ console.log('\nFor complete documentation, visit: https://docmd.io');
14
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mgks/docmd",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "description": "Generate beautiful, lightweight static documentation sites directly from your Markdown files. Zero clutter, just content.",
5
5
  "main": "src/index.js",
6
6
  "exports": {
@@ -9,6 +9,12 @@
9
9
  "require": "./src/index.js"
10
10
  }
11
11
  },
12
+ "files": [
13
+ "bin",
14
+ "src",
15
+ "LICENSE",
16
+ "README.md"
17
+ ],
12
18
  "bin": {
13
19
  "docmd": "bin/docmd.js"
14
20
  },
@@ -23,14 +29,12 @@
23
29
  "format": "prettier --write ."
24
30
  },
25
31
  "dependencies": {
32
+ "buffer": "^6.0.3",
26
33
  "chalk": "^4.1.2",
27
34
  "chokidar": "^5.0.0",
28
- "clean-css": "^5.3.3",
29
35
  "commander": "^14.0.2",
30
36
  "ejs": "^3.1.10",
31
37
  "esbuild": "^0.27.2",
32
- "express": "^5.2.1",
33
- "fs-extra": "^11.3.3",
34
38
  "gray-matter": "^4.0.3",
35
39
  "highlight.js": "^11.11.1",
36
40
  "lucide-static": "^0.562.0",
@@ -41,10 +45,8 @@
41
45
  "markdown-it-deflist": "^3.0.0",
42
46
  "markdown-it-footnote": "^4.0.0",
43
47
  "markdown-it-task-lists": "^2.1.1",
44
- "mermaid": "^11.12.2",
45
48
  "minisearch": "^7.2.0",
46
- "striptags": "^3.2.0",
47
- "ws": "^8.18.3"
49
+ "ws": "^8.19.0"
48
50
  },
49
51
  "devDependencies": {
50
52
  "buffer": "^6.0.3",
@@ -71,12 +73,12 @@
71
73
  },
72
74
  "repository": {
73
75
  "type": "git",
74
- "url": "git+https://github.com/mgks/docmd.git"
76
+ "url": "git+https://github.com/docmd-io/docmd.git"
75
77
  },
76
78
  "bugs": {
77
- "url": "https://github.com/mgks/docmd/issues"
79
+ "url": "https://github.com/docmd-io/docmd/issues"
78
80
  },
79
- "homepage": "https://github.com/mgks/docmd#readme",
81
+ "homepage": "https://docmd.io",
80
82
  "funding": "https://github.com/sponsors/mgks",
81
83
  "license": "MIT"
82
84
  }
@@ -1 +1,86 @@
1
- pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#abb2bf;background:#282c34}.hljs-comment,.hljs-quote{color:#5c6370;font-style:italic}.hljs-doctag,.hljs-formula,.hljs-keyword{color:#c678dd}.hljs-deletion,.hljs-name,.hljs-section,.hljs-selector-tag,.hljs-subst{color:#e06c75}.hljs-literal{color:#56b6c2}.hljs-addition,.hljs-attribute,.hljs-meta .hljs-string,.hljs-regexp,.hljs-string{color:#98c379}.hljs-attr,.hljs-number,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-pseudo,.hljs-template-variable,.hljs-type,.hljs-variable{color:#d19a66}.hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,.hljs-symbol,.hljs-title{color:#61aeee}.hljs-built_in,.hljs-class .hljs-title,.hljs-title.class_{color:#e6c07b}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.hljs-link{text-decoration:underline}
1
+ /* Source file from the docmd project — https://github.com/docmd-io/docmd */
2
+
3
+ pre code.hljs {
4
+ display: block;
5
+ overflow-x: auto;
6
+ padding: 1em
7
+ }
8
+
9
+ code.hljs {
10
+ padding: 3px 5px
11
+ }
12
+
13
+ .hljs {
14
+ color: #abb2bf;
15
+ background: #282c34
16
+ }
17
+
18
+ .hljs-comment,
19
+ .hljs-quote {
20
+ color: #5c6370;
21
+ font-style: italic
22
+ }
23
+
24
+ .hljs-doctag,
25
+ .hljs-formula,
26
+ .hljs-keyword {
27
+ color: #c678dd
28
+ }
29
+
30
+ .hljs-deletion,
31
+ .hljs-name,
32
+ .hljs-section,
33
+ .hljs-selector-tag,
34
+ .hljs-subst {
35
+ color: #e06c75
36
+ }
37
+
38
+ .hljs-literal {
39
+ color: #56b6c2
40
+ }
41
+
42
+ .hljs-addition,
43
+ .hljs-attribute,
44
+ .hljs-meta .hljs-string,
45
+ .hljs-regexp,
46
+ .hljs-string {
47
+ color: #98c379
48
+ }
49
+
50
+ .hljs-attr,
51
+ .hljs-number,
52
+ .hljs-selector-attr,
53
+ .hljs-selector-class,
54
+ .hljs-selector-pseudo,
55
+ .hljs-template-variable,
56
+ .hljs-type,
57
+ .hljs-variable {
58
+ color: #d19a66
59
+ }
60
+
61
+ .hljs-bullet,
62
+ .hljs-link,
63
+ .hljs-meta,
64
+ .hljs-selector-id,
65
+ .hljs-symbol,
66
+ .hljs-title {
67
+ color: #61aeee
68
+ }
69
+
70
+ .hljs-built_in,
71
+ .hljs-class .hljs-title,
72
+ .hljs-title.class_ {
73
+ color: #e6c07b
74
+ }
75
+
76
+ .hljs-emphasis {
77
+ font-style: italic
78
+ }
79
+
80
+ .hljs-strong {
81
+ font-weight: 700
82
+ }
83
+
84
+ .hljs-link {
85
+ text-decoration: underline
86
+ }
@@ -1 +1,86 @@
1
- pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#383a42;background:#fafafa}.hljs-comment,.hljs-quote{color:#a0a1a7;font-style:italic}.hljs-doctag,.hljs-formula,.hljs-keyword{color:#a626a4}.hljs-deletion,.hljs-name,.hljs-section,.hljs-selector-tag,.hljs-subst{color:#e45649}.hljs-literal{color:#0184bb}.hljs-addition,.hljs-attribute,.hljs-meta .hljs-string,.hljs-regexp,.hljs-string{color:#50a14f}.hljs-attr,.hljs-number,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-pseudo,.hljs-template-variable,.hljs-type,.hljs-variable{color:#986801}.hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,.hljs-symbol,.hljs-title{color:#4078f2}.hljs-built_in,.hljs-class .hljs-title,.hljs-title.class_{color:#c18401}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.hljs-link{text-decoration:underline}
1
+ /* Source file from the docmd project — https://github.com/docmd-io/docmd */
2
+
3
+ pre code.hljs {
4
+ display: block;
5
+ overflow-x: auto;
6
+ padding: 1em
7
+ }
8
+
9
+ code.hljs {
10
+ padding: 3px 5px
11
+ }
12
+
13
+ .hljs {
14
+ color: #383a42;
15
+ background: #fafafa
16
+ }
17
+
18
+ .hljs-comment,
19
+ .hljs-quote {
20
+ color: #a0a1a7;
21
+ font-style: italic
22
+ }
23
+
24
+ .hljs-doctag,
25
+ .hljs-formula,
26
+ .hljs-keyword {
27
+ color: #a626a4
28
+ }
29
+
30
+ .hljs-deletion,
31
+ .hljs-name,
32
+ .hljs-section,
33
+ .hljs-selector-tag,
34
+ .hljs-subst {
35
+ color: #e45649
36
+ }
37
+
38
+ .hljs-literal {
39
+ color: #0184bb
40
+ }
41
+
42
+ .hljs-addition,
43
+ .hljs-attribute,
44
+ .hljs-meta .hljs-string,
45
+ .hljs-regexp,
46
+ .hljs-string {
47
+ color: #50a14f
48
+ }
49
+
50
+ .hljs-attr,
51
+ .hljs-number,
52
+ .hljs-selector-attr,
53
+ .hljs-selector-class,
54
+ .hljs-selector-pseudo,
55
+ .hljs-template-variable,
56
+ .hljs-type,
57
+ .hljs-variable {
58
+ color: #986801
59
+ }
60
+
61
+ .hljs-bullet,
62
+ .hljs-link,
63
+ .hljs-meta,
64
+ .hljs-selector-id,
65
+ .hljs-symbol,
66
+ .hljs-title {
67
+ color: #4078f2
68
+ }
69
+
70
+ .hljs-built_in,
71
+ .hljs-class .hljs-title,
72
+ .hljs-title.class_ {
73
+ color: #c18401
74
+ }
75
+
76
+ .hljs-emphasis {
77
+ font-style: italic
78
+ }
79
+
80
+ .hljs-strong {
81
+ font-weight: 700
82
+ }
83
+
84
+ .hljs-link {
85
+ text-decoration: underline
86
+ }