Sha256: 08e074f7e4bcc6743d0acace018101d82b8e5fbc205a7c820342b7a67f1dedc7

Contents?: true

Size: 877 Bytes

Versions: 51

Compression:

Stored size: 877 Bytes

Contents

config do
  set(:models => Pathname(File.dirname(__FILE__)).join("models"))
  set(:templates => Pathname(File.dirname(__FILE__)).join("templates"))
end

view :table_of_contents do
  doc = Brief::Document.new(docs_path.join("index.md"), document_type: "outline")
  doc && doc.to_model
end

view :custom_aggregator do
  {aggregator:"custom"}
end

define "Release" do
  meta do
    name
  end
end

define "Outline" do
  meta do
    title
  end
end

define "CustomModel" do
  meta do
    title
  end
end

define "Feature" do
  meta do
    title
    status :in => %w(draft published)
    epic_title
  end

  template :file => "feature.md.erb"

  content do
    persona "p strong:first-child"
    behavior "p strong:second-child"
    goal "p strong:third-child"
  end

  actions do
    def defined_helper_method
      true
    end

    def custom_action
      true
    end
  end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
brief-1.17.14 spec/fixtures/example/brief.rb
brief-1.17.13 spec/fixtures/example/brief.rb
brief-1.17.12 spec/fixtures/example/brief.rb
brief-1.17.11 spec/fixtures/example/brief.rb
brief-1.17.10 spec/fixtures/example/brief.rb
brief-1.17.9 spec/fixtures/example/brief.rb
brief-1.17.8 spec/fixtures/example/brief.rb
brief-1.17.7 spec/fixtures/example/brief.rb
brief-1.17.5 spec/fixtures/example/brief.rb
brief-1.17.4 spec/fixtures/example/brief.rb
brief-1.17.3 spec/fixtures/example/brief.rb
brief-1.17.2 spec/fixtures/example/brief.rb
brief-1.17.1 spec/fixtures/example/brief.rb
brief-1.17.0 spec/fixtures/example/brief.rb
brief-1.16.2 spec/fixtures/example/brief.rb
brief-1.16.1 spec/fixtures/example/brief.rb
brief-1.16.0 spec/fixtures/example/brief.rb
brief-1.15.5 spec/fixtures/example/brief.rb
brief-1.15.4 spec/fixtures/example/brief.rb
brief-1.15.3 spec/fixtures/example/brief.rb