Themes
If you want to change the style of your document you can set linkcss and stylesheet attributes and put the corresponding css files into stylesdir directory. But if you don’t want to deal with this files you can use our asciidoctor-themes extension and set the theme attribute you want to use.
-
include the extension
plugins {
id 'org.asciidoctor.jvm.convert' version '2.1.0'
}
repositories {
jcenter()
}
configurations {
asciidoctorExt
}
dependencies {
asciidoctorExt "com.puravida.asciidoctor:asciidoctor-themes:${puravidaVersion}"
}
asciidoctorj{
version '2.0.0'
}
asciidoctor {
configurations 'asciidoctorExt'
}
-
set the theme you want to use in the header of your document:
= The Title
Your name
:theme: choose_one
The asciidoctor-themes come with differents themes prepackaged:
-
asciidoctor (default, see in action at index.html)
-
colony (see in action at colony.html )
-
foundation (see in action at foundation.html)
-
foundation-lime (see in action at foundation-lime.html)
-
foundation-potion (see in action at foundation-potion.html)
-
github (see in action at github.html )
-
golo (see in action at golo.html )
-
iconic (see in action at iconic.html )
-
maker (see in action at maker.html )
-
readthedocs (see in action at readthedocs.html )
-
riak (see in action at riak.html )
-
rocket-panda (see in action at rocket-panda.html )
-
rubygems (see in action at rubygems.html )