lib/jazzy/config.rb in jazzy-0.6.2 vs lib/jazzy/config.rb in jazzy-0.6.3
- old
+ new
@@ -148,12 +148,12 @@
description: 'The directory that contains the source to be documented',
default: Pathname.pwd,
parse: ->(sd) { expand_path(sd) }
config_attr :excluded_files,
- command_line: ['-e', '--exclude file1,file2,…fileN', Array],
- description: 'Files to be excluded from documentation',
+ command_line: ['-e', '--exclude file1,file2,directory3,…fileN', Array],
+ description: 'Files/directories to be excluded from documentation',
default: [],
parse: ->(files) do
Array(files).map { |f| expand_path(f) }
end
@@ -194,9 +194,19 @@
config_attr :readme_path,
command_line: '--readme FILEPATH',
description: 'The path to a markdown README file',
parse: ->(rp) { expand_path(rp) }
+
+ config_attr :documentation_glob,
+ command_line: '--documentation GLOB',
+ description: 'Glob that matches available documentation',
+ parse: ->(dg) { Pathname.glob(dg) }
+
+ config_attr :abstract_glob,
+ command_line: '--abstract GLOB',
+ description: 'Glob that matches available abstracts for categories',
+ parse: ->(ag) { Pathname.glob(ag) }
config_attr :podspec,
command_line: '--podspec FILEPATH',
parse: ->(ps) { PodspecDocumenter.create_podspec(Pathname(ps)) if ps },
default: Dir['*.podspec{,.json}'].first