Really useful software project management and source code hosting.    tell me more...
BROWSE: projects / users / groups
Postview is a simple blog engine written in Ruby using the Sinatra DSL for render files written in Markdown.
star_disabled Dashboard Source Tickets Wiki Blog Network


Really Useful Social coding!

Codaset is an open system, so you can browse and search through all the open source projects, and check out what your friends are coding. Follow them, befriend them, and fork their code; quickly and easily.
Every single open source project you create is free, so come on and use Codaset at no cost. Your first private or semi-private project is also free. Read more about what it costs after that.

Git clone URL's...

Public: git://codaset.com/hallison/postview.git
Active tickets:
0
Milestones:
0
Bookmarks:
0
Forks:
1


Postview - A lightweight blog engine

Postview is a simple blog engine (a.k.a. blogware) written in Ruby using
the Sinatra framework and Kramdown parser to renders files written in
Markdown.

Features

  • Easy configuration.
  • Easy synchronization.
  • No database, it's use only text files written in Markdown.
  • Has suport to themes.

Getting started

Install Ruby [Gem package][postview gem] and try.

The Postview depended of the following libraries (Gems):

Install stable gem from RubyForge or [GemCutter.org][].

$ sudo gem install postview

Then, run command for create and setup a new Postview directory structure.

$ postview create path/to/blog

Or run using "--prompt-values":

$ postview create path/to/blog --prompt-values

After setup, run server with command:

$ postview server

In your browser, access http://127.0.0.1:9000/.

Create new post

New post can be created by using the task post:

$ cd path/to/postview
$ rake post

Following all instructions. Please, set environment variable +EDITOR+
or +VISUAL+ for editing your posts. Other else, run:

$ cd path/to/postview
$ EDITOR=<your-favorite-editor> rake post

The new post will be written in drafts directory. You can pass other
directory.

$ cd path/to/postview
$ rake post[path/to/other/post/directory]

NOTE: New feature for creates new post from blog manager will be added.

== Synchronize your posts

You can synchronize your page using the synchronize tasks. For more
information about this task, run rake -D sync.

It's need creates and edit file placed in +/your/home/directory/.netrc+.
The +directory+ attribute most be setted in +settings.yml+ file.

Example:

# remote host
/remote/path/to/postview
`-- posts
    |-- archive
    `-- drafts
# local host
posts
|-- 20090702-foo_post_article.ruby.sinatra.git.mkd
|-- archive
|   `-- 20080702-foo_post_article.ruby.sinatra.git.mkd
`-- drafts
    `-- 20090703-foo_draft_article.ruby.sinatra.git.mkd

# To synchronize posts
$ rake sync:posts
$ rake sync:posts[remote/path/to/postview/posts]

# To synchronize archive
$ rake sync:archive
$ rake sync:archive[remote/path/to/postview/posts/archive]

# To synchronize drafts
$ rake sync:drafts
$ rake sync:drafts[remote/path/to/postview/posts/drafts]

# To synchronize all
$ rake sync:all

NOTE: Will added new enhancements for this feature.