Skip to content

Commit

Permalink
Renamed revealjs option to remove dot
Browse files Browse the repository at this point in the history
  • Loading branch information
MartenBE committed Sep 24, 2024
1 parent 747013c commit 1e6144e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ slides:
separator_vertical: ^\s*-v-\s*$
separator_notes: "^Notes?:"
separator_charset: utf-8
reveal.js:
revealjs:
height: 1080
width: 1920
transition: fade
Expand All @@ -93,4 +93,4 @@ plugins:
- `favicon`and `theme`, can also be configured as an URL, e.g. `https://example.org/theme.css`.
- `theme` can also be configured as a [Reveal.js built-in theme](https://revealjs.com/themes/), e.g. `black`, `white`, `league`, `solarized`, `dracula`, ... .
- `highlight_theme` can also be configured as a [highlight.js built-in theme](https://highlightjs.org/examples), e.g. `monokai`, `obsidian`, `tokyo-night-dark`, `vs`, ... .
- `reveal.js` can contain all [Reveal.js options](https://revealjs.com/config/).
- `revealjs` can contain all [Reveal.js options](https://revealjs.com/config/).
2 changes: 1 addition & 1 deletion assets/mkslides.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ index:
slides:
theme: black
highlight_theme: monokai
reveal.js:
revealjs:
history: true # Necessary for back/forward buttons and livereload
slideNumber: "c/t"
2 changes: 1 addition & 1 deletion mkslides.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
slides:
theme: dracula
reveal.js:
revealjs:
height: 1080
width: 1920
transition: slide
2 changes: 1 addition & 1 deletion src/mkslides/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def get_slides_charset(self) -> str | None:
return self.__get("slides", "charset")

def get_revealjs_options(self) -> dict | None:
return self.__get("reveal.js")
return self.__get("revealjs")

def get_plugins(self) -> list | None:
return self.__get("plugins")
Expand Down
4 changes: 2 additions & 2 deletions tests/test_revealjs_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def test_revealjs_integer_options(setup_markup_generator: Any) -> None:
markup_generator, output_path = setup_markup_generator
markup_generator.config.merge_config_from_dict(
{
"reveal.js": {
"revealjs": {
"height": 1080,
"width": 1920,
},
Expand Down Expand Up @@ -55,7 +55,7 @@ def test_revealjs_string_options(setup_markup_generator: Any) -> None:
markup_generator, output_path = setup_markup_generator
markup_generator.config.merge_config_from_dict(
{
"reveal.js": {
"revealjs": {
"transition": "fade",
},
},
Expand Down

0 comments on commit 1e6144e

Please sign in to comment.