madness 1.2.3 → 1.2.5
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.
- checksums.yaml +4 -4
- data/README.md +15 -21
- data/app/public/js/vendor/mermaid.min.js +1599 -817
- data/lib/madness/cli.rb +2 -2
- data/lib/madness/commands/config.rb +3 -3
- data/lib/madness/directory.rb +1 -0
- data/lib/madness/document.rb +1 -0
- data/lib/madness/inline_table_of_contents.rb +1 -0
- data/lib/madness/item.rb +1 -0
- data/lib/madness/markdown_document.rb +1 -0
- data/lib/madness/navigation.rb +1 -0
- data/lib/madness/search.rb +1 -0
- data/lib/madness/server.rb +1 -1
- data/lib/madness/settings.rb +2 -3
- data/lib/madness/templates/madness.yml +2 -2
- data/lib/madness/version.rb +1 -1
- metadata +8 -15
- data/lib/madness/refinements/hash_refinements.rb +0 -14
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bd23bce526e8a8f0292bb76d566e374b11dcfbc9098ffe3bd917aaa5882e280c
|
|
4
|
+
data.tar.gz: 63f3098a8a7bd3a38433c133ce3d17960bbb6f9518234b6acd81a4af471ef91c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cbc4a3ed4eaa5128c3b5bc15ace61e051d01dfa40ef3aaa0541e66a32867791234c6c74a97226a3322faa36292a1ea6e6a40005913df121899d98df76c769ade
|
|
7
|
+
data.tar.gz: 987e1dab1dfeee1163d633c96a55f7fbbaddb91c81ec087107e12d7fa63ef5f8f64d79bffe277c171bf5ebfc63deaff2d5ec2f0f31038c27c29b244e6ab3b344
|
data/README.md
CHANGED
|
@@ -2,12 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
# Madness - Instant Markdown Server
|
|
4
4
|
|
|
5
|
-
[](https://badge.fury.io/rb/madness)
|
|
6
|
-
[](https://github.com/DannyBen/madness/actions?query=workflow%3ATest)
|
|
7
|
-
[](https://codeclimate.com/github/DannyBen/madness/maintainability)
|
|
8
|
-
|
|
9
|
-
---
|
|
10
|
-
|
|
11
5
|
Madness is a command line server for rendering markdown documents in your
|
|
12
6
|
browser. It is designed to facilitate easy development of internal
|
|
13
7
|
markdown-based documentation sites.
|
|
@@ -155,8 +149,8 @@ auto_toc: true
|
|
|
155
149
|
highlighter: true
|
|
156
150
|
|
|
157
151
|
# enable mermaid diagramming and charting
|
|
158
|
-
# put your diagram code inside
|
|
159
|
-
mermaid:
|
|
152
|
+
# put your diagram code inside ```mermaid ... ``` code fence
|
|
153
|
+
mermaid: true
|
|
160
154
|
|
|
161
155
|
# enable the copy to clipboard icon for code snippets
|
|
162
156
|
copy_code: true
|
|
@@ -270,19 +264,7 @@ file or a directory in the same directory as the file itself.
|
|
|
270
264
|
When the `mermaid` option is enabled, you can embed Mermaid diagrams in your
|
|
271
265
|
document using either of the following methods:
|
|
272
266
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
```html
|
|
276
|
-
<div class="mermaid">
|
|
277
|
-
graph TD;
|
|
278
|
-
A-->B;
|
|
279
|
-
A-->C;
|
|
280
|
-
B-->D;
|
|
281
|
-
C-->D;
|
|
282
|
-
</div>
|
|
283
|
-
```
|
|
284
|
-
|
|
285
|
-
2. **Using a code fence with `mermaid` language specifier**:
|
|
267
|
+
**Using a code fence with `mermaid` language specifier**:
|
|
286
268
|
|
|
287
269
|
````markdown
|
|
288
270
|
```mermaid
|
|
@@ -293,6 +275,18 @@ document using either of the following methods:
|
|
|
293
275
|
C-->D;
|
|
294
276
|
```
|
|
295
277
|
````
|
|
278
|
+
|
|
279
|
+
**Using a `<div>` block with `mermaid` class**:
|
|
280
|
+
|
|
281
|
+
```html
|
|
282
|
+
<div class="mermaid">
|
|
283
|
+
graph TD;
|
|
284
|
+
A-->B;
|
|
285
|
+
A-->C;
|
|
286
|
+
B-->D;
|
|
287
|
+
C-->D;
|
|
288
|
+
</div>
|
|
289
|
+
```
|
|
296
290
|
|
|
297
291
|
### Table of Contents Generation
|
|
298
292
|
|