Giter Club home page Giter Club logo

marp-to-pages's Introduction

Deploy Marp to GitHub Pages

Presentations to Webpages: Instantly!

What?

Marp lets you create HTML slides from markdown (like this!).

This presentation is both a website and a README.md.

Why?

Treat your presentation the same way you treat code.

  • Use git to track changes
  • Pull requests to collaborate
  • Deploy automatically
  • See a problem? Open an issue!

Setup

Want to create your own?

First, create a new repo from the template repo.

Configure GitHub Pages

Open your new repo and setup publishing.

You'll typically use gh-pages as the deploy branch.

Review Build

Click on Actions tab and see if the build succeeded (it may take some time).

You should now see the generated files in the gh-pages branch.

View webpage

Open your deployed webpage to see the content.

Out of the box you should see README.md as /index.html and /README.pdf. Slides under docs/ are also converted.

Running locally

Locally you'll run commands like:

$ marp README.md -o build/README.pdf

or

$ npx @marp-team/marp-cli@latest README.md -o build/README.pdf

As a workflow step

The workflow runs an equivalent step:

- name: Marp Build (README.pdf)
  uses: docker://marpteam/marp-cli:v1.7.0
  with:
    args: README.md -o build/README.pdf
  env:
    MARP_USER: root:root

Note the args match the previous slide.

Customizing the build

Anything in the build/ folder will be deployed to GitHub Pages.

You can copy extra files or run further processing steps using other tools.

Learn more about Marp

This is a good time to learn more about Marp. Here's some resources:

Example Sites

Known sites using this action are:

Send a pull request to get your site added.

Publish your slides

When you are ready to share your presentation, commit or merge to main and your content on GitHub Pages will automatically update.

๐ŸŽ‰

Hooray!

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.