diff options
| author | s-ol <s+removethis@s-ol.nu> | 2025-06-12 13:29:59 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2025-06-12 13:35:43 +0000 |
| commit | a668ad6c7523c010b129d9c21fdf90830bcbf77b (patch) | |
| tree | 2d06e4c429dc12e6577ee01fe992a7f41d2bab8d /docs/gen/index | |
| parent | line comments (diff) | |
| download | alive-a668ad6c7523c010b129d9c21fdf90830bcbf77b.tar.gz alive-a668ad6c7523c010b129d9c21fdf90830bcbf77b.zip | |
use cmark instead of discount for markdown docs
Diffstat (limited to 'docs/gen/index')
| -rwxr-xr-x | docs/gen/index | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/gen/index b/docs/gen/index index 1536645..c2eef6b 100755 --- a/docs/gen/index +++ b/docs/gen/index @@ -1,9 +1,8 @@ #!/usr/bin/env moon require 'alv' -import render, layout, autoref, subnav from require 'docs.gen.layout' +import compile, render, layout, autoref, subnav from require 'docs.gen.layout' import section, h1, h2, p, ul, li, a, code from require 'docs.gen.dom' import get_module from require 'docs.gen.shim' -import compile from require 'discount' export OUT @@ -27,7 +26,7 @@ for file in *arg[3,] summary = if mod.meta then ": #{mod.meta.summary}" else '' md ..= " - [`#{modname}`](module/#{name}.html)#{summary}\n" -content = compile (autoref md), 'githubtags', 'fencedcode' +content = compile autoref md sub = subnav [a for a in *arg[3,]] spit OUT, layout - body: table.concat { sub, content.body }, '\n\n' + body: table.concat { sub, content }, '\n\n' |
