Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 46 lines (27 sloc) 1.189 kb
ade6fb8 @codeinthehole Added more articles from the old site
authored
1 =================
910ec73 @codeinthehole Tidied readme
authored
2 codeinthehole.com
ade6fb8 @codeinthehole Added more articles from the old site
authored
3 =================
4
3ec6cd8 @codeinthehole Updated article on site, plus readme
authored
5 Nothing special here - I just wanted to write my own blog so I could
6 optimise it for my own needs. The aim was to write articles
910ec73 @codeinthehole Tidied readme
authored
7 in RST using vim, then have a simple preview and publish mechanism.
ade6fb8 @codeinthehole Added more articles from the old site
authored
8
ed28e78 @codeinthehole Updated readme
authored
9 The blog is a simple Django project which uses RST files as a source
3ec6cd8 @codeinthehole Updated article on site, plus readme
authored
10 for creating a simple Article model. Fabric is used to publish articles
11 to the production site.
12
13 See `Rewriting codeinthehole.com`_.
14
15 .. _`Rewriting codeinthehole.com: http://codeinthehole.com/writing/rewriting-codeintheholecom/
ed28e78 @codeinthehole Updated readme
authored
16
ade6fb8 @codeinthehole Added more articles from the old site
authored
17 How to publish an article
18 -------------------------
910ec73 @codeinthehole Tidied readme
authored
19
ed28e78 @codeinthehole Updated readme
authored
20 1. Create an RST article file within the ``articles`` folder::
21
22 vim posts/my-new-article.rst
23
910ec73 @codeinthehole Tidied readme
authored
24 2. Preview locally using::
25
ed28e78 @codeinthehole Updated readme
authored
26 ./manage.py rsb_article posts/my-new-article.rst
27 ./manage.py runserver
910ec73 @codeinthehole Tidied readme
authored
28
29 Note this renames the file to include the PK, which is helpful when
ed28e78 @codeinthehole Updated readme
authored
30 article files are renamed, but annoying if you still have it open in vim.
ade6fb8 @codeinthehole Added more articles from the old site
authored
31
32 3. Repeat the above steps until you are ready to publish.
ed28e78 @codeinthehole Updated readme
authored
33
ade6fb8 @codeinthehole Added more articles from the old site
authored
34 4. Publish article using::
35
ed28e78 @codeinthehole Updated readme
authored
36 fab prod publish:posts/0034-my-new-article.rst
910ec73 @codeinthehole Tidied readme
authored
37
38 How to update the site
39 ----------------------
40
41 Simple::
42
43 fab prod deploy
44
45
Something went wrong with that request. Please try again.