blob: fcc1badaf6964368738df5611594d609f934200b [file] [log] [blame]
Daniel Dunbar75083eb2012-04-19 16:31:19 +00001LLVM Documentation
2==================
3
Sean Silvaccb80192013-01-02 02:31:51 +00004LLVM's documentation is written in reStructuredText, a lightweight
5plaintext markup language (file extension `.rst`). While the
6reStructuredText documentation should be quite readable in source form, it
7is meant to be processed by the Sphinx documentation generation system to
8create HTML pages which are hosted on <http://llvm.org/docs/> and updated
9after every commit.
Daniel Dunbar75083eb2012-04-19 16:31:19 +000010
Sean Silvaccb80192013-01-02 02:31:51 +000011If you instead would like to generate and view the HTML locally, install
12Sphinx <http://sphinx-doc.org/> and then do:
Daniel Dunbar75083eb2012-04-19 16:31:19 +000013
Sean Silvaccb80192013-01-02 02:31:51 +000014 cd docs/
15 make -f Makefile.sphinx
16 $BROWSER _build/html/index.html
Daniel Dunbar75083eb2012-04-19 16:31:19 +000017
Sean Silvaccb80192013-01-02 02:31:51 +000018The mapping between reStructuredText files and generated documentation is
19`docs/Foo.rst` <-> `_build/html/Foo.html` <-> `http://llvm.org/docs/Foo.html`.
20
21If you are interested in writing new documentation, you will want to read
22`SphinxQuickstartTemplate.rst` which will get you writing documentation
23very fast and includes examples of the most important reStructuredText
24markup syntax.