# HG changeset patch # User akahori # Date 1553572183 -32400 # Node ID e86dfb640e8605a48e8658b14e7d17494297fa36 # Parent f3fc48fa7287cb985c46d57797cc057e4ca73114 update diff -r f3fc48fa7287 -r e86dfb640e86 README.md --- a/README.md Fri Mar 22 02:14:23 2019 +0900 +++ b/README.md Tue Mar 26 12:49:43 2019 +0900 @@ -10,6 +10,42 @@ This is a docker that generates a slide with the Concurrency Reliance Lab logo from markdown. # How Use + +## Use Makefile + +makeファイルでのdockerはmake buildで行えます. + +``` +make build +``` + +buildが成功したら次のコマンドを使うことで, カレントディレクトリにREADME.mdのhtml, pdf.htmlが生成されます. + +If build is successful, using following command will generate html and pdf.html from README.md in the current directory. + +``` +make run +``` + +他のファイルを指定したいときはMDオプションにファイル名を与えます. + +``` +make run MD=sample.md +``` + +make cleanで, build済のdocker, contener, 生成されたファイルを削除します + +``` +make clean +``` + +make cleanfで, 生成されたファイルのみ削除できます. + +``` +make cleanf +``` + +## Use Command dockerをbuildします. Build docker. @@ -17,11 +53,17 @@ docker build -t slide_docker . ``` -buildが成功したら次のコマンドを使うことで, カレントディレクトリにhtml, pdf.htmlが生成されます. +buildが成功したら次のコマンドを使うことで, カレントディレクトリにREADME.mdのhtml, pdf.htmlが生成されます. -If build is successful, using following command will generate html and pdf.html in the current directory. +If build is successful, using following command will generate html and pdf.html from README.md in the current directory. ``` docker run --rm -v $PWD:/slideshow slide_docker:latest ``` +他のファイルを指定したいときは後ろにファイル名の引数を与えます. + +``` +docker run --rm -v $PWD:/slideshow slide_docker:latest sample.md +``` +