Sha256: cabbebc45afbdae5d5e44909b6130090a29f9727cd0dd125f4766c685f585594

Contents?: true

Size: 1.45 KB

Versions: 20

Compression:

Stored size: 1.45 KB

Contents

require 'rake'
require 'lib/pdoc'

desc "Builds the documentation"
task :build_doc do
  PDoc.run({
    :source_files => [File.join(File.dirname(__FILE__), "test", "fixtures", "ajax.js")],
    :destination => OUTPUT_DIR,
    :syntax_highlighter => :pygments,
    :markdown_parser => :bluecloth,
    # :src_code_href => proc { |file, line|
    #   "http://github.com/example/ex/#{file}##{line}"
    # },
    :pretty_urls => false,
    :bust_cache => true,
    :name => 'Example JavaScript Framework',
    :short_name => 'Ex',
    :home_url => 'http://example.com',
    :doc_url => 'http://example.com/api',
    :version => "1.2.0",
    :copyright_notice => 'This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-Share Alike 3.0 Unported License</a>.' 
  })
end

desc "Empties output directory"
task :remove_doc do
  rm_rf Dir.glob(File.join(OUTPUT_DIR, "*"))
end

desc "Empties the output directory and builds the documentation."
task :doc => [:remove_doc, :build_doc]

desc "Runs all the unit tests."
task :test do 
  require 'rake/runtest'
  Rake.run_tests '**/*_test.rb'
end

task :compile_parser do
  require 'treetop'
  compiler = Treetop::Compiler::GrammarCompiler.new
  treetop_dir = File.expand_path(File.join(File.dirname(__FILE__), "lib", "pdoc", "parser", "treetop_files"))
  Dir.glob(File.join(treetop_dir, "*.treetop")).each do |treetop_file_path|
    compiler.compile(treetop_file_path)
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
distil-0.14.4 vendor/pdoc/Rakefile
distil-0.14.3 vendor/pdoc/Rakefile
distil-0.14.2 vendor/pdoc/Rakefile
distil-0.14.2.a vendor/pdoc/Rakefile
distil-0.14.1 vendor/pdoc/Rakefile
distil-0.14.1.a vendor/pdoc/Rakefile
distil-0.14.0 vendor/pdoc/Rakefile
distil-0.14.0.i vendor/pdoc/Rakefile
distil-0.14.0.h vendor/pdoc/Rakefile
distil-0.14.0.g vendor/pdoc/Rakefile
distil-0.14.0.d vendor/pdoc/Rakefile
distil-0.14.0.c vendor/pdoc/Rakefile
distil-0.14.0.b vendor/pdoc/Rakefile
distil-0.13.6 vendor/pdoc/Rakefile
distil-0.13.5 vendor/pdoc/Rakefile
distil-0.13.4 vendor/pdoc/Rakefile
distil-0.13.3 vendor/pdoc/Rakefile
distil-0.13.2 vendor/pdoc/Rakefile
distil-0.13.1 vendor/pdoc/Rakefile
distil-0.13.0 vendor/pdoc/Rakefile