Sha256: 86f732505f601647ef2ffbb8b859d65e6bc43e15af192d2100d743dc236e49d7
Contents?: true
Size: 751 Bytes
Versions: 23
Compression:
Stored size: 751 Bytes
Contents
# frozen_string_literal: true module Docs module Guides class Generator < Docs::Generator def generate clear_dir( self.class.destination_folder, except: [ 'index.md' ] ) ledgers.each_with_index do |ledger, i| Docs::Template.new( data: { ledger: ledger, weight: i + 1 }, destination_path: destination_path( self.class.destination_folder, ledger.root_key ), template_path: template_path(:guides, :ledger) ).write nl end end def self.destination_folder 'guides/ledgers' end end end end
Version data entries
23 entries across 23 versions & 1 rubygems