Skip to content

Commit 23c96e5

Browse files
Add lexers in readme files
1 parent 20800d7 commit 23c96e5

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

readme.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ To use **onepunch**, you should have installed **node** and **npm** in your syst
1010

1111
Install **onepunch** globally with the following command:
1212

13-
```
13+
```sh
1414
$ npm install -g @nextbitlabs/onepunch
1515
```
1616

1717
Please note that onepunch makes use of [puppeteer](https://github.com/puppeteer/puppeteer/), which will download chromium. This is necessary to print the PDF file.
1818

1919
Update **onepunch** to the latest release with:
2020

21-
```
21+
```sh
2222
$ npm update -g @nextbitlabs/onepunch
2323
```
2424

2525
### Create a project
2626

27-
```
27+
```sh
2828
$ onepunch init [-n directory-name]
2929
```
3030

@@ -34,7 +34,7 @@ The command above creates the directory `directory-name` with all the files need
3434

3535
Inside the project directory, run:
3636

37-
```
37+
```sh
3838
$ onepunch serve
3939
```
4040

@@ -44,30 +44,30 @@ The command above starts a local server and opens the browser, use the arrow key
4444

4545
Inside the project directory, run:
4646

47-
```
47+
```sh
4848
$ onepunch print
4949
```
5050

5151
### Update
5252

5353
Update files in the `src` directory according to the latest release of **onepunch**, please note that any custom change inside directory `src` will be overwritten:
5454

55-
```
55+
```sh
5656
$ onepunch update
5757
```
5858

5959
The above command assumes you have installed the latest release of **onepunch**.
6060
If this is not the case, update **onepunch** to the latest release with:
6161

62-
```
62+
```sh
6363
$ npm update -g @nextbitlabs/onepunch
6464
```
6565

6666
### Create custom styles
6767

6868
Each slide is created by means of tag `article`, for example:
6969

70-
```
70+
```html
7171
<main>
7272

7373
<!-- Slides 1 -->
@@ -92,7 +92,7 @@ Each slide is created by means of tag `article`, for example:
9292

9393
As usual, designers can define CSS classes to apply custom style. For example, the following class defines a specific grid layout:
9494

95-
```
95+
```css
9696
.layout-1 {
9797
display: grid;
9898
grid-template-rows: minmax(50px, max-content) auto 50px;
@@ -106,7 +106,7 @@ As usual, designers can define CSS classes to apply custom style. For example, t
106106

107107
and can be used in the following way:
108108

109-
```
109+
```html
110110
<article class="layout-1">
111111
<header style="grid-area: A;">
112112
...

template/readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ Please edit file `index.html` to create your presentation.
22

33
Start a local server with:
44

5-
```
5+
```sh
66
$ onepunch serve
77
```
88

99
Print the presentation in a PDF file with:
1010

11-
```
11+
```sh
1212
$ onepunch print
1313
```
1414

1515
Update files in the `src` directory according to the latest release:
1616

17-
```
17+
```sh
1818
$ onepunch update
1919
```

0 commit comments

Comments
 (0)