madness 1.2.0 → 1.2.1
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 +18 -1
- data/app/public/js/vendor/mermaid.min.js +2029 -0
- data/app/views/layout.slim +5 -0
- data/lib/madness/rendering/handler.rb +2 -2
- data/lib/madness/rendering/pandoc.rb +3 -3
- data/lib/madness/rendering/redcarpet.rb +2 -3
- data/lib/madness/settings.rb +1 -0
- data/lib/madness/templates/madness.yml +4 -0
- data/lib/madness/version.rb +1 -1
- metadata +18 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f742c5a694675e084935dc8214712d1e8271adef6730e549dc14835dbe8ef136
|
4
|
+
data.tar.gz: 1476f4d96a43079be27d20999ea39e461f1c8f2e55f70b7df666118dae7a77cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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),
|
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
|
|