Skip to content

Export of Reveal.js slides #545

Closed
Closed

Description

@zeigerpuppy

It would be great to be able to export a .zip file with all the files required for an offline reveal.js slide presentation.

This could then be loaded from a local folder.

To achieve this the following would be required:

  1. export .md file
  2. export js and css folders for reveal.js
  3. export uploaded images
  4. rewrite links (if necessary), actually image upload links should be relative anyway.

This would be really useful as a backup for presentations

Activity

  1. added
    feature
    on Oct 6, 2017
  2. SISheogorath commented on Oct 6, 2017

    @SISheogorath
    Contributor

    As a workaround, you can print the slides to PDF. See #33 (comment)

  3. added
    import/export
    on Oct 6, 2017
  4. Marwe commented on Oct 17, 2017

    @Marwe

    use "save as" in your browser, e.g via right-click or ctrl-s

  5. Profpatsch commented on Apr 23, 2018

    @Profpatsch

    wget --recursive --convert-links did the trick for me.

  6. SISheogorath commented on Jun 24, 2018

    @SISheogorath
    Contributor

    With #863 We should provide an easy way to print slides and this way export them.

    I don't see the need to add a more complex export.

    If one wants the slides offline, we offer to download the markdown. Integrating it in his revealjs should be doable or they can just use PDF based slides or the online version.

  7. zeigerpuppy commented on Aug 14, 2018

    @zeigerpuppy
    Author

    I have found a way to save an archive of a slide presentation built with codimd.
    I had some trouble getting wget to pull the images from the presentation (I think because the links to the images are in markdown).

    So, it's a three step process but it's quick and works well.
    Let's say you have a slide show at https://codimd.server.net/p/S1PIjfhM8#/

    1. use wget to grab the files and the requisites (.css and .js)
    • your presentation will end up as p/S1PIjfhM8.html
    wget   --recursive   --no-clobber   --page-requisites   \
    --html-extension   --convert-links   \
    --domains codimd.server.net \
    https://codimd.server.net/p/S1PIjfhM8#/
    
    1. use the firefox plugin: Image Picka
    • use the save pattern: Image_Picka/uploads/${name}${ext}
    • it gets all images on page (including .svg)
    • move the images to the folder called uploads in the web archive root
    1. we need to use sed to change the links in the html file to relative links so that they point to the images
    cd p
    sed -i .bak 's|/uploads/upload_|../uploads/upload_|g' S1PIjfhM8.html
    

    Then you'll have a full copy of the slides that you can run offline. It's also good for archive purposes.

    It'd be great if something like this was also built into the codimd program under the save options, maybe save slides.

  8. ostrokach commented on Nov 1, 2019

    @ostrokach

    I have had success with the Save All Resources chrome extension. The only issue is that it uses the browser cache for all external assets, so if you purge your cache (for example, by pressing Ctrl + Shift + R), the offline presentation stops working.

  9. added a commit that references this issue on Dec 16, 2020
    bd11faa
  10. cboulanger commented on May 28, 2024

    @cboulanger

    As far as this is useful for anyone, I put together a script that lets you create a self-contained copy of the Reveal.js presentation integrated in the HedgeDoc platform, at least as it is implemented on https://pad.gwdg.de. The code is here. It only works with https://pad.gwdg.de but should give you a clue how to write a script for other Reveal.js integrations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureimport/export

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions