Mercurial > hg-website
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 |
rev | line source |
---|---|
253 | 1 -*- markdown -*- |
2 | |
3 hg-website | |
4 ========== | |
5 | |
6 This is a fork of the original hg-scm.org website. It has two goals: | |
7 | |
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. | |
9 * Move all the content into a subrepository so volunteers can just clone that repository if they just want to edit the content. | |
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 | 22 Setup |
23 ----- | |
24 | |
25 To use this version of hg-website you need to install a few things: | |
26 | |
27 Blatter's prerequisites: | |
28 | |
29 easy_install jinja2 | |
30 easy_install werkzeug | |
31 | |
32 My patched version of blatter (adds the ability to ignore files and add custom Jinja2 filters): | |
33 | |
34 hg clone http://bitbucket.org/sjl/blatter/ | |
35 cd blatter | |
36 python setup.py install | |
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 | 42 Usage |
43 ----- | |
44 | |
45 To have blatter serve the page dynamically, use: | |
46 | |
47 blatter serve | |
48 | |
49 You can then visit [http://localhost:8008](http://localhost:8008) to view the site. | |
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 | 52 |
53 blatter blat | |
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/) |