Project

xantora

0.0
No release in over 3 years
A Ruby CLI-Tool which makes it easy to export PDF's from your Antora AsciiDoc-Files
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.1.0
~> 0.9.3
 Project Readme

Xantora

A PDF-converter for Antora (AsciiDoc) documents.

This Ruby CLI-Tool uses asciidoctor-pdf and makes it easy to export PDF's from Antora projects.

Installation

Install the gem:

gem install xantora

Usage

Convert a single AsciiDoc document:

xantora convert modules/user-guide/pages/index.adoc

Convert a all documents within an Antora component:

xantora convert modules/

Convert all documents and store PDF's in the attachment folders (using option --to-attachments or -A):

xantora convert modules/ --to-attachments 

See xantora help for more usage instructions.

Features

  • Preconfigured asciidoctor-pdf setup wich makes it simple to convert single Antora documents or whole modules into PDF's
  • Integrated PDF-theme suppport which makes your documents look good out of the box
  • Uses the santisized AsciiDoc document title as PDF filename
  • Sets the image-path according your Antora folder structure
  • Autodetects antora.yml configs in order to extract metadata such as page-component-title, which can be used in themes (i.e. header and footer)
  • Optionaly Xantora will safe PDF's in attachments folders coresponding to source documents

Known Limitations

Development

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

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and the created tag, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/niwo/xantora. This project is intended to be a safe, welcoming space for collaboration.

License

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