GithubHelp home page GithubHelp logo

Generate static site about reveal-md HOT 15 CLOSED

webpro avatar webpro commented on May 28, 2024
Generate static site

from reveal-md.

Comments (15)

maxlath avatar maxlath commented on May 28, 2024

@hugozap that's also what I'm looking for, did you a way to do that?

from reveal-md.

webpro avatar webpro commented on May 28, 2024

Maybe a service like https://ngrok.com or https://localtunnel.me is what you guys are after? Just Google for "share local website".

from reveal-md.

maxlath avatar maxlath commented on May 28, 2024

@webpro no, it's more about doing something like
reveal-md slides.md --build-static dist/
which would package the html/css/javascript to be hosted has a static page (like a github page)

from reveal-md.

webpro avatar webpro commented on May 28, 2024

Ah. That shouldn't be too hard. It's just writing to HTML files instead of res.send-ing it with Express.

from reveal-md.

maxlath avatar maxlath commented on May 28, 2024

indeed! just tried to

    res.send(build)
    fs.writeFile('./index.html', build)

and got my html file!
All that was missing then was then to correct the links to the associated reveal css and js files (and also my images), and done :)

from reveal-md.

webpro avatar webpro commented on May 28, 2024

So maybe you can send a PR to put this behind e.g. --dist [dir]?

from reveal-md.

maxlath avatar maxlath commented on May 28, 2024

I tried to have a look at that, but I'm a bit confused on how to use commander to get the options, gather reveal files and handle href and src possible need to be rewritten

from reveal-md.

justmytwospence avatar justmytwospence commented on May 28, 2024

theoretically this could even be integrated with GitHub pages, and a --publish option added

from reveal-md.

devinshields avatar devinshields commented on May 28, 2024

--publish is what I'm looking for, similar to make html found in python's sphinx tool

markdown -> render -> gh-pages is really powerful, mostly because it's so easy.

from reveal-md.

agonzalezro avatar agonzalezro commented on May 28, 2024

Was this closed because it was fixed or for cleaning the open issues?

I just started using your project (thanks!) and I would like to generate a .html file that I can use in my gh-pages. It doesn't look like there is an easy way of doing that at the moment.

Could you perhaps add some workaround explanation to the README.md?

from reveal-md.

webpro avatar webpro commented on May 28, 2024

It was a cleanup round indeed, apologies for not making that clear. I'm
happy to re-open if somebody offers an actual solution or work-around.

On Sunday, June 21, 2015, Alexandre González [email protected]
wrote:

Was this closed because it was fixed or for cleaning the open issues?

I just started using your project (thanks!) and I would like to generate a
.html file that I can use in my gh-pages. It doesn't look like there is
an easy way of doing that at the moment.

Could you perhaps add some workaround explanation to the README.md?


Reply to this email directly or view it on GitHub
#24 (comment).

Sent from Gmail Mobile

from reveal-md.

mandeeps708 avatar mandeeps708 commented on May 28, 2024

Is there any way out to have my presentation saved on disk?
In which file I should edit

  res.send(build)
    fs.writeFile('./index.html', build)

according to @maxlath

from reveal-md.

webpro avatar webpro commented on May 28, 2024

Or simply a "save page" in the browser.

from reveal-md.

mandeeps708 avatar mandeeps708 commented on May 28, 2024

But nothing was rendered on the browser when I opened the saved HTML document.

from reveal-md.

mandeeps708 avatar mandeeps708 commented on May 28, 2024

Is there another way out?
Can you give me solution that was used by @maxiath?
I mean which file to modify to be able to render html.

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.