Sha256: dbfa469de9cb3b1b1a7d98f6c679c6c0a21d65c70851e994c619656da1150eb4
Contents?: true
Size: 633 Bytes
Versions: 6
Compression:
Stored size: 633 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( filename: ARGV[0].gsub(/\.html?$/, ""), stylesheet: options[:stylesheet], header: options[:header], ).process(File.read(ARGV[0], encoding: "utf-8"))
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
html2doc-1.4.3 | bin/html2doc |
html2doc-1.4.2.1 | bin/html2doc |
html2doc-1.4.2 | bin/html2doc |
html2doc-1.4.1 | bin/html2doc |
html2doc-1.4.0.1 | bin/html2doc |
html2doc-1.4.0 | bin/html2doc |