@mgks/docmd 0.3.6 → 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 (53) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +86 -77
  3. package/bin/docmd.js +13 -16
  4. package/bin/postinstall.js +4 -4
  5. package/package.json +19 -16
  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 +14 -6
  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 +199 -72
  21. package/src/commands/init.js +135 -134
  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/docmd.config.js +0 -175
  50. package/scripts/build-live.js +0 -157
  51. package/scripts/test-live.js +0 -54
  52. package/src/assets/images/docmd-logo.png +0 -0
  53. 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
@@ -1,92 +1,96 @@
1
1
  <div align="center">
2
- <a href="https://docmd.mgks.dev">
3
- <img src="https://github.com/mgks/docmd/blob/main/src/assets/images/docmd-logo-light.png?raw=true" alt="docmd logo" width="150" />
4
- </a>
2
+
3
+ <!-- PROJECT TITLE -->
4
+ <h1>
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
+ <!-- docmd -->
7
+ </h1>
8
+
9
+ <!-- ONE LINE SUMMARY -->
5
10
  <p>
6
- <strong>The minimalist, zero-config documentation generator.</strong>
11
+ <b>The minimalist, zero-config documentation generator.</b>
12
+ </p>
13
+
14
+ <!-- BADGES -->
15
+ <p>
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>
7
21
  </p>
8
- </div>
9
22
 
10
- <p align="center">
11
- <a href="https://www.npmjs.com/package/@mgks/docmd"><img src="https://img.shields.io/npm/v/@mgks/docmd.svg?style=flat-square&color=fc3b53" alt="npm version"></a>
12
- <a href="https://github.com/mgks/docmd/commits"><img src="https://img.shields.io/github/commit-activity/m/mgks/docmd?style=flat-square&color=38bd24" alt="commits"></a>
13
- <a href="https://www.npmjs.com/package/@mgks/docmd"><img src="https://img.shields.io/npm/dt/@mgks/docmd.svg?style=flat-square&color=38bd24" alt="downloads"></a>
14
- <a href="https://github.com/mgks/docmd/stargazers"><img src="https://img.shields.io/github/stars/mgks/docmd?style=flat-square&logo=github" alt="stars"></a>
15
- <a href="LICENSE"><img src="https://img.shields.io/github/license/mgks/docmd.svg?style=flat-square&color=blue" alt="license"></a>
16
- </p>
17
-
18
- <p align="center">
19
- <a href="https://docmd.mgks.dev"><b>View Live Demo</b></a> •
20
- <a href="https://docmd.mgks.dev/getting-started/installation/"><b>Read Documentation</b></a> •
21
- <a href="https://docmd.mgks.dev/live/"><b>Live Editor</b></a> •
22
- <a href="https://github.com/mgks/docmd/issues"><b>Report Bug</b></a>
23
- </p>
24
-
25
- <p align="center">
26
- <img width="800" alt="docmd preview" src="https://docmd.mgks.dev/assets/images/preview-dark-welcome.png" style="border-radius: 10px" />
27
- <br/>
28
- <sup><i>docmd noStyle page preview in dark mode</i></sup>
29
- </p>
23
+ <!-- MENU -->
24
+ <p>
25
+ <h4>
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
+ </h4>
31
+ </p>
32
+
33
+ <!-- PREVIEW -->
34
+ <p>
35
+ <img width="800" alt="docmd preview" src="https://github.com/user-attachments/assets/1a74d6f7-10f9-41fa-be8a-faeee278dbb9" />
36
+ <br/>
37
+ <sup><i>docmd noStyle page preview in light mode</i></sup>
38
+ </p>
39
+
40
+ </div>
30
41
 
31
42
  ## Features
32
43
 
33
44
  - **Zero Config**: Works out of the box with sensible defaults. Just `init` and go.
34
45
  - **Blazing Fast**: Generates **pure, static HTML**. No React hydration lag, no heavy bundles.
35
46
  - **Smart Search**: Built-in, **offline-capable** full-text search with fuzzy matching. No API keys required.
36
- - **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**.
37
48
  - **Rich Content**: Built-in support for Callouts, Cards, Tabs, Steps, Changelogs, and Mermaid diagrams.
38
49
  - **Theming**: Beautiful light/dark modes and multiple pre-built themes (`sky`, `ruby`, `retro`).
39
50
 
40
- ## Quick Start
41
-
42
- **Installation:**
51
+ ## Installation
43
52
 
44
53
  ```bash
45
54
  npm install -g @mgks/docmd
46
55
  ```
47
56
 
48
- **Run:**
57
+ ## Usage
58
+
59
+ ### CLI
60
+
61
+ The Command Line Interface is the primary way to interact with `docmd`.
49
62
 
50
63
  ```bash
51
- docmd init my-docs # Initialize a new project
52
- cd my-docs # Enter directory
53
- docmd dev # Start live-reloading server
54
- docmd build # Generate static site for deployment
55
- 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
56
68
  ```
57
69
 
58
- **Dev Server:**
59
-
60
- ```js
61
-
62
- _ _
63
- _| |___ ___ _____ _| |
64
- | . | . | _| | . |
65
- |___|___|___|_|_|_|___|
66
-
67
- v0.x.x
70
+ ### API
68
71
 
72
+ `docmd` exports its core engine, allowing you to build documentation programmatically within your own Node.js scripts or build tools.
69
73
 
70
- 🚀 Performing initial build...
74
+ ```javascript
75
+ const { build, buildLive } = require('@mgks/docmd');
71
76
 
