Skip to content
プロジェクト

asciidoctor/asciidoctor-reveal.js

GitHubで見る

概要

:crystal_ball: A reveal.js converter for Asciidoctor and Asciidoctor.js. Write your slides in AsciiDoc!

その他のプロジェクト

この数値の測り方

計測したスター増加

24時間
0
7日間
+1
15日間
+1
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

reveal.js converter for Asciidoctor.js

A reveal.js converter for Asciidoctor.js that transforms an AsciiDoc document into an HTML5 presentation designed to be executed by the reveal.js presentation framework.

Install

Requires Node.js >= 20. asciidoctor is a required peer dependency (any >=4.2.1 <5.0.0 release), so install it alongside the converter:

npm i --save asciidoctor @asciidoctor/reveal.js

Command line

npx asciidoctor-revealjs presentation.adoc      # writes presentation.html
npx asciidoctor-revealjs -o - presentation.adoc # write to stdout

Run npx asciidoctor-revealjs --help for the full option list.

JavaScript API

Asciidoctor.js 4.0 is an ESM package and its conversion functions are asynchronous, so use import and await:

import { convertFile } from 'asciidoctor'
import { register } from '@asciidoctor/reveal.js'

register() // registers the revealjs / reveal.js backends and the highlight.js adapter

await convertFile('presentation.adoc', { safe: 'safe', backend: 'revealjs' })

Documentation

For setup instructions and the AsciiDoc syntax used to write a presentation, see the documentation.

License

MIT.

関連プロジェクトを探す

読み込み中…