0.0
No commit activity in last 3 years
No release in over 3 years
Merge different asciidoc files into 1 big file.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 0
 Project Readme

AsciiDoc Merger

A simple gem to merge different asciidoc files into 1 big file. It also copies all images into a folder along the merged file.

How to use

  1. Install the gem
gem install asciidoc-merger
  1. Create a new instance and provide your main file
require 'asciidoc-merger'

asciidoc_parser = AsciiDocMerger::Parser.new
asciidoc_parser.file = "/path/to/my/file.asciidoc"
asciidoc_parser.merge!

Optional parameters

  • Ignore non existing images:
asciidoc_parser.ignore_non_existing_images = true
  • Set the output folder
asciidoc_parser.output_folder = "/path/to/folder/"
  • Set the file name of the merged file
asciidoc_parser.merged_file_name = "my_awesome_filename.asciidoc"