Cake.Asciidoctor 1.1.21

dotnet add package Cake.Asciidoctor --version 1.1.21                
NuGet\Install-Package Cake.Asciidoctor -Version 1.1.21                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Cake.Asciidoctor" Version="1.1.21" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Cake.Asciidoctor --version 1.1.21                
#r "nuget: Cake.Asciidoctor, 1.1.21"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Cake.Asciidoctor&version=1.1.21                

Cake.Asciidoctor

Cake.Asciidoctor is a Cake Addin that provides aliases for Asciidoctor and Asciidoctor PDF

You can read the latest documentation at https://github.com/ap0llo/Cake.Asciidoctor.

Table of Contents

Prerequisites

Asciidoctor and/or Asciidoctor PDF need to be installed separately for the Cake addin to work.
Please follow the official documentation for installation instructions:

Usage

Install the Addin

Install the addin into your Cake build.

  • If you are using Cake scripting, use the #addin reprocessor directive:

    #addin nuget:?package=Cake.Asciidoctor&version=VERSION
    
  • If you are using Cake.Frosting, install the addin by adding a package reference to your project:

    <PackageReference Include="Cake.Asciidoctor" Version="VERSION" /> 
    

Converting an AsciiDoc document to HTML

The Asciidoctor() alias runs Asciidoctor to convert an AsciiDoc document to HTML.

The only required parameter is the path of the input document. This will convert the document to HTML and place it next to the input document:

Task("ConvertDocuments").Does(() =>
{
    // This will create "input.html" in the same directory as input.adoc
    Asciidoctor("input.adoc");
});

Additional (optional) settings can be specified using the AsciidoctorSettings parameter.

For example, to change the output directory, use the DestinationDirectory property:

Task("ConvertDocuments").Does(() =>
{
    Asciidoctor(
        "input.adoc",
        new AsciidoctorSettings() 
        {
            DestinationDirectory = "./output-directory"
        });
});

The avaialble options in AsciidoctorSettings correspond to the command line options of Asciidoctor. Please refer to asciidoctor(1) for detailed information.

Converting an AsciiDoc document to PDF

The AsciidoctorPdf() alias runs Asciidoctor PDF to convert an AsciiDoc document to PDF.

The only required parameter is the path of the input document. This will convert the document to a PDF and place it next to the input document:

Task("ConvertDocuments").Does(() =>
{
    // This will create "input.html" in the same directory as input.adoc
    AsciidoctorPdf("input.adoc");
});

Additional (optional) settings can be specified using the AsciidoctorPdfSettings parameter.

For example, to change the output directory, use the DestinationDirectory property:

Task("ConvertDocuments").Does(() =>
{
    AsciidoctorPdf(
        "input.adoc",
        new AsciidoctorPdfSettings() 
        {
            DestinationDirectory = "./output-directory"
        });
});

The available options in AsciidoctorPdfSettings correspond to the command line options of Asciidoctor PDF and are mostly the same as the options of Asciidoctor. Please refer to the Asciidoctor PDF documentation for details.

License

Cake.Asciidoctor is licensed under the MIT License.

For details see https://github.com/ap0llo/Cake.Asciidoctor/blob/main/LICENSE

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.
  • net7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.21 611 9/26/2023
1.0.31 176 8/25/2023