Skip to content

wolfjiang/SiteMadeWithAsciidoctor

 
 

Repository files navigation

Site Made With Asciidoctor

This website http://tedbergeron.github.io/SiteMadeWithAsciidoctor/ was made only using Asciidoctor and with one command.

Here’s How

Start with your content marked up as AsciiDoc. See text files in the directory. I am using a header and footer that is included on the index and page one AsciiDoc text file.

To render the pages

At the command prompt

> asciidoctor *.txt

Push or FTP

Push your files back to your GitHub 'gh-pages' branch.

Or just FTP the .html files that were generated to your own website.

Use Different Asciidoctor Themes

I’ve included a couple themes in the styles directory. To use them.

At the command prompt

> asciidoctor -a stylesheet=styles/maker.css  *.txt

If you’d like to use the colony stylesheet use

> asciidoctor -a stylesheet=styles/colony.css  *.txt
Note
You can get other themes and preview them here: http://themes.asciidoctor.org/

I’m using Asciidoctor 'smart links' to convert the file extension ".adoc" or ".txt" to ".html"

<<page2.adoc#,Smart Link to page 2>>
or
<<page2.txt#,Smart Link to page 2>>

both renders as a link

href="page2.html"

About

Demo of website produced using only Asciidoctor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 76.5%
  • CSS 23.5%