You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+45-8
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,14 @@
1
1
# Codestar theme for Marp
2
2
3
+
Contents:
4
+
3
5
-[Theme features](#features)
4
6
-[Usage](#usage)
7
+
-[Editing guidelines](#editing-guidelines)
5
8
-[Development](#development)
6
9
10
+
---
11
+
7
12
## Features
8
13
9
14
- The new Codestar styles and fonts
@@ -18,23 +23,55 @@ Quick links:
18
23
19
24
## Usage
20
25
21
-
- Install [Marp for VS Code](https://marketplace.visualstudio.com/items?itemName=marp-team.marp-vscode)
26
+
- Requirements:
27
+
- If you want to write your Markdown in VS Code with a live preview: [Marp for VS Code](https://marketplace.visualstudio.com/items?itemName=marp-team.marp-vscode)
28
+
- Or, if you want to run a live preview server: `npm install -g @marp-team/marp-cli`
29
+
22
30
- Run:
23
31
24
32
```bash
25
33
mkdir decks/presentation-name
26
34
cp example.md decks/presentation-name/slides.md
27
35
```
28
-
- Extra resource files (for example images) can go in that new folder as well
29
-
- Edit the new file in VS Code, and in the top right corner of the editor, click the preview button (or <kbd>⌘ + K, V</kbd>)
30
-
- Alternatively, you can run `marp -s --theme theme/codestar.css .`fora live server with a directory listing that you can navigatein a browser (you'll need [`marp-cli`](#development))
31
-
- Make a pull request and merge, GitHub actions will build the slides and serve them on GitHub pages (TODO: link)
32
36
33
-
### Quick links to some reference pages:
37
+
Extra resource files (for example images) can go in that new folder as well.
38
+
39
+
- Edit and preview your slides:
40
+
41
+
- VS Code: open this repository's folder, edit the new `slides.md` file, and in the top right corner of the editor, click the preview button (or <kbd>⌘ + K, V</kbd>).
42
+
43
+
- `marp-cli`: from this repo's root, run `marp -s --theme theme/codestar.css .` to start a live server with a directory listing that you can navigate in a browser.
44
+
45
+
- Make a pull request and merge. GitHub actions will build the slides and serve them on our [decks listing hosted on GH pages](https://code-star.github.io/codestar-marp/).
46
+
47
+
## Editing guidelines
48
+
49
+
- Fill all the metadata in the front matter
50
+
- Keep the `div` structure of the title card intact
51
+
- Make sure to update the QR code's link by replacing `example/` with the name of your presentation's directory.
52
+
- If you prefer a dark theme, uncomment `class: invert`in the front matter.
53
+
- Keep section title cards short, with at most a subtitle.
54
+
- Presenter notes can be added using regular HTML comments, and will be visible on each slide when using the presenter mode. To start presenter mode, move the mouse over the presentation and click the right button on the toolbar.
55
+
- Metadata directives can be changed for a particular slide. For example, if you want a different footer on one slide, include this:
56
+
57
+
```html
58
+
<!-- _footer: This slide has a different footer! -->
59
+
```
60
+
61
+
If you want a slide without a footer or header, add:
62
+
63
+
```html
64
+
<!-- _header: '' -->
65
+
<!-- _footer: '' -->
66
+
```
67
+
- For reference on other formatting options, slide layouts, slide backgrounds, etc., check out all the slides from `examples.md` (you can also watch that presentation [here](https://code-star.github.io/codestar-marp/example/)).
0 commit comments