Sha256: 255e869f1888f3f2d6869e774567464ccaaaa1db8dbcc1ddeae02f7122a85d28
Contents?: true
Size: 477 Bytes
Versions: 14
Compression:
Stored size: 477 Bytes
Contents
# frozen_string_literal: true module ImporterDocumentationHelper def render_guide renderer = Redcarpet::Render::HTML.new(autolink: true, with_toc_data: true) markdown = Redcarpet::Markdown.new(renderer) if File.exist?(Rails.root.join('app', 'assets', 'markdown', 'importer_guide.md')) markdown.render(File.open(Rails.root.join('app', 'assets', 'markdown', 'importer_guide.md')).read) else 'There is currently no documentation.' end end end
Version data entries
14 entries across 14 versions & 1 rubygems