All Projects → chloerei → asciidoctor-htmlbook

chloerei / asciidoctor-htmlbook

Licence: MIT license
Asciidoctor HTMLBook is an Asciidoctor backend for converting AsciiDoc documents to HTMLBook documents.

Programming Languages

ruby
36898 projects - #4 most used programming language
HTML
75241 projects
shell
77523 projects

Projects that are alternatives of or similar to asciidoctor-htmlbook

Asciidoctor Browser Extension
⚪️ An extension for web browsers that converts AsciiDoc files to HTML using Asciidoctor.js.
Stars: ✭ 152 (+390.32%)
Mutual labels:  asciidoc, asciidoctor
Kramdown Asciidoc
A kramdown extension for converting Markdown documents to AsciiDoc.
Stars: ✭ 97 (+212.9%)
Mutual labels:  asciidoc, asciidoctor
Asciidoctor Html5s
Semantic HTML5 converter (backend) for Asciidoctor
Stars: ✭ 50 (+61.29%)
Mutual labels:  asciidoc, asciidoctor
Asciidoctor Epub3
📘 Asciidoctor EPUB3 is a set of Asciidoctor extensions for converting AsciiDoc to EPUB3 & KF8/MOBI
Stars: ✭ 166 (+435.48%)
Mutual labels:  asciidoc, asciidoctor
Asciidoctor Web Pdf
Convert AsciiDoc documents to PDF using web technologies
Stars: ✭ 219 (+606.45%)
Mutual labels:  asciidoc, asciidoctor
Asciidoc Kate
AsciiDoc/AsciiDoctor syntax highlighting plugin for Kate editor/KatePart
Stars: ✭ 5 (-83.87%)
Mutual labels:  asciidoc, asciidoctor
Infoq Mini Book
Template project for creating an InfoQ Mini-Book with Asciidoctor
Stars: ✭ 147 (+374.19%)
Mutual labels:  asciidoc, asciidoctor
Gradle Multi Project Example
Gradle 多项目管理示例
Stars: ✭ 283 (+812.9%)
Mutual labels:  asciidoc, asciidoctor
Emacs Easy Hugo
Emacs major mode for managing hugo
Stars: ✭ 235 (+658.06%)
Mutual labels:  asciidoc, asciidoctor
Atom Asciidoc Preview
⚛ AsciiDoc preview for the Atom editor.
Stars: ✭ 136 (+338.71%)
Mutual labels:  asciidoc, asciidoctor
Asciidoctor.js
A JavaScript port of Asciidoctor, a modern implementation of AsciiDoc
Stars: ✭ 500 (+1512.9%)
Mutual labels:  asciidoc, asciidoctor
Asciidoctor Reveal.js
🔮 A reveal.js converter for Asciidoctor and Asciidoctor.js. Write your slides in AsciiDoc!
Stars: ✭ 219 (+606.45%)
Mutual labels:  asciidoc, asciidoctor
Asciidoctor
💎 A fast, open source text processor and publishing toolchain, written in Ruby, for converting AsciiDoc content to HTML 5, DocBook 5, and other formats.
Stars: ✭ 3,905 (+12496.77%)
Mutual labels:  asciidoc, asciidoctor
Asciidoctor Pdf
📃 Asciidoctor PDF: A native PDF converter for AsciiDoc based on Asciidoctor and Prawn, written entirely in Ruby.
Stars: ✭ 868 (+2700%)
Mutual labels:  asciidoc, asciidoctor
Doctoolchain
a Gradle based AsciiDoc Toolchain for Software Architecture Documentation
Stars: ✭ 355 (+1045.16%)
Mutual labels:  asciidoc, asciidoctor
Ebook Template
Template to create PDF, ePub and Kindle books with Asciidoctor
Stars: ✭ 150 (+383.87%)
Mutual labels:  asciidoc, asciidoctor
bitbucket-asciidoc-plugin
An add-on for Atlassian Bitbucket Server to render AsciiDoc files.
Stars: ✭ 20 (-35.48%)
Mutual labels:  asciidoc, asciidoctor
asciidoctor-lein-plugin
A Leiningen plugin for generating documentation using Asciidoctor
Stars: ✭ 26 (-16.13%)
Mutual labels:  asciidoc, asciidoctor
Asciidocfx
Asciidoc Editor and Toolchain written with JavaFX 16 (Build PDF, Epub, Mobi and HTML books, documents and slides)
Stars: ✭ 1,533 (+4845.16%)
Mutual labels:  asciidoc, asciidoctor
Asciidoctor Intellij Plugin
AsciiDoc plugin for products on the IntelliJ platform (IDEA, RubyMine, etc)
Stars: ✭ 250 (+706.45%)
Mutual labels:  asciidoc, asciidoctor

Asciidoctor HTMLBook

Asciidoctor HTMLBook is an Asciidoctor backend for converting AsciiDoc documents to HTMLBook documents.

Installation

Add this line to your application’s Gemfile:

gem 'asciidoctor-htmlbook'

And then execute:

$ bundle

Or install it yourself as:

$ gem install asciidoctor-htmlbook

Usage

CLI

$ asciidoctor-htmlbook basic-example.adoc

or

$ asciidoctor -r asciidoctor-htmlbook basic-example.adoc

For more options:

$ asciidoctor-htmlbook -h

API

To use Asciidoctor in your application, you first need to require the gem:

require 'asciidoctor/htmlbook'

Load and Convert a File Using the API

Load from file:

doc = Asciidoctor.load_file 'mysample.adoc', backend: 'htmlbook'
puts doc.convert

Convert file:

Asciidoctor.convert_file 'mysample.adoc', backend: 'htmlbook'

Load and Convert Strings Using the API

Load from string:

doc = Asciidoctor.load '*This* is Asciidoctor.', backend: 'htmlbook'
puts doc.convert

Render string:

Asciidoctor.convert '*This* is Asciidoctor.', backend: 'htmlbook'

When rendering a string, the header and footer are excluded by default to make Asciidoctor consistent with other lightweight markup engines like Markdown. If you want the header and footer, just enable it using the :header_footer option:

Asciidoctor.convert '*This* is Asciidoctor.', backend: 'htmlbook', header_footer: true

Provide Custom Templates

You can overwrite default templates by adding :template_dir option:

Asciidoctor.convert '*This* is Asciidoctor.', backend: 'htmlbook', template_dir: 'path/to/templates'
Note

asciidoctor-htmlbook template do not compatible with asciidoctor built-in template backend.

View ./templates for more info.

Development

After checking out the repo, run bin/setup to install dependencies. Then, run bin/rake to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/chloerei/asciidoctor-htmlbook. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].