Sha256: 7a07e8e98c5b153419178d98aae237c558d15be2f81cc4d9124ea1598f7d421b

Contents?: true

Size: 1.21 KB

Versions: 9

Compression:

Stored size: 1.21 KB

Contents

#!/usr/bin/env ruby

require 'scholarmarkdown/snippets'
require 'scholarmarkdown/filter/acronym'
require 'scholarmarkdown/filter/citation'
require 'scholarmarkdown/filter/hyphenate_iri'
require 'scholarmarkdown/filter/include_code'
require 'scholarmarkdown/filter/labelify'
require 'scholarmarkdown/filter/references_to_footer'
require 'scholarmarkdown/filter/headerids_to_section'

Encoding.default_external = "UTF-8"

compile '/index.*' do
  filter :erb
  filter :scholar_citation, bibfile: items['/references.bib'],
                            style: 'lncs-custom'
  filter :kramdown
  filter :scholar_hyphenate_iri
  filter :scholar_include_code
  filter :scholar_labelify
  filter :scholar_references_to_footer
  filter :scholar_headerids_to_section
  filter :rubypants
  layout '/default.*'
end

ignore '/*.md'
ignore '/*.bib'
ignore '/*.csv'

route '/**/*.{html,md}*' do
  if item.identifier =~ '/index.*'
    '/index.html'
  else
    item.identifier.without_ext + '/index.html'
  end
end

compile '/**/{screen,print}.scss' do
  filter :sass, syntax: :scss,
                style: :compressed
  write item.identifier.without_ext + '.css'
end
ignore '/**/*.scss'

compile '/**/*' do
  write item.identifier.to_s
end

layout '/**/*', :erb

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
scholarmarkdown-2.2.0 bin/template/Rules
scholarmarkdown-2.1.0 bin/template/Rules
scholarmarkdown-2.0.0 bin/template/Rules
scholarmarkdown-1.4.0 bin/template/Rules
scholarmarkdown-1.3.1 bin/template/Rules
scholarmarkdown-1.3.0 bin/template/Rules
scholarmarkdown-1.2.0 bin/template/Rules
scholarmarkdown-1.1.0 bin/template/Rules
scholarmarkdown-1.0.0 bin/template/Rules