Skip to content

Sample product repository with a library of Marp presentations

License

Notifications You must be signed in to change notification settings

dmittman/marp-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

marp-practice

Sample product repository with a library of Marp presentations

Overview

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.

πŸ“ Repository Structure

.
β”œβ”€β”€ presentations/          # Source Markdown files for presentations
β”‚   β”œβ”€β”€ example-presentation.md
β”‚   └── features-deep-dive.md
β”œβ”€β”€ .github/
β”‚   └── workflows/
β”‚       └── marp-to-pages.yml  # GitHub Actions workflow
└── README.md

πŸš€ How It Works

  1. Create Presentations: Add Marp-formatted Markdown files to the presentations/ directory
  2. Automatic Build: When changes are pushed to main, GitHub Actions automatically:
    • Converts all .md files in presentations/ to HTML
    • Creates an index page listing all presentations
    • Deploys everything to GitHub Pages
  3. View Online: Access your presentations at the GitHub Pages URL

✍️ Creating a New Presentation

  1. Create a new .md file in the presentations/ directory
  2. Start with the Marp frontmatter:
---
marp: true
theme: default
paginate: true
---

# Your Presentation Title

Your content here

---

## Slide 2

More content...
  1. Commit and push to the main branch
  2. GitHub Actions will automatically build and deploy your presentation

🎨 Marp Features

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

πŸ§ͺ Testing Locally

To preview your presentations locally before committing:

  1. Install Marp CLI:
npm install -g @marp-team/marp-cli
  1. Convert a presentation to HTML:
marp presentations/example-presentation.md --html -o output.html
  1. Open the generated HTML file in your browser

πŸ”§ GitHub Pages Setup

To enable GitHub Pages for this repository:

  1. Go to repository Settings β†’ Pages
  2. Under "Source", select "GitHub Actions"
  3. The workflow will automatically deploy on the next push to main

πŸ“ Notes

  • Only .md files in the presentations/ directory will be converted
  • The workflow runs on pushes to main that affect presentation files
  • You can also manually trigger the workflow from the Actions tab
  • Built presentations are available at: https://[username].github.io/[repository]/

πŸ“„ License

This repository is licensed under the terms specified in the LICENSE file.

About

Sample product repository with a library of Marp presentations

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •