# Convert an AsciiDoc article to HTML with Asciidoctor locally

Canonical: https://githtml.com/guides/asciidoctor-standalone-html-local-conversion
Published: 2026-11-23
Publisher: WaveTech LLC / gitHtml

Use Asciidoctor's command-line converter to produce an HTML article from a reviewed AsciiDoc source, then inspect the result and its dependencies. A complete HTML document is not necessarily a self-contained resource bundle. Check images, styles, includes, and extensions separately before describing the file as portable or sharing it outside the original project.

## Inspect the source and conversion environment

Identify the Asciidoctor version, document type, attributes, includes, and any extensions used by the project. Do not assume a short source file contains the whole document; include directives can pull in additional material. Review unfamiliar extensions as code and use an appropriate environment for the conversion. Decide whether the desired result is a complete article, a fragment for another site, or a larger book. Keep that choice explicit because it affects how the output should be reviewed. Record the source revision and important attributes so another person can reproduce the same document rather than a superficially similar export.

## Convert a small representative article

The sample converts a local AsciiDoc file into a named HTML output. Use a safe project-specific path and preserve the original source. Begin with a fixture that includes the document title, a few headings, a code example, and one representative image or reference. Read conversion diagnostics and confirm that every included section appears. Do not add remote includes or additional extensions simply to make a sample resemble a full site. First establish the minimal conversion path. If styling or metadata differs from expectations, inspect the chosen backend and attributes before editing generated HTML that will be replaced on the next run.

````sh
asciidoctor --version
asciidoctor -o sample-review.html sample-review.adoc
````

## Inspect the file's actual reading requirements

Open the output and compare its visible text, headings, code, and links with the source. Determine whether images and other resources are embedded, copied separately, or referenced remotely. Test the intended reading environment rather than assuming browser preview behavior applies everywhere. If gitHtml is the destination, the HTML must be generated and committed through a separate workflow; the app does not parse AsciiDoc or run the converter. Keep any resource packaging step explicit and verified. A useful handoff states what the file contains and what it still needs, avoiding the ambiguous promise that standalone output automatically means complete offline functionality. For a longer article, compare the final paragraph as well as the opening. Missing include content near the end can be overlooked when reviewers only inspect the title and first screen.

1. Inspect source includes, attributes, extensions, and version before conversion.
2. Choose the intended document form and use a representative local fixture.
3. Review diagnostics and compare output content with the source.
4. Inventory remaining resources and test the exact reading artifact before sharing.

## Sources and further reading

- [Asciidoctor command line](https://docs.asciidoctor.org/asciidoctor/latest/cli/)

## Related guides

- [Build Rust API docs with the intended package and feature set](https://githtml.com/guides/cargo-doc-feature-scope-review)
- [Fix Docusaurus MDX errors caused by literal braces and angle brackets](https://githtml.com/guides/docusaurus-mdx-angle-bracket-errors)
- [Fix Docusaurus sidebar links that use the wrong document ID](https://githtml.com/guides/docusaurus-sidebar-document-id)
- [Edit the right Docusaurus documentation version](https://githtml.com/guides/docusaurus-versioned-docs-edit-target)

Editorial approach: https://githtml.com/guides/about
