Skip to content

Commit 3d53962

Browse files
committed
updates docs
1 parent 416ce30 commit 3d53962

File tree

7 files changed

+35
-27
lines changed

7 files changed

+35
-27
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
public
33
exampleSite/resources/_gen
4+
.hugo_build.lock

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,8 @@ theme = "moon"
430430
# the following supposes that menu is accessible in static dir
431431
[[params.reveal_hugo.plugins]]
432432
# Name the plugin. This should be the same name used to register a reveal-js plugin,
433-
# for example RevealMenu, RevealNotes
434-
name = RevealMenu
433+
# for example: `RevealMenu`, `RevealNotes`
434+
name = "RevealMenu"
435435
source = "menu/menu.js"
436436
css = "menu/menu.css"
437437
# verbatim = true # should the css and source paths be used as-is ?

exampleSite/content/highlightjs-linenumbers-example/_index.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
+++
2-
title = "Reveal.js 3.9.0 highlighting example"
2+
title = "Reveal.js highlighting example"
33
outputs = ["Reveal"]
44

55
[reveal_hugo]
@@ -11,7 +11,7 @@ highlight_theme = "vs"
1111

1212
---
1313

14-
This presentation shows the use of the [new highlighting features](https://github.com/hakimel/reveal.js/blob/master/README.md#step-by-step-highlights) which were introduced with Reveal.js [v3.9.0](https://github.com/hakimel/reveal.js/releases/tag/3.9.0).
14+
This presentation shows the use of the [new highlighting features](https://revealjs.com/code/) which were introduced with Reveal.js [v3.9.0](https://github.com/hakimel/reveal.js/releases/tag/3.9.0).
1515

1616
---
1717

@@ -50,7 +50,7 @@ highlight_theme = "github"
5050

5151
The line highlighting is configured by adding `{}` immediately after the language selection of the markdown code block.
5252

53-
{{< highlight md >}}
53+
{{< highlight md >}}
5454
```foo{}
5555
5656
```
@@ -62,7 +62,7 @@ The line highlighting is configured by adding `{}` immediately after the languag
6262

6363
`{}`
6464

65-
{{< highlight md >}}
65+
{{< highlight md >}}
6666
```go{}
6767
package main
6868
import "fmt"
@@ -71,7 +71,7 @@ func main() {
7171
}
7272
```
7373
{{< /highlight >}}
74-
74+
7575
```go{}
7676
package main
7777
import "fmt"
@@ -130,7 +130,7 @@ func main() {
130130

131131
## Hiding the line numbers
132132

133-
There is no Reveal.js parameter to use line highlighting *without* line numbers.
133+
There is no Reveal.js parameter to use line highlighting *without* line numbers.
134134
However it can be achieved by adding the some [custom CSS](https://github.com/dzello/reveal-hugo#adding-html-to-the-layout).
135135

136136
{{< highlight html "style=github" >}}
@@ -157,4 +157,4 @@ layouts/partials/{presentation-name}/reveal-hugo/body.html
157157

158158
---
159159

160-
Thanks!
160+
Thanks!

exampleSite/content/home/configuration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Place configuration values in `config.toml` or a presentation's front matter (`_
1010

1111
## Reveal.js themes
1212

13-
Themes control the look and feel of your presentation. Set the `theme` param to any [valid Reveal.js theme](https://github.com/hakimel/reveal.js/#theming).
13+
Themes control the look and feel of your presentation. Set the `theme` param to any [valid Reveal.js theme](https://revealjs.com/themes/).
1414

1515
```toml
1616
[params.reveal_hugo]

exampleSite/content/home/features.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ weight = 10
44

55
## What's included?
66

7-
- All Reveal.js HTML, CSS and JS (v3.9.2)
7+
- All Reveal.js HTML, CSS and JS (v4.4.0)
88
- All out-of-the-box Reveal.js themes
99
- Two custom Reveal.js themes (including this one)
1010

exampleSite/content/hugo-hl-example/_index.md

+17-13
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ You can enable it using the `highlight` shortcode.
2626
{{</* highlight go */>}}
2727

2828
package main
29-
29+
3030
import "fmt"
31-
31+
3232
func main() {
3333
fmt.Println("Hello world!")
3434
}
@@ -44,9 +44,9 @@ Several options are supported, check [Hugo's documentation](https://gohugo.io/co
4444
{{</* highlight go "style=github,linenos=inline,hl_lines=6" */>}}
4545

4646
package main
47-
47+
4848
import "fmt"
49-
49+
5050
func main() {
5151
fmt.Println("Hello world!")
5252
}
@@ -56,7 +56,7 @@ func main() {
5656

5757
---
5858

59-
You can also use Hugo's highlighter in markdown code fences,
59+
You can also use Hugo's highlighter in markdown code fences,
6060
by putting this in `config.toml`:
6161

6262
{{< highlight toml "style=github" >}}
@@ -77,19 +77,19 @@ style = "github"
7777

7878
{{< highlight go >}}
7979
package main
80-
80+
8181
import "fmt"
82-
82+
8383
func main() {
8484
fmt.Println("Hello world!")
8585
}
8686
{{< / highlight >}}
8787

8888
```go
8989
package main
90-
90+
9191
import "fmt"
92-
92+
9393
func main() {
9494
fmt.Println("Hello world!")
9595
}
@@ -107,7 +107,11 @@ If you don't need highlight.js at all, you can prevent it from loading.
107107

108108
[params.reveal_hugo]
109109
load_default_plugins = false
110-
plugins = [
111-
"reveal-js/plugin/zoom-js/zoom.js",
112-
"reveal-js/plugin/notes/notes.js",
113-
]
110+
111+
[[params.reveal_hugo.plugins]]
112+
name = "RevealZoom"
113+
source = "reveal-js/plugin/zoom-js/zoom.js"
114+
115+
[[params.reveal_hugo.plugins]]
116+
name = "RevealNotes"
117+
source = "reveal-js/plugin/notes/notes.js"

exampleSite/content/plugin-example/_index.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ margin = 0.2
1313
# New plugin object form; reveal-hugo
1414
# will load your css for you
1515
[[reveal_hugo.plugins]]
16-
name = "gallery"
16+
name = "Gallery"
1717
source = "plugin/gallery/gallery.plugin.js"
1818
css = "plugin/gallery/gallery.css"
1919

@@ -63,7 +63,7 @@ See the [revealjs-simple-gallery GitHub repo](https://github.com/marcins/revealj
6363

6464
---
6565

66-
These were the steps to use this plugin for this reveal-hugo presentation.
66+
These are the steps to use this plugin for this reveal-hugo presentation.
6767

6868
---
6969

@@ -75,10 +75,13 @@ Copy the plugin CSS and JavaScript into the static directory
7575

7676
### 2
7777

78-
Add the JavaScript and (optionally css) file path to the `plugins` field in the front matter
78+
Add the JavaScript (and optionally css) file path to the `plugins` field in the
79+
front matter
7980

8081
```toml
8182
[[reveal_hugo.plugins]]
83+
# name must match the name by which the plugin is exported
84+
name = "Gallery"
8285
source = "plugin/gallery/gallery.plugin.js"
8386
css = "plugin/gallery/gallery.css"
8487
```

0 commit comments

Comments
 (0)