/drupal_to_static

Exports Drupal 7 site content in the Markdown format for static site generators, such as Jekyll, Jigsaw, etc.

GNU General Public License v2.0GPL-2.0

Drupal to Static

Drupal to Static module exports Drupal 7 site content in the Markdown format for static site generators, such as Jekyll, Jigsaw, etc.

This is a fork of lukaswhite/Drupal-Jekyll-Export module which only supports Jekyll.

Disclaimer: I'm very familiar with Drupal Coding Standards and refactoring approaches but this time I have the goal of getting my own tasks done and allowing others to use the module, so the code can be not ideal. If you want it to be better, please do.

Dependencies

Installation

Copy/clone the module into your sites/all/modules/contrib and enable it as usual from the admin panel or through drush.

Usage

  1. Once you've installed the module, browse to admin/config/development/drupal_to_static

  2. Select the content types to export, enter the name of the layout, and hit "Run Export".

  3. Download the ZIP file which the module produces for you. The archive should contain all the specified nodes in Markdown format.

  4. Then copy the content of the archive into the _posts folder of your site generator setup.

Credits

Author: Lukas White (hello@lukaswhite.com)
Modified by: Konstantin Komelin

License

GNU GPL v2.0 (why?)