Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/remy/ghost-harp
This code will port a Ghost (dev) database to static markdown files and prepare the Harp.js _data.json
https://github.com/remy/ghost-harp
Last synced: about 2 months ago
JSON representation
This code will port a Ghost (dev) database to static markdown files and prepare the Harp.js _data.json
- Host: GitHub
- URL: https://github.com/remy/ghost-harp
- Owner: remy
- License: mit
- Created: 2014-09-12T15:00:07.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-12T15:01:01.000Z (about 10 years ago)
- Last Synced: 2024-07-13T04:34:11.096Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 133 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ghost -> Harp
This code will port a Ghost (*dev*) database to static markdown files and prepare the [harp](http://harpjs.com) `_data.json` file for you.
**Disclaimer** I wrote this for my own single use. It's not been battled tested on anything other than my own database, so feel free to fork, fix, tweak, etc to make it more compatible.
## Install
Via npm as a global utility:
```text
npm install -g ghost-harp
```## Usage
From the command line:
```text
ghost-harp --input --output
```For example:
```text
ghost-harp --input ../remysharp-ghost/ --output .
```This will read from `../remysharp-ghost` and look for the `config.js`, then it'll find the `development` sqlite database and output a directory like this:
```text
.
├── harp.json
└── public
├── _data.json
├── about.md
├── blog
│ ├── 2007-moments.md
│ ├── 8-questions-after-ie-pissed-the-community-off.md
│ ├── _data.json
│ ├── _drafts
│ │ ├── _data.json
│ │ ├── my-velveteen-rabbit.md
│ │ ├── what-went-in-to-remote-tilt-com.md
│ │ └── why-i-prefer-mobile-web-apps-to-native-apps.md
│ ├── a-better-twitter-search.md
│ ├── a-few-more-jquery-plugins-crop-labelover-and-pluck.md
│ ├── wordpress-smiles.md
│ ├── wordpress-tagging-and-textmate.md
│ └── youre-paying-to-speak.md
├── talks.md
└── twitter.md
```