Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slidy.js rather than slidy.js.gz required for standalone slidy presentations #795

Closed
GeraldLoeffler opened this issue Mar 22, 2013 · 0 comments

Comments

@GeraldLoeffler
Copy link

I need to create a completely stand-alone slidy presentation, i.e. one that does not reference remote URLs.

Using "-s -t slidy" retains references to http://www.w3.org/Talks/Tools/Slidy2 (as documented). As documented, this remote URL can successfully be overwritten with the option "-V slidy-url:Slidy2", where Slidy2 is a local directory unpacked from http://www.w3.org/Talks/Tools/Slidy2/slidy.zip .

However, one of the two references to the local Slidy2 directory included in the generated presentation HTML file is "Slidy2/scripts/slidy.js.gz". It turns out, that at least Chrome will not accept a local zipped JavaScript file. Slidy also provides an unzipped JavaScript file, and, indeed, manually editing that URL in the generated HTML file to point to "Slidy2/scripts/slidy.js" makes the whole offline slidy presentation work.

So: i suggest that pandoc needs an additional variable "slidy-zipped-js" that by default should be true but can be set to false if used together with slidy-url to point to a local unpacked slidy installation, i.e. "-s -t slidy -V slidy-url:Slidy2 -V slidy-zipped-js:false" will result in a link to "Slidy2/scripts/slidy.js" being added to the generated HTML file (instead of the "Slidy2/scripts/slidy.js.gz" if slidy-zipped-js is true).

@jgm jgm closed this as completed in 942b7b8 Mar 26, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant