forked from ti-nuage/site
Factorisation du style des comptes-rendus.
Le commit définitif devrait référencer metalsmith-groff 0.4.0.
This commit is contained in:
@@ -22,6 +22,8 @@ const markdownRenderer = new marked.Renderer()
|
||||
|
||||
const m = markdownRenderer.link
|
||||
|
||||
const { join } = require('path')
|
||||
|
||||
markdownRenderer.link = function (href, title, text) {
|
||||
let out = m.apply(this, [href, title, text])
|
||||
|
||||
@@ -56,7 +58,10 @@ module.exports = new Metalsmith(config.paths.projectRoot)
|
||||
source: './assets/' + (process.env.NODE_ENV || 'dev'),
|
||||
destination: './'
|
||||
}))
|
||||
.use(groff())
|
||||
.use(groff({
|
||||
macroPackages: ['mm', 'tinuage'],
|
||||
macroPaths: [join(config.paths.projectRoot, 'scripts/tmac')]
|
||||
}))
|
||||
.use(markdown({
|
||||
gfm: false,
|
||||
headerIds: false,
|
||||
|
||||
15
scripts/tmac/tinuage.tmac
Normal file
15
scripts/tmac/tinuage.tmac
Normal file
@@ -0,0 +1,15 @@
|
||||
.ds HP +2 +1
|
||||
.ds HF I B
|
||||
.\" Une macro pour décrire les personnes présentes à la réunion.
|
||||
.\" Le seul paramètre attendu est la liste des personnes.
|
||||
.de PRESENT
|
||||
.P
|
||||
.sp .4
|
||||
.LP
|
||||
\fIPr\[u00E9]sent(e)s : \\$1\fI
|
||||
..
|
||||
.\" Une macro pour afficher les URLs dans un style habituel.
|
||||
.de URL
|
||||
.I \m[blue]\\$1\m[]
|
||||
..
|
||||
\R'Hu 1'
|
||||
Reference in New Issue
Block a user