forked from Comcast/cts-mpx-aci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRules
53 lines (42 loc) · 828 Bytes
/
Rules
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
passthrough '/assets/**/*'
### Markdown
compile '/**/*.md' do
filter :kramdown,
input: 'GFM',
syntax_highlighter: 'rouge',
syntax_highlighter_opts: {
disable: false
}
layout '/default.*'
end
route '/README.md' do
'/index.html'
end
route '/*.md' do
item.identifier.without_ext + '.html'
end
### Reference docs
compile '/doc/*.html' do
end
route '/doc/**/*' do
item.identifier.to_s
end
### Coverage
compile '/coverage/*.html' do
layout '/default.*'
end
route '/coverage/**/*' do
item.identifier.to_s
end
### Specifications
compile '/specifications.html' do
layout '/default.*'
end
route '/specifications.html' do
item.identifier.to_s
end
### Everything else
compile '/**/*' do
write item.identifier.to_s
end
layout '/**/*', :erb