Forrest logo
back to the asciidoctor tool

asciidoctor:tldr:3aca6

asciidoctor: Convert a specific `.adoc` file to HTML and link a CSS stylesheet.
$ asciidoctor -a stylesheet=${path-to-stylesheet-css} ${filename-adoc}
try on your machine

This command is using the Asciidoctor tool to convert an AsciiDoc file (with the filename specified by ${filename-adoc}) into an HTML file.

Here's a breakdown of the command:

  • asciidoctor: This is the main command to run the Asciidoctor tool.
  • -a stylesheet=${path-to-stylesheet-css}: This is an option for the Asciidoctor command. It sets the value of the attribute 'stylesheet' to the path of a CSS file (specified by ${path-to-stylesheet-css}). This allows you to apply a custom CSS style to the generated HTML output.
  • ${filename-adoc}: This is a placeholder for the name of the AsciiDoc file you want to convert. It should be replaced with the actual filename (including extension) of your AsciiDoc file.

Overall, this command is used to convert an AsciiDoc file to HTML using Asciidoctor, with the option to specify a custom CSS stylesheet to apply to the output.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the asciidoctor tool