Skip to content

wwerner/AsciidoctorSemanticColors

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AsciidoctorSemanticColors

Demonstrates use of docinfo file

ADOC File

Add the :docinfo1: attribute at the top.

(see docinfo.html file in repo.)

docinfo.html

This file contains your custom styles

Note
Roles are case-sensitive. For example the style for 'primary' is lower-case in the docinfo file.
.primary { color: #ba3925; }
.primary-background { background-color: #ff8c7a; }

Usage of the 'danger' style in .adoc file

icon:exclamation-circle[role=danger]

Generating the index.html file

At the command prompt, run Asciidoctor

> asciidoctor index.adoc

This will generate the index.html file.

About

Demonstrates use of docinfo file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 100.0%