An open API service indexing awesome lists of open source software.

https://github.com/evilsocket/octoghost

A python script to process Octopress markdown files and write a JSON file ready to import into Ghost.
https://github.com/evilsocket/octoghost

Last synced: 5 months ago
JSON representation

A python script to process Octopress markdown files and write a JSON file ready to import into Ghost.

Awesome Lists containing this project

README

          

Octopress 2 Ghost
---

A python script to process Octopress markdown files and write a JSON file ready to import into Ghost.

These are the preliminar steps:

* Setup Ghost, signup, signin and remove the welcome post.
* Go to `/ghost/debug` and export the database. It'll save a file named `GhostData.json`.
* Download `octopress2ghost.py` and install the requirements: `pip install translitcodec`

Run the conversion script:

`python octopress2ghost.py | python -mjson.tool > import-this.json`

Where octopress-posts is a directory with the Octopress posts and ghost-data is the JSON exported from Ghost.

Now go to `/ghost/debug` and import the obtained JSON file.

If everything goes well you should be able to signin again and all your Octopress posts will be there.