Sha256: 3a71e08f27c2e4816248b1d314c5d5c99104145e9d5c4c82a83f43cf82e4c160
Contents?: true
Size: 498 Bytes
Versions: 1
Compression:
Stored size: 498 Bytes
Contents
desc "Generate .txt pages" task :txt do TXT = Path.dir.parent/'compiled/txt' TXT.mkdir_p require 'alf/doc/to_markdown' # API Alf::Doc.each_api do |kind, name, obj| target = TXT/"#{name}.txt" puts "#{name} -> #{target}" md = Alf::Doc::ToMarkdown.new.send(kind, obj) target.write(md.gsub(/^```(try)?\n/, "")) end # COMMANDS Alf::Doc.commands.each do |md| target = TXT/"#{md.basename.rm_ext}.txt" puts "#{md} -> #{target}" target.write(md.read) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alf-doc-0.16.4 | tasks/txt.rake |