Sha256: bf6405630f33bb4d688ec6b132f61c5d53f69dddbeb17e4615415566aa5f5762
Contents?: true
Size: 1.92 KB
Versions: 8
Compression:
Stored size: 1.92 KB
Contents
#!/usr/bin/env ruby require './cg_config.rb' preprocess do Toc.instance.prepare @items, SECTION_CONFIG end compile '/bootstrap/**/*' do nil end compile '/content/scripts/**/*' do nil end compile '/chalkmark/**/*' do nil end compile '/tipuesearch/**/*' do nil end compile "/tipuesearch_logic/tipuesearch_content.*" do filter :erb end compile "/content/**/*.ical.erb" do filter :erb end compile '/**/*' do if item.binary? || item[:status] == "hidden" nil elsif item[:status] == "hidden" nil elsif item[:type] == "subsection" nil elsif item[:extension] == "haml" filter :haml; layout '/course.*' else item[:extension].split('.').reverse.each do |f| case f when 'md', 'markdown' filter :kramdown, coderay_tab_width: 3 when 'erb' filter :erb end end layout '/course.*' end end route '/bootstrap/**/*' do @item.identifier.to_s end route '/tipuesearch/**/*' do @item.identifier.to_s end route "/tipuesearch_logic/tipuesearch_content.*" do '/tipuesearch/tipuesearch_content.js' end route '/chalkmark/**/*' do @item.identifier.to_s end # Output the search page route '/tipuesearch_logic/search.md.erb' do '/tipuesearch_logic/search/index.html' end route '/**/*.ical.erb' do @item.identifier.without_ext end # Select which .md.erb becomes the home page of the site route '/content/index.md.erb' do '/index.html' end route '/**/*' do if item[:extension].nil? raise RuntimeError, "Missing required extension: \".#{item.identifier}\"" elsif item.binary? item.identifier.to_s elsif item.identifier == "/search_logic/tipuesearch_content/" item.identifier.chop + '.' + item[:extension] rescue fail "in route * in Rules" elsif item[:status] == "hidden" nil elsif item[:type] == "subsection" nil elsif item[:extension] != "css" item.identifier.without_ext + '/index.html' end end layout '/**/*', :erb
Version data entries
8 entries across 8 versions & 1 rubygems