Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 46 lines (41 sloc) 1.479 kb
b1711004 »
2008-04-08 Moving exported PDoc to git (yes, I know, that's lazy).
1 require 'rake'
2 require 'lib/pdoc'
3
4 desc "Builds the documentation"
5 task :build_doc do
e69c25eb »
2010-05-07 Fix Rakefile :doc task.
6 PDoc.run({
4d1ab30b »
2010-05-07 Replace the :repository_url option by :src_code_href option which tak…
7 :source_files => [File.join(File.dirname(__FILE__), "test", "fixtures", "ajax.js")],
e69c25eb »
2010-05-07 Fix Rakefile :doc task.
8 :destination => OUTPUT_DIR,
9 :syntax_highlighter => :pygments,
10 :markdown_parser => :bluecloth,
4d1ab30b »
2010-05-07 Replace the :repository_url option by :src_code_href option which tak…
11 :src_code_href => proc { |file, line|
12 "http://github.com/example/ex/#{file}##{line}"
13 },
e69c25eb »
2010-05-07 Fix Rakefile :doc task.
14 :pretty_urls => false,
15 :bust_cache => true,
16 :name => 'Example JavaScript Framework',
17 :short_name => 'Ex',
18 :home_url => 'http://example.com',
19 :doc_url => 'http://example.com/api',
20 :version => "1.2.0",
21 :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>.'
22 })
b1711004 »
2008-04-08 Moving exported PDoc to git (yes, I know, that's lazy).
23 end
24
25 desc "Empties output directory"
26 task :remove_doc do
27 rm_rf Dir.glob(File.join(OUTPUT_DIR, "*"))
28 end
29
30 desc "Empties the output directory and builds the documentation."
31 task :doc => [:remove_doc, :build_doc]
32
33 desc "Runs all the unit tests."
34 task :test do
35 require 'rake/runtest'
36 Rake.run_tests '**/*_test.rb'
37 end
38
39 task :compile_parser do
40 require 'treetop'
41 compiler = Treetop::Compiler::GrammarCompiler.new
42 treetop_dir = File.expand_path(File.join(File.dirname(__FILE__), "lib", "pdoc", "parser", "treetop_files"))
43 Dir.glob(File.join(treetop_dir, "*.treetop")).each do |treetop_file_path|
44 compiler.compile(treetop_file_path)
45 end
46 end
Something went wrong with that request. Please try again.