Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 41eebac1 authored by Simon Tournier's avatar Simon Tournier
Browse files

doc/build: Read date from Markdown file.

* doc/build.scm (markdown->latex)<build>: Rely on commondmark reader from
Skribilo.
parent 699bdb55
No related branches found
No related tags found
No related merge requests found
...@@ -247,8 +247,16 @@ directory containing LaTeX files." ...@@ -247,8 +247,16 @@ directory containing LaTeX files."
\\includepdf[fitpaper=true, pages=-]{back.pdf} \\includepdf[fitpaper=true, pages=-]{back.pdf}
"))))) ")))))
(document (eval exp (make-user-module 'skribilo))) (document (eval exp (make-user-module 'skribilo)))
(date (or (markup-option document #:date) (date (match (markup-option document #:date)
"February 2025")) ((year month rest ...)
(let* ((month (string->number month))
(month (cond
((= month 1) "January")
((= month 2) "February")
((= month 3) "March")
(else "Too late!"))))
(string-append month " " year)))
(_ "Fix Skribilo CommonMark reader :-)")))
(authors (string-join (authors (string-join
(map (lambda (author) (map (lambda (author)
(markup-option author #:name)) (markup-option author #:name))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment