madness 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8d325be34cf8419bce877dd6e64707ff678131f334a5be4e7843f24ae097d6ca
4
- data.tar.gz: 1009807cc7b9ebf4823029cd2a08c45e77d1c3459ce14417a29845ec15d3548d
3
+ metadata.gz: f742c5a694675e084935dc8214712d1e8271adef6730e549dc14835dbe8ef136
4
+ data.tar.gz: 1476f4d96a43079be27d20999ea39e461f1c8f2e55f70b7df666118dae7a77cc
5
5
  SHA512:
6
- metadata.gz: 64289788a34000cd60f000e753f8d0efd2a71b9f65085640a4e6fdc269e002f5c5845d9dddcb1b77125fb6f821a7c24be936fbada3f4c816de2eb1274035e4c6
7
- data.tar.gz: f6410bffc01951f1a1be37a3dd405347842400eae1a432c58566fa5e48ca694e00f77bea1d9e74d4e78191adf047977812deba2f8a7c25c0ca8bd683e7e64af3
6
+ metadata.gz: 00d6ace507d19b54ddeed6b197f0b8e235dde719a1ec566ee72c1e080020b6d0f7b8f9b173c47595ab16926d0ebee118514bf5b64e6e26dbfda38209c3d392a9
7
+ data.tar.gz: ed669abcde052caca2bfbdca9e8e86d62db1f6b52732ca0d486d1690cb63871370acc30e119d85e5cebceece6e3bb4d77dae445416568334d1d1288dc1e4106b
data/README.md CHANGED
@@ -51,6 +51,7 @@ $ alias madness='docker run --rm -it -v $PWD:/docs -p 3000:3000 dannyben/madness
51
51
  - Can optionally show additional file types in the navigation menu (e.g. PDF
52
52
  files).
53
53
  - Optional support for `[[Short Link]]` syntax.
54
+ - Optional support for Mermaid diagrams.
54
55
  - Optional basic authentication.
55
56
  - Support for extended markdown syntax, such as footnotes and syntax
56
57
  highlighting.
@@ -153,6 +154,10 @@ auto_toc: true
153
154
  # enable syntax highlighter for code snippets
154
155
  highlighter: true
155
156
 
157
+ # enable mermaid diagramming and charting
158
+ # put your diagram code inside <div class='mermaid'>...</div>
159
+ mermaid: false
160
+
156
161
  # enable the copy to clipboard icon for code snippets
157
162
  copy_code: true
158
163
 
@@ -258,12 +263,24 @@ specifying internal links, where `[[Anything]]` will be converted to
258
263
  `[Anything](Anything)`, which will then be rendered as an internal link to a
259
264
  file or a directory in the same directory as the file itself.
260
265
 
266
+ ### Mermaid Diagrams and Charts
267
+
268
+ When the `mermaid` option is enabled, you may display any mermaid diagram in
269
+ your document by enclosing it in a `<div class='mermaid'>...</div>` block.
270
+
261
271
  ### Table of Contents Generation
262
272
 
263
273
  #### Site-wide
264
274
 
265
275
  To generate a Table of Contents file for the entire site (for the directories
266
- and files), run `madness --toc FILENAME`
276
+ and files), add something like this to your `.madness.yml` file:
277
+
278
+ ```yaml
279
+ toc: Table of Contents.md
280
+ ```
281
+
282
+ This directive will (re)generate the specified file whenever you start the
283
+ server.
267
284
 
268
285
  #### In-page
269
286