2016-06-26 19:00:02 +02:00
|
|
|
# Documentation
|
|
|
|
|
2016-06-16 18:25:30 +02:00
|
|
|
These docs are written in [Commonmark
|
|
|
|
Markdown](http://commonmark.org/) with a small bit of rST. We've
|
|
|
|
chosen Markdown because it is [easy to
|
|
|
|
write](http://commonmark.org/help). The docs are served in production
|
|
|
|
at [zulip.readthedocs.io](https://zulip.readthedocs.io/en/latest/).
|
2015-08-21 21:11:24 +02:00
|
|
|
|
2016-06-16 18:25:30 +02:00
|
|
|
If you want to build the documentation locally (e.g. to test your
|
|
|
|
changes), the dependencies are automatically installed as part of
|
|
|
|
Zulip development environment provisioning, and you can build the
|
|
|
|
documentation using:
|
2015-08-21 21:11:24 +02:00
|
|
|
|
2016-06-16 18:25:30 +02:00
|
|
|
```
|
|
|
|
cd docs/
|
|
|
|
make html
|
|
|
|
```
|
2015-08-21 21:11:24 +02:00
|
|
|
|
2016-07-18 06:47:16 +02:00
|
|
|
and then opening `file:///path/to/zulip/docs/_build/html/index.html` in
|
2016-06-26 19:02:10 +02:00
|
|
|
your browser (you can also use e.g. `firefox
|
|
|
|
docs/_build/html/index.html` from the root of your Zulip checkout).
|
|
|
|
|
2016-08-27 17:39:56 +02:00
|
|
|
If you are introducing a new section into the table of contents,
|
|
|
|
you will want to modify `docs/index.rst` and run `make clean` before
|
|
|
|
`make html`, so that other docs besides your new one also get the
|
|
|
|
new entry in the table of contents.
|
|
|
|
|
2016-06-16 18:25:30 +02:00
|
|
|
You can also usually test your changes by pushing a branch to GitHub
|
|
|
|
and looking at the content on the GitHub web UI, since GitHub renders
|
|
|
|
Markdown.
|
2015-08-18 01:12:38 +02:00
|
|
|
|
2016-06-21 00:31:32 +02:00
|
|
|
When editing dependencies for the Zulip documentation, you should edit
|
|
|
|
`requirements/docs.txt` (which is used by ReadTheDocs to build the
|
|
|
|
documentation quickly, without installing all of Zulip's dependencies).
|