Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
  lib
  MIT-LICENSE
  README.md
  Rakefile
Size: Mime:
  README.md

MovingDay

Export Neoteric CMS projects to markdown. The goal is to provide a simple way to generate a markdown document from a given record. Generally through mapping attributes to front matter and compiling all the body content into an HTML document and converting to markdown.

Installation

Add this line to your application's Gemfile:

gem "moving_day"

And then execute:

$ bundle

Or install it yourself as:

$ gem install moving_day

Then install with

$ bin/rails g moving_day:install

If you have custom Neoteric Block types, you can extend the BlockExtruder with methods for compiling its html in the initializer provided

Usage

Generate an exporter for a model

$ bin/rails g moving_day:exporter Event

This generates an exporter class that can be customized. See the base exporter for the API provided and extend as needed.

It also generates an export task in your application's lib/tasks/moving_day.rake that can also be customized. After reviewing and adapting the generated code, you can export a model with:

# Using example above
$ bin/rails moving_day:events

License

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