Skip to content

Commit 21dc259

Browse files
committed
Update readme [skip ci]
1 parent 66d25d6 commit 21dc259

File tree

2 files changed

+59
-24
lines changed

2 files changed

+59
-24
lines changed

readme.md

Lines changed: 59 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1-
# Codestar theme for Marp
1+
# Codestar theme for Marp <img alt="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+
![](title.png)
7+
8+
---
29

310
Contents:
411

5-
- [Theme features](#features)
12+
- [Features](#features)
613
- [Usage](#usage)
714
- [Editing guidelines](#editing-guidelines)
815
- [Development](#development)
@@ -11,27 +18,31 @@ Contents:
1118

1219
## Features
1320

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
1724
- Syntax highlighting using the Codestar palette, with language labeling
1825
- Multi-column slides
26+
- Automatic builds and hosting
27+
- Slide decks listing
1928

2029
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/)
2231
- [Listing of all slide decks](https://code-star.github.io/codestar-marp/)
2332

33+
---
34+
2435
## Usage
2536

2637
- Requirements:
2738
- 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)
2839
- Or, if you want to run a live preview server: `npm install -g @marp-team/marp-cli`
2940

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):
3142

3243
```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
3546
```
3647

3748
Extra resource files (for example images) can go in that new folder as well.
@@ -40,20 +51,17 @@ Quick links:
4051

4152
- 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>).
4253
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.
4455

4556
- 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/).
4657

58+
---
59+
4760
## Editing guidelines
4861

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.
5765
- Metadata directives can be changed for a particular slide. For example, if you want a different footer on one slide, include this:
5866

5967
```html
@@ -66,23 +74,50 @@ Quick links:
6674
<!-- _header: '' -->
6775
<!-- _footer: '' -->
6876
```
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").
6988
- 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/)).
7089

71-
Quick reference links:
90+
### Quick reference links:
7291

7392
- [Image syntax](https://marpit.marp.app/image-syntax)
7493
- [Transitions](https://github.com/marp-team/marp-cli/blob/main/docs/bespoke-transitions/README.md#built-in-transitions)
7594
- [Directives](https://marpit.marp.app/directives)
7695
- [Supported emoji codes](https://github.com/markdown-it/markdown-it-emoji/blob/master/lib/data/full.mjs)
7796

97+
---
98+
7899
## Development
79100

80101
Requirements:
81102

82-
- `brew install fswatch`
83-
- `npm install -g sass`
84-
- `npm install -g @marp-team/marp-cli`
103+
- 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+
```
85120

86-
Then, run `./watch.sh` to watch for changes in any SCSS file and rebuild the main CSS file.
121+
You can then run `./watch.sh` to watch for changes in any SCSS file to rebuild the main CSS file.
87122

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.*

title.png

157 KB
Loading

0 commit comments

Comments
 (0)