Commit 7c551421 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Corrige les règles de build pour pandoc.

No related merge requests found
Pipeline #11144 passed with stage
in 33 seconds
Showing with 13 additions and 21 deletions
+13 -21
REVEALJS_DEFAULT_CONFIG = {
"width": "1024",
"height": "768",
"transitionSpeed": "fast",
"lang": "fr-FR",
"history": "true",
"navigationMode": "linear",
"fragmentInURL": "true",
"revealjs-url": "../reveal.js",
"theme": "inrae",
"slideNumber": "true",
}
def pandoc(name: str, src: str = None, out: str = None, toc_depth: int = 1, slide_level: int = 2, config: dict = {}, pandoc_args: list = []):
if src is None:
src = '%s/index.md' % name
......@@ -29,11 +42,3 @@ def pandoc(name: str, src: str = None, out: str = None, toc_depth: int = 1, slid
outs = [out],
tools = ["///tools/pandoc//:bin"]
)
def presentation(name: str, **kwargs):
return filegroup(
name = name,
srcs = [
pandoc(name, **kwargs),
] + glob(["%s/**" % name], exclude = ["index.md"])
)
REVEALJS_DEFAULT_CONFIG = {
"width": "1024",
"height": "768",
"transitionSpeed": "fast",
"lang": "fr-FR",
"history": "true",
"navigationMode": "linear",
"fragmentInURL": "true",
"revealjs-url": "../reveal.js",
"theme": "inrae",
"slideNumber": "true",
}
def minify(src: str, out: str):
return genrule(
name = "minify_%s" % src.replace("/", "_"),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment