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

Commit 33e05f0

Browse files
committed
release version v0.04
1 parent bf66b2c commit 33e05f0

48 files changed

Lines changed: 2419 additions & 13 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

MANIFEST.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
recursive-include catsup/template *.*
2+
recursive-include catsup/themes *.*
3+
include README.md
4+
include LICENSE

README.md

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,30 @@
44
Licensed under the MIT License.
55

66
##Install
7+
8+
Simple way using pip
9+
10+
```bash
11+
pip install catsup
12+
```
13+
14+
Or another hard way to install
15+
716
```bash
817
git clone git://github.com/whtsky/catsup.git
918
cd catsup
10-
pip install -r requirements.txt
11-
cp config-sample.py config.py
12-
vim config.py #Change it.
13-
python catsup.py server --port=8888
19+
python setup.py install
1420
```
21+
22+
##Settings
23+
24+
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>`
25+
26+
##Run
27+
```bash
28+
python -m catsup.app server --port=8888
29+
```
30+
1531
Then go to http://localhost:8888 to take a look at your own catsup:)
1632

1733
##How to write
@@ -50,5 +66,5 @@ The `comment` property defines whether the post can be commented or not.
5066
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.
5167

5268
##Deploy a static blog
53-
run`python catsup.py deploy`
69+
run`python -m catsup.app deploy`
5470
And you can find your static blog in deploy/ .

_posts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 2337bd92f2644d59f7c6a32f67482b9d7da4b727

catsup

Lines changed: 0 additions & 8 deletions
This file was deleted.

catsup.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
3+
case $1 in
4+
server) python -m catsup.app server;;
5+
deploy) python -m catsup.app deploy;;
6+
webhook) python -m catsup.app webhook;;
7+
*) echo "Usage: catsup <server | deploy | webhook>";;
8+
esac

catsup/.gitignore

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#catsup
2+
_posts/*
3+
deploy/*
4+
5+
#PyCharm
6+
.idea
7+
8+
*.py[co]
9+
10+
# Packages
11+
*.egg
12+
*.egg-info
13+
dist
14+
build
15+
eggs
16+
parts
17+
bin
18+
var
19+
sdist
20+
develop-eggs
21+
.installed.cfg
22+
23+
# Installer logs
24+
pip-log.txt
25+
26+
# Unit test / coverage reports
27+
.coverage
28+
.tox
29+
30+
#Translations
31+
*.mo
32+
33+
#Mr Developer
34+
.mr.developer.cfg
35+
36+
#OS X
37+
.DS_Store

catsup/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"""
2+
Catsup, a lightweight static blog generator
3+
"""
4+
5+
__version__ = '0.0.4'

0 commit comments

Comments
 (0)