Skip to main content

AsciiDoc

Build PDF

call asciidoctor-pdf book/book.adoc -o book/dist/book.pdf

Build HTML

# Build HTML
call asciidoctor book/book.adoc -o book/dist/book.html

# Copy Images (Need to copy all external rerferences into /dist)
call robocopy book/img book/dist/img /E

Themes


Include AsciiDoc File

include::01_introduction.adoc[]


Table of Contents (Sample)

= My Book Title
:author: Eric Morgan
:email: ericmorgan1@gmail.com
:revnumber: v0.0.001
:revdate: Dec. 30, 2021
:description: My book description
:doctype: book
:sectnums:
:toc: left
:toctitle: Table of Contents
:toclevels: 5
:docinfo: shared
:source-highlighter: highlightjs
:icons: font
:stem: latexmath
:quick-uri: https://asciidoctor.org/docs/asciidoc-syntax-quick-reference/
:stylesheet: italian-pop.css
:stylesdir: css

include::01_introduction.adoc[]

include::02_setup.adoc[]

include::03_data-model.adoc[]

= Part 2
:!chapter-number:

include::p2_00_temp.adoc[]

Cheat Sheet

  • Full Cheat Sheet

  • Titles

    • = Title 1
    • == Title 2
    • === Title 3
  • Checkboxes

    * [ ] Task 1
    * [ ] Task 2
  • Unordered List

    .List title
    * Bullet 1
    * Bullet 2
    ** Sub-Bullet
  • Unordered List

    .List title
    . Item 1
    . Item 2
    .. Sub-Item
  • Source Code

./model/models.ts
[source,typescript]
----
interface IUser {
email: string;
username: string;
firstName: string;
lastName: string;
}
----
  • Source Code (External File)
./src/constants/ApiKeys.ts
[source,javascript]
----
include::code/ApiKeys.demo.ts[]
----
  • Image
    • image::img/my-image.png[]