Sha256: ff8ca873555f7865e5e13d70ba515875b9e333510d193b97e0382ca6d52b389b

Contents?: true

Size: 462 Bytes

Versions: 3

Compression:

Stored size: 462 Bytes

Contents

module Doc
  class RootMerger < Merger
    def doc_dir
      documentor.public_dir
    end

    def public_doc_dir
      doc_dir / documentor.docs_dir.basename
    end

    def progress_message
      'building docs'
    end

    def run
      super
      if succeeded?
        public_doc_dir.mkpath
        symlink_children_to(public_doc_dir)
      end
    end

    def task_url(task)
      documentor.docs_dir.basename / task.doc_dir.basename
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
doc-0.5.0 lib/doc/root_merger.rb
doc-0.4.1 lib/doc/root_merger.rb
doc-0.4.0 lib/doc/root_merger.rb