Skip to content

Commit

Permalink
docs(plugin-revealjs): improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Dec 6, 2024
1 parent 932d722 commit 8ddd51c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/plugins/markdown/revealjs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ You can enable the following themes in reveal.js via `themes` in plugin options:

For the appearance of each theme, see [Themes demo](themes.md).

::: important Assets Path

Since markdown contents between `@slidestart` and `@slideend` are handled by Reveal.js at browser, so you can only use absolute paths for assets in slides, which must be accessible directly in browser, relative paths or alias are not supported.

:::

## Slide Layout

By default, the plugin registers a layout named `SlidePage` for you to render "a slides page".
Expand Down
6 changes: 6 additions & 0 deletions docs/zh/plugins/markdown/revealjs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ const add = (a, b) => {

各主题的外观,详见 [幻灯片主题](themes.md)

::: important 资源路径

由于 `@slidestart``@slideend` 之间的 Markdown 内容由 Reveal.js 在浏览器中处理,因此你只能在幻灯片中使用绝对路径的资源,这些资源必须可以直接在浏览器中访问,不支持相对路径或别名。

:::

## 幻灯片布局

默认情况下,插件会注册一个 `SlidePage` 布局来供你渲染“幻灯片页”。
Expand Down

0 comments on commit 8ddd51c

Please sign in to comment.