summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README9
-rw-r--r--src/Text/Pandoc/Writers/HTML.hs3
m---------templates10
3 files changed, 15 insertions, 7 deletions
diff --git a/README b/README
index 412757264..0ade5ee99 100644
--- a/README
+++ b/README
@@ -543,6 +543,11 @@ depending on the output format, but include:
: date of document, as specified in title block
`lang`
: language code for HTML documents
+`slidy-url`
+: base URL for Slidy documents (defaults to
+ `http://www.w3.org/Talks/Tools/Slidy2`)
+`s5-url`
+: base URL for S5 documents (defaults to `ui/default`)
Variables may be set at the command line using the `-V/--variable`
option. This allows users to include custom variables in their
@@ -1907,7 +1912,9 @@ block. Each level-one header and horizontal rule begins a new slide.
The file produced by pandoc with the `-s/--standalone` option embeds a
link to javascripts and CSS files, which are assumed to be available at
the relative path `ui/default` (for S5) or at the Slidy website at
-`w3.org` (for Slidy). If the `--offline` option is specified, the
+`w3.org` (for Slidy). (These paths can be changed by setting the
+`slidy-url` or `s5-url` variables; see `--variable`, above.)
+If the `--offline` option is specified, the
scripts and CSS will be included directly in the generated file, so that
it may be used offline.
diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs
index 8492e59c0..573adbf4a 100644
--- a/src/Text/Pandoc/Writers/HTML.hs
+++ b/src/Text/Pandoc/Writers/HTML.hs
@@ -172,7 +172,8 @@ inTemplate opts tit auths date toc body' newvars =
, ("title", dropWhile (=='\n') $ showHtmlFragment tit)
, ("date", date')
, ("idprefix", writerIdentifierPrefix opts)
- ] ++
+ , ("slidy-url", "http://www.w3.org/Talks/Tools/Slidy2")
+ , ("s5-url", "ui/default") ] ++
[ ("html5","true") | writerHtml5 opts ] ++
(case toc of
Just t -> [ ("toc", showHtmlFragment t)]
diff --git a/templates b/templates
-Subproject 8cd8b19598fa898498a7883d081f51615aa5fc1
+Subproject 88e782fa8ea90b175701a260054bb8e9500e712