72
- 👀 Watching for changes in:
73
- - Source: ./docs
74
- - Config: ./config.js
75
- - Assets: ./assets
77
+ // Trigger a standard documentation build
78
+ await build('./docmd.config.js', {
79
+ isDev: false,
80
+ preserve: true
81
+ });
76
82
 
77
- ────────────────────────────────────────
78
- SERVER RUNNING (v0.3.5)
83
+ // Trigger a Live Editor bundle build
84
+ await buildLive();
85
+ ```
79
86
 
80
- Local: http://127.0.0.1:3000
81
- Network: http://192.1.1.1:3000
87
+ ### Live Editor
82
88
 
83
- Serving: ./site
84
- ────────────────────────────────────────
85
- ```
89
+ `docmd` features a modular architecture that allows the core engine to run client-side.
86
90
 
87
- ## 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.
88
92
 
89
- ### Project Structure
93
+ ## Project Structure
90
94
 
91
95
  `docmd` keeps it simple. Your content lives in `docs/`, your config in `docmd.config.js`.
92
96
 
@@ -96,43 +100,48 @@ my-docs/
96
100
  │ ├── index.md # Homepage
97
101
  │ └── guide.md # Content page
98
102
  ├── assets/ # Images and custom CSS
99
- └── docmd.config.js # Configuration
103
+ ├── docmd.config.js # Configuration
104
+ └── package.json
100
105
  ```
101
106
 
102
- ### Configuration
107
+ ## Configuration
103
108
 
104
109
  Customize your site in seconds via `docmd.config.js`:
105
110
 
106
111
  ```javascript
107
112
  module.exports = {
108
113
  siteTitle: 'My Project',
114
+ siteUrl: 'https://mysite.com',
109
115
  srcDir: 'docs',
110
116
  outputDir: 'site',
117
+
118
+ // Theme Settings
111
119
  theme: {
112
120
  name: 'sky', // 'default', 'sky', 'ruby', 'retro'
113
- defaultMode: 'dark', // 'light' or 'dark'
121
+ defaultMode: 'system', // 'light', 'dark', or 'system'
114
122
  enableModeToggle: true
115
123
  },
124
+
125
+ // Sidebar Navigation
116
126
  navigation: [
117
127
  { title: 'Home', path: '/', icon: 'home' },
118
- { title: 'Guide', path: '/guide', icon: 'book' }
119
- ]
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
+ }
120
142
  }
121
143
  ```
122
144
 
123
- ## Live Editor
124
-
125
- `docmd` comes with a modular architecture that allows the core engine to run client-side.
126
-
127
- **Launch locally:**
128
- ```bash
129
- docmd live
130
- ```
131
- This builds and serves a local editor where you can write Markdown and see the preview instantly without any server-side processing.
132
-
133
- **Embed in your app:**
134
- You can also use the `dist/docmd-live.js` bundle to add Markdown compilation capabilities to your own web applications.
135
-
136
145
  ## Comparison
137
146
 
138
147
  | Feature | docmd | Docusaurus | MkDocs | Mintlify |
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.6",
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,27 +9,32 @@
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
  },
15
21
  "scripts": {
16
- "start": "node ./bin/docmd.js dev",
17
- "build": "node ./bin/docmd.js build",
18
- "live": "node scripts/build-live.js && npx serve dist",
19
- "postinstall": "node ./bin/postinstall.js",
22
+ "test": "node scripts/failsafe.js",
23
+ "prepublishOnly": "npm test",
24
+ "start": "node bin/docmd.js dev",
25
+ "build": "node bin/docmd.js build",
26
+ "live": "node bin/docmd.js live",
27
+ "postinstall": "node bin/postinstall.js",
20
28
  "lint": "eslint .",
21
- "format": "prettier --write .",
22
- "test": "echo \"No tests specified currently\" && exit 0"
29
+ "format": "prettier --write ."
23
30
  },
24
31
  "dependencies": {
32
+ "buffer": "^6.0.3",
25
33
  "chalk": "^4.1.2",
26
34
  "chokidar": "^5.0.0",
27
- "clean-css": "^5.3.3",
28
35
  "commander": "^14.0.2",
29
36
  "ejs": "^3.1.10",
30
37
  "esbuild": "^0.27.2",
31
- "express": "^5.2.1",
32
- "fs-extra": "^11.3.3",
33
38
  "gray-matter": "^4.0.3",
34
39
  "highlight.js": "^11.11.1",
35
40
  "lucide-static": "^0.562.0",
@@ -40,10 +45,8 @@
40
45
  "markdown-it-deflist": "^3.0.0",
41
46
  "markdown-it-footnote": "^4.0.0",
42
47
  "markdown-it-task-lists": "^2.1.1",
43
- "mermaid": "^11.12.2",
44
48
  "minisearch": "^7.2.0",
45
- "striptags": "^3.2.0",
46
- "ws": "^8.18.3"
49
+ "ws": "^8.19.0"
47
50
  },
48
51
  "devDependencies": {
49
52
  "buffer": "^6.0.3",
@@ -70,12 +73,12 @@
70
73
  },
71
74
  "repository": {
72
75
  "type": "git",
73
- "url": "git+https://github.com/mgks/docmd.git"
76
+ "url": "git+https://github.com/docmd-io/docmd.git"
74
77
  },
75
78
  "bugs": {
76
- "url": "https://github.com/mgks/docmd/issues"
79
+ "url": "https://github.com/docmd-io/docmd/issues"
77
80
  },
78
- "homepage": "https://github.com/mgks/docmd#readme",
81
+ "homepage": "https://docmd.io",
79
82
  "funding": "https://github.com/sponsors/mgks",
80
83
  "license": "MIT"
81
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
+ }