Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

生成するindex.htmlにバージョン番号を表示 #41

Merged
merged 1 commit into from
Sep 8, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion index.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
= Trema本
= TremaでOpenFlowプログラミング
高宮 安仁 <[email protected]>; 鈴木 一哉; 松井 暢之; 村木 暢哉; 山崎 泰宏
:revnumber: {revnumber}

:leveloffset: 1

Expand Down
8 changes: 7 additions & 1 deletion tasks/html.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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