AsciiDoctorJRunnerSettings Class

Summary

The settings to configure the run of AsciiDoctorJ.
Assembly
Cake.AsciiDoctorJ.dll
Namespace
Cake.AsciiDoctorJ
Base Types
  • ToolSettings
graph BT Type-->Base0["ToolSettings"] Type["AsciiDoctorJRunnerSettings"] class Type type-node

Syntax

public class AsciiDoctorJRunnerSettings : ToolSettings

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Constructors

Name Summary
AsciiDoctorJRunnerSettings() Initializes a new instance of the AsciiDoctorJRunnerSettings class.

Properties

Name Value Summary
Attributes IDictionary<string, string>
Gets the list of attributes to set on the document.

Default: [].

corresponds to: -a, --attribute.

Backend string
Gets or sets a value indicating whether to set output format backend.

Default: html5.

corresponds to: -b, --backend.

BaseDir DirectoryPath
Gets or sets a value indicating the base directory containing the document and resources.

Default: directory of source file.

corresponds to: -B, --base-dir.

ClassPath IList<DirectoryPath>
Gets the list of directories to add to the classpath.

corresponds to: -cp, -classpath, --classpath.

Compact bool
Gets or sets a value indicating whether to compact the output by removing blank lines.

Default: false.

corresponds to: -C, --compact.

DestinationDir DirectoryPath
Gets or sets a value indicating the destination output directory.

Default: Directory of source file.

corresponds to: -D, --destination-dir.

DocType Nullable<DocType>
Gets or sets a value indicating the document type to use when rendering output: [article, book, inline].

Default: article.

corresponds to: -d, --doctype.

ERuby Nullable<ERuby>
Gets or sets a value to specify eRuby implementation to render built-in templates: [erb, erubis].

Default: erb.

corresponds to: -e, --eruby.

InputFiles IList<FilePath>
Gets the list of input files to be processed.
LoadPath IList<DirectoryPath>
Gets the list of directories to add to the $LOAD_PATH.

corresponds to: -I, --load-path.

Output FilePath
Gets or sets a value indicating the output file(default: based on input file path); use - to output to STDOUT.

corresponds to: -o, --out-file.

Quiet bool
Gets or sets a value indicating whether to suppress warnings.

Default: false.

corresponds to: -q, --quiet.

Require IList<string>
Gets or sets a value indicating whether to require the specified library before executing the processor.

corresponds to: -r, --require.

SafeMode Nullable<SafeMode>
Gets or sets a value to set safe mode level explicitly: [unsafe, safe, server, secure].

Default: UNSAFE.

corresponds to: -S, --safe-mode.

SectionNumbers bool
Gets or sets a value indicating whether to auto-number section titles in the HTML backend.

Default: false.

corresponds to: -n, --section-numbers.

SuppressHeaderAndFooter bool
Gets or sets a value indicating whether to suppress output of header and footer.

Default: false.

corresponds to: -s, --no-header-footer.

TemplateDir DirectoryPath
Gets or sets a value indicating the directory containing custom render templates the override the built-in set.

corresponds to: -T, --template-dir.

TemplateEngine string
Gets or sets a value indicating the template engine to use for the custom render templates (loads gem on demand).

corresponds to: -E, --template-engine.

TimingsMode bool
Gets or sets a value indicating whether to enable timings mode.

Default: false.

corresponds to: -t, --timings.

Verbose bool
Gets or sets a value indicating whether to enable verbose mode.

Default: false.

corresponds to: -v, --verbose.

Version bool
Gets or sets a value indicating whether to display the version and runtime environment.

Default: false.

corresponds to: -V, --version.

Extension Methods

