From 46f23f1983439d459d4c13b16bb01ed435c764a7 Mon Sep 17 00:00:00 2001 From: Yasuhito Takamiya Date: Tue, 8 Sep 2015 15:53:00 +0900 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E6=88=90=E3=81=99=E3=82=8Bindex.html?= =?UTF-8?q?=E3=81=AB=E3=83=90=E3=83=BC=E3=82=B8=E3=83=A7=E3=83=B3=E7=95=AA?= =?UTF-8?q?=E5=8F=B7=E3=82=92=E8=A1=A8=E7=A4=BA=20(refs=20#36).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.adoc | 4 +++- tasks/html.rake | 8 +++++++- 2 files changed, 10 insertions(+), 2 deletions(-) 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