lib/jazzy/config.rb in jazzy-0.3.1 vs lib/jazzy/config.rb in jazzy-0.3.2
- old
+ new
@@ -23,10 +23,11 @@
attr_accessor :docset_platform
attr_accessor :root_url
attr_accessor :version
attr_accessor :min_acl
attr_accessor :skip_undocumented
+ attr_accessor :hide_documentation_coverage
attr_accessor :podspec
attr_accessor :docset_icon
attr_accessor :docset_path
attr_accessor :source_directory
attr_accessor :excluded_files
@@ -46,10 +47,11 @@
self.clean = false
self.docset_platform = 'jazzy'
self.version = '1.0'
self.min_acl = SourceDeclaration::AccessControlLevel.public
self.skip_undocumented = false
+ self.hide_documentation_coverage = false
self.source_directory = Pathname.pwd
self.excluded_files = []
self.custom_categories = {}
self.template_directory = Pathname(__FILE__).parent + 'templates'
self.swift_version = '2.0'
@@ -154,9 +156,15 @@
opt.on('--[no-]skip-undocumented',
"Don't document declarations that have no documentation \
comments.",
) do |skip_undocumented|
config.skip_undocumented = skip_undocumented
+ end
+
+ opt.on('--[no-]hide-documentation-coverage',
+ "Hide \"(X\% documented)\" from the generated documents",
+ ) do |hide_documentation_coverage|
+ config.hide_documentation_coverage = hide_documentation_coverage
end
opt.on('--podspec FILEPATH') do |podspec|
config.podspec = Pathname(podspec)
end