1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

RDoc で Twitter Bootstrap を使う

1
Posted at

Twitter Bootstrap に互換性のある RDoc テンプレートを Hanna Nouveau という Generator を Fork して書きました。

インストール

RubyGems から

gem install hanna-bootstrap

または git-clone

git clone git://github.com/ngs/hanna-bootstrap.git

使い方

RDoc::Task の generator オプションに bootstrap を指定する

Rakefile
RDoc::Task.new do |rdoc|
  version = File.exist?('VERSION') ? File.read('VERSION') : ""

  rdoc.generator = 'bootstrap'
  rdoc.main = 'README.rdoc'
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = "RDBI #{version} Documentation"
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('lib/   *.rb')
end

または、コマンドラインオプションで指定します

sample.sh
$ rdoc -o doc -f bootstrap lib  .rb
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?