windowsでasciidocをhtmlに変換する方法

windowsでasciidocをhtmlに変換する方法を紹介します。

1.rubyの準備

ダウンロード先は以下です。

Downloads
The easy way to install Ruby on Windows This is a self-contained Windows-based installer that includes the Ruby language, an execution environment, important...

 

画面左側からダウンロードするバージョンを選択します。
カモトラはRuby 2.4.2-2 (x86)を選択しました。

windows上で
スタート→「Ruby 2.4.2-2-x86」→「Start Command Prompt with Ruby」と選択すると、コマンドプロンプトのような画面が起動します。

rubyのバージョンを確認してみましょう。

 

 

2.asciidoctorのインストール

asciidoctorをインストールします。

3.変換

asciidocの書式で作成したファイル「kamo.adoc」を用意します。

 

同じディレクトリに「kamo.html」ファイルが作成されます。

以上になります。

Secured By miniOrange
タイトルとURLをコピーしました