Sha256: 69274515fe5100edc9ee4623f44b6ad26328e3822e67217a8170d106d85e2d95
Contents?: true
Size: 1.03 KB
Versions: 6
Compression:
Stored size: 1.03 KB
Contents
require 'date' require 'pathname' require 'mustache' require 'jazzy/config' require 'jazzy/gem_version' require 'jazzy/jazzy_markdown' module Jazzy class Doc < Mustache self.template_name = 'doc' def copyright config = Config.instance copyright = config.copyright || ( # Fake date is used to keep integration tests consistent date = ENV['JAZZY_FAKE_DATE'] || DateTime.now.strftime('%Y-%m-%d') year = date[0..3] "© #{year} [#{config.author_name}](#{config.author_url}). " \ "All rights reserved. (Last updated: #{date})" ) Markdown.render_copyright(copyright).chomp end def jazzy_version # Fake version is used to keep integration tests consistent ENV['JAZZY_FAKE_VERSION'] || Jazzy::VERSION end def objc_first? Config.instance.objc_mode && Config.instance.hide_declarations != 'objc' end def language objc_first? ? 'Objective-C' : 'Swift' end def language_stub objc_first? ? 'objc' : 'swift' end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
jazzy-0.9.6 | lib/jazzy/doc.rb |
jazzy-0.9.5 | lib/jazzy/doc.rb |
jazzy-0.9.4 | lib/jazzy/doc.rb |
jazzy-0.9.3 | lib/jazzy/doc.rb |
jazzy-0.9.2 | lib/jazzy/doc.rb |
jazzy-0.9.1 | lib/jazzy/doc.rb |