lib/jazzy/config.rb in jazzy-0.9.1 vs lib/jazzy/config.rb in jazzy-0.9.2
- old
+ new
@@ -165,10 +165,19 @@
default: [],
parse: ->(files) do
Array(files).map { |f| expand_path(f).to_s }
end
+ config_attr :included_files,
+ command_line: ['-i', '--include filepath1,filepath2,…filepathN', Array],
+ description: 'Source file pathnames to be included in documentation. '\
+ 'Supports wildcards.',
+ default: [],
+ parse: ->(files) do
+ Array(files).map { |f| expand_path(f).to_s }
+ end
+
config_attr :swift_version,
command_line: '--swift-version VERSION',
default: nil,
parse: ->(v) do
return nil if v.to_s.empty?
@@ -300,13 +309,13 @@
command_line: '--head HTML',
description: 'Custom HTML to inject into <head></head>.',
default: ''
config_attr :theme_directory,
- command_line: '--theme [apple | fullwidth | DIRPATH]',
+ command_line: '--theme [apple | fullwidth | jony | DIRPATH]',
description: "Which theme to use. Specify either 'apple' (default), "\
- "'fullwidth' or the path to your mustache templates and " \
- 'other assets for a custom theme.',
+ "'fullwidth', 'jony' or the path to your mustache " \
+ 'templates and other assets for a custom theme.',
default: 'apple',
parse: ->(t) do
if %w[apple fullwidth].include?(t)
Pathname(__FILE__).parent + 'themes' + t
else