Sample product repository with a library of Marp presentations
This repository contains a collection of Marp presentations about our product. Marp allows you to create beautiful slide decks using Markdown, and GitHub Actions automatically converts them to HTML that can be viewed on GitHub Pages.
.
βββ presentations/ # Source Markdown files for presentations
β βββ example-presentation.md
β βββ features-deep-dive.md
βββ .github/
β βββ workflows/
β βββ marp-to-pages.yml # GitHub Actions workflow
βββ README.md
- Create Presentations: Add Marp-formatted Markdown files to the
presentations/directory - Automatic Build: When changes are pushed to
main, GitHub Actions automatically:- Converts all
.mdfiles inpresentations/to HTML - Creates an index page listing all presentations
- Deploys everything to GitHub Pages
- Converts all
- View Online: Access your presentations at the GitHub Pages URL
- Create a new
.mdfile in thepresentations/directory - Start with the Marp frontmatter:
---
marp: true
theme: default
paginate: true
---
# Your Presentation Title
Your content here
---
## Slide 2
More content...- Commit and push to the
mainbranch - GitHub Actions will automatically build and deploy your presentation
Marp supports many features including:
- Multiple themes (default, gaia, uncover)
- Pagination
- Custom CSS
- Image backgrounds
- Code syntax highlighting
- Math expressions (KaTeX)
- And much more!
Learn more at Marp Documentation
To preview your presentations locally before committing:
- Install Marp CLI:
npm install -g @marp-team/marp-cli- Convert a presentation to HTML:
marp presentations/example-presentation.md --html -o output.html- Open the generated HTML file in your browser
To enable GitHub Pages for this repository:
- Go to repository Settings β Pages
- Under "Source", select "GitHub Actions"
- The workflow will automatically deploy on the next push to
main
- Only
.mdfiles in thepresentations/directory will be converted - The workflow runs on pushes to
mainthat affect presentation files - You can also manually trigger the workflow from the Actions tab
- Built presentations are available at:
https://[username].github.io/[repository]/
This repository is licensed under the terms specified in the LICENSE file.