Skip to content
This repository was archived by the owner on Jul 22, 2023. It is now read-only.
/ toaster Public archive

Convert AsciiDoc documents to HTML or PDF. **no longer maintained**

Notifications You must be signed in to change notification settings

inksafari/toaster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

toaster

A script to convert AsciiDoc documents into HTML or PDF. Thanks Asciidoctor.

Requirements

Installation

Install project dependencies with bundle install --jobs 4 --path vendor/bundle --binstubs vendor/bin and bundle exec asciidoctor-pdf-cjk-kai_gen_gothic-install( Download Chinese/Japanese/Korean Fonts )

Usage

Project Structure

.
├── adoc
│   ├── ch_ooo
│   │   ├── ch_ooo.adoc
│   │   └── sections
│   │       ├── section_1.adoc
│   │       ├── section_2.adoc
│   │       └── section_3.adoc
│   ├── ch_xxx
│   │   ├── ch_xxx.adoc
│   │   └── sections
│   │       ├── section_a.adoc
│   │       ├── section_b.adoc
│   │       └── section_c.adoc
│   ├── docinfo-footer.html
│   ├── book.adoc
│   ├── site
│   │   └── index.adoc
│   └── _temp( Unsorted AsciiDoc Files )
├── dist
│   ├── sample.pdf
│   ├── ch_ooo.html
│   └── ch_xxx.html
├── mkd( Markdown Files )
├── Rakefile
├── 404.html
└── vendor

Themes

  1. cd /path/to/project
  2. git clone https://github.com/asciidoctor/asciidoctor-stylesheet-factory asf && cd asf
  3. Editing the config.rb: 'stylesheets' -> '../themes'
  4. bundle install --path vendor && bundle exec compass compile

Convert Markdown files to AsciiDoc files

bundle exec rake adoc

Convert AsciiDoc files to PDF

bundle exec rake pdf --quiet

Convert AsciiDoc files to HTML Pages

bundle exec rake html --quiet

Deploying the static website

bundle exec rake deploy

LICENSE

MIT License

About

Convert AsciiDoc documents to HTML or PDF. **no longer maintained**

Resources

Stars

Watchers

Forks