Sha256: 8e55cbd262a8e821159d905634a70d0ed2e032c74901ab10c724b69338f0f8a3

Contents?: true

Size: 294 Bytes

Versions: 62

Compression:

Stored size: 294 Bytes

Contents

module DocumentationSupport
  extend ActiveSupport::Concern

  def docs
    target = params[:page].presence || "index"
    files = `find -L tmp/gems/*/docs | grep \.md`.lines.map(&:chomp).sort
    @file = files.detect { |file| file.include?(target) }
    render :docs, layout: "docs"
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
bullet_train-1.1.7 app/controllers/concerns/documentation_support.rb
bullet_train-1.1.6 app/controllers/concerns/documentation_support.rb
bullet_train-1.1.5 app/controllers/concerns/documentation_support.rb
bullet_train-1.1.4 app/controllers/concerns/documentation_support.rb
bullet_train-1.1.3 app/controllers/concerns/documentation_support.rb
bullet_train-1.1.2 app/controllers/concerns/documentation_support.rb
bullet_train-1.1.1 app/controllers/concerns/documentation_support.rb
bullet_train-1.1.0 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.99 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.98 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.97 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.96 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.95 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.93 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.92 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.90 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.89 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.88 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.87 app/controllers/concerns/documentation_support.rb
bullet_train-1.0.86 app/controllers/concerns/documentation_support.rb