Rules 1.02 KB
Newer Older
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 54 55 56
#!/usr/bin/env ruby

preprocess do
  create_hardware_list(@items)

  mds = @items.find_all { |i| i.identifier.ext == 'md' }
  mds.each { |item| create_toc_and_title_from_headings(item) }

  @config[:view_types] = {
    'index.html' => 'combined',
    'combined-alt.html' => 'combined alt',
    'bat-full.html' => 'BAT full',
    'shards-full.html' => 'shards full'
  }

  @config[:trees] = %w(
    drm-tip
    drm-intel-fixes
    drm-intel-next-fixes
    drm-intel-next-queued
    drm-misc-fixes
    drm-misc-next-fixes
    linus
    linux-next
    airlied
  )

  @config[:trees].each {|tree| create_tree(tree)}
  create_pre_merge_templates('drm-tip')
end

layout '/**/*.erb', :erb

compile '/*.md' do
  filter :kramdown
  layout '/docs.*'
  filter :md_links_to_html
  write ext: 'html'
end

compile '/tree/**/*.html' do
  layout '/grids.*'
  write ext: 'html'
end

compile '/test_result.js.erb' do
  filter :erb
  write '/test_result.js'
end

passthrough '/*.yml'
passthrough '/*.css'
passthrough '/*.gif'
passthrough '/*.js'

ignore '/LICENSE'