Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from ghelleks/master
Add CLI export tool.
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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(); | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters