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
# Codestar theme for Marp <imgalt="GitHub Actions Workflow Status"src="https://img.shields.io/github/actions/workflow/status/code-star/codestar-marp/build-and-deploy.yml">
2
+
3
+
4
+
Two-in-one solution for building and [hosting](https://code-star.github.io/codestar-marp/) our slide decks.
5
+
6
+

7
+
8
+
---
2
9
3
10
Contents:
4
11
5
-
-[Theme features](#features)
12
+
-[Features](#features)
6
13
-[Usage](#usage)
7
14
-[Editing guidelines](#editing-guidelines)
8
15
-[Development](#development)
@@ -11,27 +18,31 @@ Contents:
11
18
12
19
## Features
13
20
14
-
-The new Codestar styles and fonts
15
-
- Rotating slide accent colors using the Codestar palette
16
-
- Title cards with brutalist-inspired pure CSS backgrounds
21
+
-A new design using our new Codestar design language
22
+
- Rotating slide accent colors using the Codestar palette
23
+
- Title cards with brutalist-inspired pure CSS backgrounds
17
24
- Syntax highlighting using the Codestar palette, with language labeling
18
25
- Multi-column slides
26
+
- Automatic builds and hosting
27
+
- Slide decks listing
19
28
20
29
Quick links:
21
-
-[Check out the example slides here!](https://code-star.github.io/codestar-marp/example/)
30
+
-[Check out the example slide deck here!](https://code-star.github.io/codestar-marp/example/)
22
31
-[Listing of all slide decks](https://code-star.github.io/codestar-marp/)
23
32
33
+
---
34
+
24
35
## Usage
25
36
26
37
- Requirements:
27
38
- 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
39
- Or, if you want to run a live preview server: `npm install -g @marp-team/marp-cli`
29
40
30
-
-Run:
41
+
-To get started, make a new directory for your slide deck and copy the example sldes (replace `deck-name` with the title of your presentation):
31
42
32
43
```bash
33
-
mkdir decks/presentation-name
34
-
cp example.md decks/presentation-name/slides.md
44
+
mkdir decks/deck-name
45
+
cp example.md decks/deck-name/slides.md
35
46
```
36
47
37
48
Extra resource files (for example images) can go in that new folder as well.
@@ -40,20 +51,17 @@ Quick links:
40
51
41
52
- 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
53
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.
54
+
- `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 on http://localhost:8080.
44
55
45
56
- 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
57
58
+
---
59
+
47
60
## Editing guidelines
48
61
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
-
- The playful tone of some slides can be changed to formal if that's not your style (for example "any questions?" instead of "questions time").
55
-
- Leave the thank you card.
56
-
- 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.
62
+
### Metadata
63
+
64
+
- Make sure to fill all the metadata in the front matter.
57
65
- Metadata directives can be changed for a particular slide. For example, if you want a different footer on one slide, include this:
58
66
59
67
```html
@@ -66,23 +74,50 @@ Quick links:
66
74
<!-- _header: '' -->
67
75
<!-- _footer: '' -->
68
76
```
77
+
### Customization
78
+
79
+
- Make sure to **update the QR code's link** by replacing `example/` with the name of your slide deck's directory.
80
+
- If you prefer a dark theme, uncomment `class: invert`in the front matter.
81
+
- 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.
82
+
83
+
### Other guidelines
84
+
85
+
- Keep the `div` structure of the title card and the thank you slide intact
86
+
- Keep section title cards short, with at most a subtitle.
87
+
- The casual tone of some slides can be changed to a more formal toneif preferred (for example, "any questions?" instead of "questions time").
69
88
- 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/)).
- The watch script needs `fswatch` to monitor SCSS changes:
104
+
105
+
```bash
106
+
brew install fswatch
107
+
```
108
+
109
+
- Sass is needed for building the styles:
110
+
111
+
```bash
112
+
npm install -g sass
113
+
```
114
+
115
+
- And for building the actual slides:
116
+
117
+
```bash
118
+
npm install -g @marp-team/marp-cli
119
+
```
85
120
86
-
Then, run `./watch.sh` to watch for changes in any SCSS file and rebuild the main CSS file.
121
+
You can thenrun `./watch.sh` to watch forchangesin any SCSS file to rebuild the main CSS file.
87
122
88
-
*Note: the output `theme/codestar.css` is included in version control so that it can be hosted and used directly as a link to GitHub, it is generated code and not meant for editing.*
123
+
*Note: the output file `theme/codestar.css` is included in version control so that it can be hosted and used directly as a link to GitHub, but it is generated code and not meant for editing.*
0 commit comments