Sha256: d4dc29100974c6b837ab772ecb8512c727c2891ca5cdf0d330bab959ab63aae3

Contents?: true

Size: 949 Bytes

Versions: 5

Compression:

Stored size: 949 Bytes

Contents

# -*- ruby -*-

website.config['website.base_url'] = 'http://cmdparse.gettalong.org/'
website.config['sources'] =[['/', :file_system, 'doc']]
website.config['destination'] = [:file_system, 'htmldoc']
website.config['website.tmpdir'] = 'webgen-tmp'
website.config['content_processor.kramdown.options'] = {
  syntax_highlighter: 'coderay',
  syntax_highlighter_opts: {css: 'class', line_numbers: nil}
}
website.config['content_processor.sass.options'] = {:style => :compressed}

website.config.define_option('tag.extract.file', 'example/net.rb')
website.config.define_option('tag.extract.lines', nil)

website.ext.tag.register('extract', :config_prefix => 'tag.extract',
                         :mandatory => ['lines']) do |tag, body, context|

  file = context[:config]['tag.extract.file']
  lines = context[:config]['tag.extract.lines']
  File.readlines(File.join(context.website.directory, file)).unshift('unused line')[lines].join("").rstrip
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cmdparse-3.0.4 webgen.config
cmdparse-3.0.3 webgen.config
cmdparse-3.0.2 webgen.config
cmdparse-3.0.1 webgen.config
cmdparse-3.0.0 webgen.config