README.adoc in asciidoctor-revealjs-2.0.0 vs README.adoc in asciidoctor-revealjs-2.0.1
- old
+ new
@@ -40,12 +40,14 @@
Right now the Asciidoctor / Ruby stack is the better tested one but with the changes in v1.1.0 they have feature parity.
ifeval::['{branch}' == 'master']
NOTE: You're viewing the documentation for an upcoming release.
If you're looking for the documentation for the current release or an older one, please click on the appropriate link below: +
-{uri-project-repo}/tree/v1.1.3#readme[1.1.3] (latest release)
+{uri-project-repo}/tree/v2.0.0#readme[2.0.0] (latest release)
⁃
+{uri-project-repo}/tree/v1.1.3#readme[1.1.3] (latest from 1.1 series)
+⁃
{uri-project-repo}/tree/maint-1.0.x#readme[1.0.x]
⁃
{uri-project-repo}/tree/reveal.js-2.x#readme[Unversioned pre-release] (compatible with RevealJS 2.x)
endif::[]
@@ -672,11 +674,13 @@
Here are details about Asciidoctor's http://asciidoctor.org/docs/user-manual/#admonition-icons[Admonition icons] support.
== Reveal.js Options
-There are some attributes that can be set at the top of the document which they are specific of `revealjs` converter.
+Some attributes can be set at the top of the document that are specific to the `reveal.js` converter.
+They use the same name as in the `reveal.js` project except that they are prepended by `revealjs_` and case doesn't matter.
+They are applied in the link:templates/document.html.slim[document template].
NOTE: Default settings are based on `reveal.js` default settings.
[cols="1m,1,2"]
|===
@@ -873,9 +877,23 @@
|:revealjs_display:
|<a valid CSS display mode>
|The display mode that will be used to show slides.
Defaults to *block*
+
+|:revealjs_width:
+|<pixels\|percentage unit>
+| Independent from the values, the aspect ratio will be preserved
+ when scaled to fit different resolutions. Defaults to *960*
+
+|:revealjs_height:
+|<pixels\|percentage unit>
+| See `:revealjs_width:`. Defaults to *700*
+
+|:revealjs_margin:
+|<percentage value>
+| Factor of the display size that should remain empty around the content. Defaults to *0.1*
+
|===
If you want to build a custom theme or customize an existing one you should
look at the
{uri-revealjs-gh}/blob/master/css/theme/README.md[reveal.js