SkillAgentSearch skills...

Octoghost

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

Install / Use

/learn @evilsocket/Octoghost
About this skill

Quality Score

0/100

Supported Platforms

Universal

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 <octopress-posts> <ghost-data> | 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.

View on GitHub
GitHub Stars27
CategoryDevelopment
Updated1y ago
Forks10

Languages

Python

Security Score

75/100

Audited on Aug 12, 2024

No findings