@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.
- package/LICENSE +1 -1
- package/README.md +86 -77
- package/bin/docmd.js +13 -16
- package/bin/postinstall.js +4 -4
- package/package.json +19 -16
- package/src/assets/css/docmd-highlight-dark.css +86 -1
- package/src/assets/css/docmd-highlight-light.css +86 -1
- package/src/assets/css/docmd-main.css +544 -464
- package/src/assets/css/docmd-theme-retro.css +105 -106
- package/src/assets/css/docmd-theme-ruby.css +92 -92
- package/src/assets/css/docmd-theme-sky.css +63 -64
- 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/js/docmd-image-lightbox.js +2 -2
- package/src/assets/js/docmd-main.js +14 -6
- package/src/assets/js/docmd-mermaid.js +1 -1
- package/src/assets/js/docmd-search.js +1 -1
- package/src/commands/build.js +71 -370
- package/src/commands/dev.js +199 -72
- package/src/commands/init.js +135 -134
- package/src/commands/live.js +145 -0
- package/src/core/asset-manager.js +72 -0
- package/src/core/config-loader.js +2 -2
- package/src/core/config-validator.js +1 -1
- package/src/core/file-processor.js +13 -9
- package/src/core/fs-utils.js +40 -0
- package/src/core/html-formatter.js +97 -0
- package/src/core/html-generator.js +61 -65
- package/src/core/icon-renderer.js +1 -1
- package/src/core/logger.js +1 -1
- package/src/core/markdown/containers.js +1 -1
- package/src/core/markdown/renderers.js +1 -1
- package/src/core/markdown/rules.js +1 -2
- package/src/core/markdown/setup.js +1 -1
- package/src/core/navigation-helper.js +1 -1
- package/src/index.js +12 -0
- package/src/live/core.js +5 -1
- package/src/live/index.html +16 -1
- package/src/live/live.css +157 -68
- package/src/plugins/analytics.js +1 -1
- package/src/plugins/seo.js +26 -36
- package/src/plugins/sitemap.js +2 -2
- package/src/templates/layout.ejs +50 -81
- package/src/templates/navigation.ejs +23 -76
- package/src/templates/no-style.ejs +115 -129
- package/src/templates/partials/theme-init.js +1 -1
- package/src/templates/toc.ejs +6 -35
- package/docmd.config.js +0 -175
- package/scripts/build-live.js +0 -157
- package/scripts/test-live.js +0 -54
- package/src/assets/images/docmd-logo.png +0 -0
- package/src/live/templates.js +0 -9
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,92 +1,96 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
<
|
|
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
|
-
|
|
11
|
-
<
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
</
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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 anywhere
|
|
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
|
-
##
|
|
41
|
-
|
|
42
|
-
**Installation:**
|
|
51
|
+
## Installation
|
|
43
52
|
|
|
44
53
|
```bash
|
|
45
54
|
npm install -g @mgks/docmd
|
|
46
55
|
```
|
|
47
56
|
|
|
48
|
-
|
|
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
|
|
52
|
-
|
|
53
|
-
docmd
|
|
54
|
-
docmd
|
|
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
|
-
|
|
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
|
-
|
|
74
|
+
```javascript
|
|
75
|
+
const { build, buildLive } = require('@mgks/docmd');
|
|
71
76
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
77
|
+
// Trigger a standard documentation build
|
|
78
|
+
await build('./docmd.config.js', {
|
|
79
|
+
isDev: false,
|
|
80
|
+
preserve: true
|
|
81
|
+
});
|
|
76
82
|
|
|
77
|
-
|
|
78
|
-
|
|
83
|
+
// Trigger a Live Editor bundle build
|
|
84
|
+
await buildLive();
|
|
85
|
+
```
|
|
79
86
|
|
|
80
|
-
|
|
81
|
-
Network: http://192.1.1.1:3000
|
|
87
|
+
### Live Editor
|
|
82
88
|
|
|
83
|
-
|
|
84
|
-
────────────────────────────────────────
|
|
85
|
-
```
|
|
89
|
+
`docmd` features a modular architecture that allows the core engine to run client-side.
|
|
86
90
|
|
|
87
|
-
|
|
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
|
-
|
|
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
|
-
|
|
103
|
+
├── docmd.config.js # Configuration
|
|
104
|
+
└── package.json
|
|
100
105
|
```
|
|
101
106
|
|
|
102
|
-
|
|
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: '
|
|
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
|
-
{
|
|
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
|
-
|
|
56
|
-
|
|
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
|
-
|
|
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();
|
package/bin/postinstall.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
//
|
|
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.
|
|
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.
|
|
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
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
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
|
-
"
|
|
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/
|
|
76
|
+
"url": "git+https://github.com/docmd-io/docmd.git"
|
|
74
77
|
},
|
|
75
78
|
"bugs": {
|
|
76
|
-
"url": "https://github.com/
|
|
79
|
+
"url": "https://github.com/docmd-io/docmd/issues"
|
|
77
80
|
},
|
|
78
|
-
"homepage": "https://
|
|
81
|
+
"homepage": "https://docmd.io",
|
|
79
82
|
"funding": "https://github.com/sponsors/mgks",
|
|
80
83
|
"license": "MIT"
|
|
81
84
|
}
|
|
@@ -1 +1,86 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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
|
+
}
|