siygle / slack-future-platform-demo

My internal tech share about the Slack next generation app platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Marp CLI example

Open in Visual Studio Code

The good starter example for using Marp via Marp CLI.

See published slide deck

Lighthouse

Acquired all 100% Lighthouse scores

Usage

It's surprisingly easy to start publishing your slide deck!

GitHub Pages

Create a new public repository based on this repository, from "Use this template" button!

We already have GitHub Actions workflow to build and deploy from master to gh-pages automatically. All you have got to turn on GitHub Pages with gh-pages branch from "Settings" tab.

Netlify

Push "Deploy to netlify" button. Netlify will create your repository based on this example and host website from master branch automatically.

Deploy to Netlify

Vercel

Push "Deploy" button. Vercel can choose to create your repository into GitHub / GitLab / BitBucket based on this example.

Deploy to Vercel

ℹ️ The auto-generated open graph image is not available in deployment through Vercel.

How to write

For Marp slide deck features, please see the documentation of Marpit Markdown, the features of Marp Core, and the default example in PITCHME.md for .

You have to install Node.js and run npm i at first if you want to write slide deck with Marp CLI.

Edit deck

Just edit PITCHME.md!

Preview deck

Marp for VS Code extension is the best partner for writing Marp slide deck with live preview.

You can try edit and preview on the web now! Open https://github.dev/yhatt/marp-cli-example/blob/master/PITCHME.md or hit . key on this repository, and install Marp for VS Code extension.

Preview via CLI

npm run start

It will be opened preview window via installed Google Chrome, and track change of PITCHME.md.

Assets and themes

  • assets directory can put your assets for using in the deck. (e.g. Image resources)
  • themes directory can put custom theme CSS. To use in the deck, please change theme global directive.

Build deck via CLI

npm run build

The built assets will output to dist folder.

Build per assets

npm run deck      # Output static HTML to dist/index.html
npm run og-image  # Output image for Open Graph to dist/og-image.jpg

LICENSE

WTFPL

About

My internal tech share about the Slack next generation app platform

License:Do What The F*ck You Want To Public License


Languages

Language:JavaScript 74.1%Language:CSS 25.9%