Skip to content
This repository has been archived by the owner on Oct 23, 2020. It is now read-only.

Commit

Permalink
release version v0.04
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Dec 29, 2012
1 parent bf66b2c commit 33e05f0
Show file tree
Hide file tree
Showing 48 changed files with 2,419 additions and 13 deletions.
4 changes: 4 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
recursive-include catsup/template *.*
recursive-include catsup/themes *.*
include README.md
include LICENSE
26 changes: 21 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,30 @@
Licensed under the MIT License.

##Install

Simple way using pip

```bash
pip install catsup
```

Or another hard way to install

```bash
git clone git://github.com/whtsky/catsup.git
cd catsup
pip install -r requirements.txt
cp config-sample.py config.py
vim config.py #Change it.
python catsup.py server --port=8888
python setup.py install
```

##Settings

The default settings file is at `~/.catsuprc`, you can specific it by passing `--settings=/path/to/settings` when executing `python -m catsup.app <server/deploy/webhook>`

##Run
```bash
python -m catsup.app server --port=8888
```

Then go to http://localhost:8888 to take a look at your own catsup:)

##How to write
Expand Down Expand Up @@ -50,5 +66,5 @@ The `comment` property defines whether the post can be commented or not.
You can use `<!--more-->` to define an excerpt of a post. Any content before that will be used as excerpt of the post. And you can choose to display excerpt rather than full content on your homepage.

##Deploy a static blog
run`python catsup.py deploy`
run`python -m catsup.app deploy`
And you can find your static blog in deploy/ .
1 change: 1 addition & 0 deletions _posts
Submodule _posts added at 2337bd
8 changes: 0 additions & 8 deletions catsup

This file was deleted.

8 changes: 8 additions & 0 deletions catsup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

case $1 in
server) python -m catsup.app server;;
deploy) python -m catsup.app deploy;;
webhook) python -m catsup.app webhook;;
*) echo "Usage: catsup <server | deploy | webhook>";;
esac
37 changes: 37 additions & 0 deletions catsup/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#catsup
_posts/*
deploy/*

#PyCharm
.idea

*.py[co]

# Packages
*.egg
*.egg-info
dist
build
eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg

# Installer logs
pip-log.txt

# Unit test / coverage reports
.coverage
.tox

#Translations
*.mo

#Mr Developer
.mr.developer.cfg

#OS X
.DS_Store
5 changes: 5 additions & 0 deletions catsup/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"""
Catsup, a lightweight static blog generator
"""

__version__ = '0.0.4'
Loading

0 comments on commit 33e05f0

Please sign in to comment.