Name Value Summary
Dump<AsciiDoctorJRunnerSettings>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<AsciiDoctorJRunnerSettings>(AsciiDoctorJRunnerSettings[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<AsciiDoctorJRunnerSettings>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<AsciiDoctorJRunnerSettings>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<AsciiDoctorJRunnerSettings>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<AsciiDoctorJRunnerSettings>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
WithAttribute(string, string) AsciiDoctorJRunnerSettings
Add multiple attributes to Attributes.
Requires the Cake.AsciiDoctorJ addin
WithAttributes(IEnumerable<KeyValuePair<string, string>>) AsciiDoctorJRunnerSettings
Add one attribute to Attributes.
Requires the Cake.AsciiDoctorJ addin
WithBackend(string) AsciiDoctorJRunnerSettings
Set the Backend Use this only if you need a non-builtin backend (e.g. "pdf") For builtin backends use WithBuiltinBackend(AsciiDoctorJRunnerSettings, BuiltinBackend).
Requires the Cake.AsciiDoctorJ addin
WithBaseDir(DirectoryPath) AsciiDoctorJRunnerSettings
Sets the BaseDir.
Requires the Cake.AsciiDoctorJ addin
WithBuiltinBackend(BuiltinBackend) AsciiDoctorJRunnerSettings
Set the Backend to a builtin backend. Possible values are BuiltinBackend. For non-builtin backends (i.e. plugins) use WithBackend(AsciiDoctorJRunnerSettings, string).
Requires the Cake.AsciiDoctorJ addin
WithClassPath(DirectoryPath) AsciiDoctorJRunnerSettings
Add one path to ClassPath.
Requires the Cake.AsciiDoctorJ addin
WithClassPaths(IEnumerable<DirectoryPath>) AsciiDoctorJRunnerSettings
Add multiple paths to ClassPath.
Requires the Cake.AsciiDoctorJ addin
WithCompact() AsciiDoctorJRunnerSettings
Sets Compact to true.
Requires the Cake.AsciiDoctorJ addin
WithDestinationDir(DirectoryPath) AsciiDoctorJRunnerSettings
Sets the DestinationDir.
Requires the Cake.AsciiDoctorJ addin
WithDocType(DocType) AsciiDoctorJRunnerSettings
Sets the DocType Possible Values DocType.
Requires the Cake.AsciiDoctorJ addin
WithERuby(ERuby) AsciiDoctorJRunnerSettings
Sets ERuby Possible values ERuby.
Requires the Cake.AsciiDoctorJ addin
WithInputFile(FilePath) AsciiDoctorJRunnerSettings
Add a single File to InputFiles.
Requires the Cake.AsciiDoctorJ addin
WithInputFiles(IEnumerable<FilePath>) AsciiDoctorJRunnerSettings
Add a list of files to InputFiles.
Requires the Cake.AsciiDoctorJ addin
WithLoadPath(DirectoryPath) AsciiDoctorJRunnerSettings
Adds one path to LoadPath.
Requires the Cake.AsciiDoctorJ addin
WithLoadPaths(IEnumerable<DirectoryPath>) AsciiDoctorJRunnerSettings
Adds multiple paths to LoadPath.
Requires the Cake.AsciiDoctorJ addin
WithOutputFile(FilePath) AsciiDoctorJRunnerSettings
Set the Output.
Requires the Cake.AsciiDoctorJ addin
WithQuiet() AsciiDoctorJRunnerSettings
Set Quiet to true.
Requires the Cake.AsciiDoctorJ addin
WithRequire(string[]) AsciiDoctorJRunnerSettings
Set Require to true.
Requires the Cake.AsciiDoctorJ addin
WithSafeMode(SafeMode) AsciiDoctorJRunnerSettings
Set SafeMode For possible values SafeMode.
Requires the Cake.AsciiDoctorJ addin
WithSectionNumbers() AsciiDoctorJRunnerSettings
Set SectionNumbers to true.
Requires the Cake.AsciiDoctorJ addin
WithSuppressHeaderAndFooter() AsciiDoctorJRunnerSettings
Requires the Cake.AsciiDoctorJ addin
WithTemplateDir(DirectoryPath) AsciiDoctorJRunnerSettings
Set the TemplateDir.
Requires the Cake.AsciiDoctorJ addin
WithTemplateEngine(string) AsciiDoctorJRunnerSettings
Set the TemplateEngine.
Requires the Cake.AsciiDoctorJ addin
WithTimingsMode() AsciiDoctorJRunnerSettings
set TimingsMode to true.
Requires the Cake.AsciiDoctorJ addin
WithVerbose() AsciiDoctorJRunnerSettings
set Verbose to true.
Requires the Cake.AsciiDoctorJ addin
WithVersion() AsciiDoctorJRunnerSettings
Set Version to true.
Requires the Cake.AsciiDoctorJ addin