annotate README @ 346:dfc40e532bb6

Add a section about various subrepos of hg-website
author David Soria Parra <dsp@php.net>
date Mon, 22 Nov 2010 10:16:29 +0100
parents d662cba2afb1
children 29d4b5e45423
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
253
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
1 -*- markdown -*-
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
2
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
3 hg-website
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
4 ==========
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
5
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
6 This is a fork of the original hg-scm.org website. It has two goals:
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
7
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
8 * Instead of using Django to serve the site, use Blatter to generate a static version which can then be served by a normal webserver like Apache or nginx.
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
9 * Move all the content into a subrepository so volunteers can just clone that repository if they just want to edit the content.
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
10
346
dfc40e532bb6 Add a section about various subrepos of hg-website
David Soria Parra <dsp@php.net>
parents: 254
diff changeset
11 Repository
dfc40e532bb6 Add a section about various subrepos of hg-website
David Soria Parra <dsp@php.net>
parents: 254
diff changeset
12 ---------
dfc40e532bb6 Add a section about various subrepos of hg-website
David Soria Parra <dsp@php.net>
parents: 254
diff changeset
13 The repository is split into three subrepositories. The `main` repository contains
dfc40e532bb6 Add a section about various subrepos of hg-website
David Soria Parra <dsp@php.net>
parents: 254
diff changeset
14 scripts and templates to render the page. The `content` repository contains the
dfc40e532bb6 Add a section about various subrepos of hg-website
David Soria Parra <dsp@php.net>
parents: 254
diff changeset
15 content of each page and defines the structure of the website. The `rendered`
dfc40e532bb6 Add a section about various subrepos of hg-website
David Soria Parra <dsp@php.net>
parents: 254
diff changeset
16 repository contains the auto-generated pages.
dfc40e532bb6 Add a section about various subrepos of hg-website
David Soria Parra <dsp@php.net>
parents: 254
diff changeset
17
dfc40e532bb6 Add a section about various subrepos of hg-website
David Soria Parra <dsp@php.net>
parents: 254
diff changeset
18 If you want to help out with patches, you usually just edit hg-website and hg-website-content
dfc40e532bb6 Add a section about various subrepos of hg-website
David Soria Parra <dsp@php.net>
parents: 254
diff changeset
19 and generate the rendered pages using blatter (or leave that tasks for the
dfc40e532bb6 Add a section about various subrepos of hg-website
David Soria Parra <dsp@php.net>
parents: 254
diff changeset
20 maintainer).
dfc40e532bb6 Add a section about various subrepos of hg-website
David Soria Parra <dsp@php.net>
parents: 254
diff changeset
21
253
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
22 Setup
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
23 -----
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
24
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
25 To use this version of hg-website you need to install a few things:
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
26
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
27 Blatter's prerequisites:
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
28
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
29 easy_install jinja2
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
30 easy_install werkzeug
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
31
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
32 My patched version of blatter (adds the ability to ignore files and add custom Jinja2 filters):
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
33
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
34 hg clone http://bitbucket.org/sjl/blatter/
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
35 cd blatter
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
36 python setup.py install
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
37
254
d662cba2afb1 Add markdown to the README.
Steve Losh <steve@stevelosh.com>
parents: 253
diff changeset
38 The python-markdown module (for rendering the website content):
d662cba2afb1 Add markdown to the README.
Steve Losh <steve@stevelosh.com>
parents: 253
diff changeset
39
d662cba2afb1 Add markdown to the README.
Steve Losh <steve@stevelosh.com>
parents: 253
diff changeset
40 easy_install markdown
d662cba2afb1 Add markdown to the README.
Steve Losh <steve@stevelosh.com>
parents: 253
diff changeset
41
253
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
42 Usage
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
43 -----
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
44
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
45 To have blatter serve the page dynamically, use:
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
46
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
47 blatter serve
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
48
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
49 You can then visit [http://localhost:8008](http://localhost:8008) to view the site.
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
50
346
dfc40e532bb6 Add a section about various subrepos of hg-website
David Soria Parra <dsp@php.net>
parents: 254
diff changeset
51 To render a static version of the site into the `rendered/` directory:
253
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
52
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
53 blatter blat
fcf6b1564285 Add a simple README.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
54
346
dfc40e532bb6 Add a section about various subrepos of hg-website
David Soria Parra <dsp@php.net>
parents: 254
diff changeset
55 For more information on using blatter, check the README file at [http://bitbucket.org/sjl/blatter/src/](http://bitbucket.org/sjl/blatter/src/)