This is a template repository for creating slides with Marp.
- Click the "Use this template" button to create a new repository.
- Enable GitHub Actions to build and deploy your slide:
- Navigate to
https://github.com/{username}/{repository-name}/settings/pages
and selectGitHub Actions
as the source.
- Navigate to
- Write your slide content in the
slides
directory:- To split your slide into multiple files, create
{number}_{title}.md
files in theslides
directory. - Files are sorted numerically by number and then concatenated. See the "Warning" section for details.
- Files under the
slides
directory will be copied to thebuild
directory. Therefore, please place images and other assets here.
- To split your slide into multiple files, create
- Push changes to the
main
branch. - Your slide will be published at
https://<username>.github.io/<repository-name>
🤗
This template uses the honwaka-theme as the default theme. You can customize the theme by editing the Makefile
and .marprc.yml
files.
- Edit
Makefile
:- Modify
THEME_NAME
andTHEME_REPO
to your theme. (THEME_REPO = https://github.com/{username}/{theme-repository}
. andTHEME_NAME = {theme-repository}
)
- Modify
- Edit
.marprc.yml
:- Change the
theme
field to your desired theme.
- Change the
- Install the Marp CLI.
- Run
make all
to build the slide in thebuild/
directory:- This command generates
.html
,.pdf
, and.pptx
files. Individual targets likemake html
,make pdf
, andmake pptx
are also available.
- This command generates
make preview
to start a local server and open your slide in a browser for preview.
When splitting slides into multiple files, follow these rules:
- Files are sorted before concatenation based on their names, so using
{number}_{title}.md
is recommended. - YAML front matter is only applied from the first file:
- The first file retains its YAML front matter. Subsequent files are concatenated without YAML front matter.