File: rdoc.rake

package info (click to toggle)
ruby-nokogiri 1.13.10%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 7,416 kB
  • sloc: ansic: 38,198; xml: 28,086; ruby: 22,271; java: 15,517; cpp: 7,037; yacc: 244; sh: 148; makefile: 136
file content (15 lines) | stat: -rw-r--r-- 535 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require "rdoc/task"
RDoc::Task.new(rdoc: "rdoc", clobber_rdoc: "rdoc:clean", rerdoc: "rdoc:force") do |rdoc|
  rdoc.rdoc_dir = ENV["RDOC_DIR"] || "html"
  rdoc.rdoc_files
    .include("README.md", "lib/**/*.rb", "ext/**/*.c")
    .exclude("ext/nokogiri/test_global_handlers.c")
  rdoc.options << "--embed-mixins"
  rdoc.options << "--main=README.md"
  rdoc.options << "--show-hash"
  rdoc.options << "--template-stylesheets=misc/rdoc-tweaks.css"
end

task clean: "rdoc:clean" # rubocop:disable Rake/Desc