Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vmogilev/dop
Day One Parser
https://github.com/vmogilev/dop
Last synced: 3 months ago
JSON representation
Day One Parser
- Host: GitHub
- URL: https://github.com/vmogilev/dop
- Owner: vmogilev
- License: apache-2.0
- Created: 2015-05-27T01:11:59.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-07T05:39:15.000Z (about 9 years ago)
- Last Synced: 2024-08-01T21:52:08.979Z (6 months ago)
- Language: HTML
- Size: 320 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- project-awesome - vmogilev/dop - Day One Parser (HTML)
README
# DOP - Day One Parser
I built [Day One](http://dayoneapp.com/) Parser to host my Food Log online and to share it with my nutritionist. However it can also be used to run a blog powered by Day One Journal. Here is what it does:
* displays Day One Tags as a list of color coded slugs (tag colors are defined in `CssLookup` see `conf/dop.json` `warning=yellow`, `danger=red`, `success=green`)
* places Day One Image at the top of the entry to which it was attached
* counts the number of "Search-String" in Day One entry and displays it in a badge (Search-String is defined in `Count` see `conf/dop.json`)
* decodes a starred entry and displayes it as a YES/no slugDOP also supports custom Title, URL and Description for each entry as follows:
* if First line of the entry begins with `# ` what follows is used for Title
* if Second line of the entry begins with `//dd: ` what follows is used for Description
* if Third line of the entry begins with `//dl: ` what follows is used for url linkExample:
# Custom Entry Title
//dd: Longer Description of the entry
//dl: my-entry-url.html![dop screen shot](https://s3.amazonaws.com/mve-shared/dop1.png)
## Installation
GOPATH=/data/app/dev/golang; export GOPATH
GO=/usr/local/go/bin/go; export GO$GO get github.com/vmogilev/dop
$GO install github.com/vmogilev/dop## Configuration
Modify conf/dop.json and define the following variables:
* `Title`: Site's Top Level Title
* `Desc`: Site's description - maps to `` on top level page/root
* `PubStarred`: `true|false` - if `true` only Starred entries are published
* `Count`: Only used with `dop_food` template - counts occurances of string and sets result in a badge
* `CssLookup`: map of `tag` -> `css-tag` - allowed values [`success` `warning` `danger`]Modify conf/dop.env and define HTTP Host variables and JDIR - path to your DayOne journal directory where `entries` subdirectory is located (see example configuration)
## Startup
Source the conf/dop.env:
. conf/dop.env
Start it:
./start.sh
## Stop
./stop.sh
## License
Apache License Version 2.0
*rev: 205 *