Sha256: 165f12ca00b31510e77b2d14686e7d21b049e65ee3752ea5f1593246f17b6194
Contents?: true
Size: 732 Bytes
Versions: 3
Compression:
Stored size: 732 Bytes
Contents
# frozen_string_literal: true require "refinements/pathname" module Milestoner module Builders # Builds Markdown page output. class ASCIIDoc include Milestoner::Import[:input] using Refinements::Pathname def initialize(view: Views::Milestones::Show.new, enricher: Commits::Enricher.new, **) @view = view @enricher = enricher super(**) end def call = input.build_root.join("index.adoc").make_ancestors.tap { |path| write path } private attr_reader :view, :enricher def write path enricher.call.fmap do |commits| path.write view.call commits:, layout: input.build_layout, format: :adoc end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
milestoner-17.11.0 | lib/milestoner/builders/ascii_doc.rb |
milestoner-17.10.0 | lib/milestoner/builders/ascii_doc.rb |
milestoner-17.9.0 | lib/milestoner/builders/ascii_doc.rb |