forked from collective/Collective
/
how_to_update_this_documentation.txt
60 lines (36 loc) · 1.27 KB
/
how_to_update_this_documentation.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
How to update this page
=======================
This page is created using Sphinx. In order to update it I would advise you
to head to http://sphinx.pocoo.org and get familiar with Sphinx and
reStructeredText.
1. Clone `collective.github.com`_ repository
.. code-block:: console
$ git clone git@github.com:collective/collective.github.com
2. Run buildout
Source is located in ``src`` directory.
.. code-block:: console
$ cd src
src/ $ virtualenv --no-site-packages .
src/ $ source bin/activate
src/ $ pip install Sphinx
src/ $ source bin/activate
This will install all needed. Now its time for you to edit ``.rst`` files.
3. Generate html
After editing ``.rst`` files you need to "compile" html.
**IMPORTANT**
Make sure site looks nice when rendered. It will be compiled in root of
package.
.. code-block:: console
src/ $ make html
4. Commit changes
For nice history please commit changes to ``.rst`` files separately then
changes to compiled site.
.. code-block:: console
src/ $ git commit -a -m "Some very important changes"
src/ $ cd ..
$ git commit -a -m "Upload up html"
5. Don't forget to push
.. code-block:: console
$ git push origin master
And that's all folks...
.. _`collective.github.com`: http://github.com/collective