Skip to content

Commit

Permalink
Merge pull request #17 from ghelleks/master
Browse files Browse the repository at this point in the history
Add CLI export tool.
  • Loading branch information
benbalter committed May 25, 2013
2 parents 5488783 + 57b2945 commit eb40180
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
19 changes: 19 additions & 0 deletions jekyll-export-cli.php
@@ -0,0 +1,19 @@
<?php
/*
* Run the exporter from the command line and spit the zipfile to STDOUT.
*
* Usage:
*
* $ php jekyll-export-cli.php > my-jekyll-files.zip
*
* Must be run in the wordpress-to-jekyll-exporter/ directory.
*
*/

include("jekyll-export.php");
include("../../../wp-config.php");

$je = new Jekyll_Export();
$je->export();

?>
9 changes: 9 additions & 0 deletions readme.md
Expand Up @@ -22,6 +22,15 @@ Usage
3. Activate plugin in WordPress dashboard
4. Select `Export to Jekyll` from the `Tools` menu

Command-line Usage
------------------

If you're having trouble with your web server timing out before the export is complete, you may enjoy the command-line tool.
It works just like the plugin, but produces the zipfile on STDOUT:

php jekyll-export-cli.php > jekyll-export.zip


Changelog
---------

Expand Down

0 comments on commit eb40180

Please sign in to comment.