Sha256: c0240a6bfa82b9d14c14616a346a81f7db4b2be27a9fc12c62f63aaa449aceda
Contents?: true
Size: 984 Bytes
Versions: 14
Compression:
Stored size: 984 Bytes
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})" ) Jazzy.copyright_markdown.render(copyright).chomp end def jazzy_version # Fake version is used to keep integration tests consistent ENV['JAZZY_FAKE_VERSION'] || Jazzy::VERSION end def language Config.instance.objc_mode ? 'Objective-C' : 'Swift' end def language_stub Config.instance.objc_mode ? 'objc' : 'swift' end end end
Version data entries
14 entries across 14 versions & 1 rubygems