GithubHelp home page GithubHelp logo

Comments (12)

shangxiao avatar shangxiao commented on June 7, 2024 1

Would be awesome to just auto gen HTML with a command then push up on gh-pages!

from reveal-md.

webpro avatar webpro commented on June 7, 2024

Not sure if I understand. You can provide a directory and see the Markdown
files. What exactly do you need?

On Sunday, 27 September 2015, Justin Kiggins [email protected]
wrote:

I love using reveal.md & how it lets me go quickly from outline to a
presentation. However, then I find myself wanting to more carefully tweak a
presentation & I want access to the full HTML.

I'd love to be able to run reveal-md slides.md --html and get a directory
called slides with an HTML file & required assets.

โ€”
Reply to this email directly or view it on GitHub
#47.

Sent from Gmail Mobile

from reveal-md.

mandeeps708 avatar mandeeps708 commented on June 7, 2024

As I understood, he wants a feature to export the presentation as HTML. Once the required command is fired, all the necessary files(CSS, JS, images etc.) should be stored in a different directory along with an index.html file.
It would be useful for porting the presentation to a different computer(that don't have nodejs and reveal-md) and present it just by double clicking index.html in browser.

from reveal-md.

neuromusic avatar neuromusic commented on June 7, 2024

yes, exactly.

from reveal-md.

webpro avatar webpro commented on June 7, 2024

OK thanks for explanation.

The browser has a "Save page" option that does the same?

On Sunday, 27 September 2015, Justin Kiggins [email protected]
wrote:

yes, exactly.

โ€”
Reply to this email directly or view it on GitHub
#47 (comment).

Sent from Gmail Mobile

from reveal-md.

mandeeps708 avatar mandeeps708 commented on June 7, 2024

No. I tried it once, and I got a blank page(on Chrome at least).
@neuromusic Can you please try again and tell?

from reveal-md.

webpro avatar webpro commented on June 7, 2024

What exactly were the issues? Because if we would have an "export to HTML" feature, it would do pretty much the same, right?

from reveal-md.

shangxiao avatar shangxiao commented on June 7, 2024

Saving as a complete web page from Chrome doesn't work.

A few links to resources seem to be generated on the fly with paths like /plugin/markdown/marked.js. Saving HTML from Chrome flattens everything in a folder named after the file you save the HTML to and rewrites all the references it found from <script> and <link> tags. This rewrite step would be missing the paths embedded in js.

from reveal-md.

jsanz avatar jsanz commented on June 7, 2024

wow yes, an option to export the presentation as a static HTML instead of starting a server would be really awesome!! ๐Ÿ‘

from reveal-md.

xy124 avatar xy124 commented on June 7, 2024

I guess I did something like this now :)
use e.g.
reveal-md example.md --static > reveal.js/index.html
As you see you have to download the reveal.js to some place and extract the folder to save the exported static html file right there.

The pull request is this: #55

Maybe some one wants to build something that compiles all assets into one single html file. There probably is already a package somewhere on npm that can do exactly this

from reveal-md.

HoverBaum avatar HoverBaum commented on June 7, 2024

A bit more on the issue with Ctrl + S and temporary solution.

Using Ctrl + S I get a website referencing resources as such:
<link rel="stylesheet" href="./Reveal_files/reveal.css">

Using Ctrl + U to view at the source of the page the link becomes:
<link rel="stylesheet" href="/css/reveal.css">

Now the later I can save to an index.html and put it in a folder with the reveal.js resources to have a html version of the presentation. I feel like this is what @rapilabs was talking about, but hopefully more clearly illustrates the issue with just "saving" the website.

It would be a really great feature to get a single .html that I can then just move around and open anywhere. With all the js and css files included. Idealy I think even all the image base64 encoded in it.

from reveal-md.

skorokithakis avatar skorokithakis commented on June 7, 2024

Thanks, @xy124. I installed this library thinking I could export to HTML, but it's not useful to me if it can't. I'll try using your fork for now, thanks again.

from reveal-md.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.