changeset 2:e86dfb640e86

update
author akahori
date Tue, 26 Mar 2019 12:49:43 +0900
parents f3fc48fa7287
children c23adc60a4f5
files README.md
diffstat 1 files changed, 44 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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
+```
+