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

Export the presentation #4

Open
JimboJoe opened this issue Oct 1, 2010 · 1 comment
Open

Export the presentation #4

JimboJoe opened this issue Oct 1, 2010 · 1 comment

Comments

@JimboJoe
Copy link

JimboJoe commented Oct 1, 2010

It would be neat to be able to export the "package" (html+css's) in case of an offline DokuWiki install, and needing to make a presentation when abroad.

@daamien
Copy link

daamien commented Oct 3, 2010

Your browser can do that ! Simply click on "File > Save as" and you'll get a local copy to make an offline presentation.

However this S5 plugin has two bugs when saving offline copies

A/ the S5 themes includes in the plugin have "slides.css" file that contains the javascript command "@import url(antoher_file.css)" . Most browser don't recognize this command when they save the local copy and antoher_file.css is not downloaded locally , in result the local copy is missing some CSS specs and basiscally the local copy looks blank.

B/ Most S5 theme use a background image defined in the CSS files. Once again most browser don't understand that and the background image is not downloaded two....

The solutions are easy :

A/ simply concat the 3 imported css files files into the slides.css file :

cd s5/ui/your_theme/
mv slides.css slides.css.old
cat s5-core.css framing.css pretty.css > slides.css

B/ You must "hardlink" in the HTML page so that the browser sees it and dowload it for local copy :

In s5/renderer.php at line 79 add the following

<img src="'.$this->base.$this->tpl.'/logo.png" style="display:none;"/>

In most S5 theme the background logo is called logo.png but to be sure can do this for all the images in the directory ui/your_theme/

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

2 participants