Sha256: c9d218b0b552608ee3cd59bd3a329f87a2ac1dbe7e7bee86fe8a8338f34c277a
Contents?: true
Size: 626 Bytes
Versions: 1
Compression:
Stored size: 626 Bytes
Contents
#!/usr/bin/env ruby require "html2doc" require "optparse" options = {} OptionParser.new do |opts| opts.banner = "Usage: bin/html2doc filename [options]" opts.on("--stylesheet FILE.CSS", "Use the provided stylesheet") do |v| options[:stylesheet] = v end opts.on("--header HEADER.HTML", "Use the provided stylesheet") do |v| options[:header] = v end end.parse! if ARGV.length < 1 puts "Usage: bin/html2doc filename [options]" exit end Html2Doc.process( File.read(ARGV[0], encoding: "utf-8"), filename: ARGV[0].gsub(/\.html?$/, ""), stylesheet: options[:stylesheet], header: options[:header] )
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
html2doc-1.1.1 | bin/html2doc |