Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 59 lines (46 sloc) 1.097 kb
0525efe Wesley Moore Add nanoc powered documentation site
authored
1 #!/usr/bin/env ruby
2
3 # A few helpful tips about the Rules file:
4 #
5 # * The order of rules is important: for each item, only the first matching
6 # rule is applied.
7 #
8 # * Item identifiers start and end with a slash (e.g. “/about/” for the file
9 # “content/about.html”). To select all children, grandchildren, … of an
10 # item, use the pattern “/about/*/”; “/about/*” will also select the parent,
11 # because “*” matches zero or more characters.
12
13 compile '/stylesheet/' do
14 filter :sass
15 filter :rainpress
16 end
17
18 compile '/highlight/' do
19 filter :rainpress
20 end
21
22 compile '/robots/' do
23 end
24
25 compile '/raphael-min/' do
26 end
27
28 compile '*' do
29 filter :erb
30 filter :rdiscount
31 filter :colorize_syntax,
32 :colorizers => { :js => :pygmentize },
33 :coderay => { :css => :class }
34 filter :rubypants
35 layout 'default'
36 end
37
38 route '/stylesheet/' do
39 '/screen.css'
40 end
41
42 route '/highlight/' do
43 '/highlight.css'
44 end
45
46 route '/raphael-min/' do
47 '/raphael.js'
48 end
49
50 route '/robots/' do
51 '/robots.txt'
52 end
53
54 route '*' do
55 item.identifier + 'index.html'
56 end
57
58 layout '*', :erb
Something went wrong with that request. Please try again.