diff --git a/index.adoc b/index.adoc index fa3a3a61..db9a5b43 100644 --- a/index.adoc +++ b/index.adoc @@ -1,4 +1,6 @@ -= Trema本 += TremaでOpenFlowプログラミング +高宮 安仁 ; 鈴木 一哉; 松井 暢之; 村木 暢哉; 山崎 泰宏 +:revnumber: {revnumber} :leveloffset: 1 diff --git a/tasks/html.rake b/tasks/html.rake index 42f18889..e6e539d2 100644 --- a/tasks/html.rake +++ b/tasks/html.rake @@ -6,6 +6,12 @@ task html: 'index.html' # rubocop:disable LineLength file 'index.html' => ['index.adoc', 'how_does_openflow_work.adoc', 'hello_trema.adoc'] do |t| - sh "bundle exec asciidoctor -a icons=font -a toc=left -a source-highlighter=coderay -d book index.adoc --out-file #{t.name}" + revnumber = `git describe --abbrev=0`.chomp + sh %W(bundle exec asciidoctor + -a revnumber=#{revnumber} + -a icons=font + -a toc=left + -a source-highlighter=coderay + -d book index.adoc --out-file #{t.name}).join(' ') end # rubocop:enable LineLength