summaryrefslogtreecommitdiff
path: root/docs/GettingStarted.rst
diff options
context:
space:
mode:
authorJoel Jones <joel_k_jones@apple.com>2012-11-15 21:15:08 +0000
committerJoel Jones <joel_k_jones@apple.com>2012-11-15 21:15:08 +0000
commitb92ef128ec01e9869c411b02356ce3dc9c6f5141 (patch)
tree204d30fe8f4a1770aa2d0d37b6e8518f6c49fac8 /docs/GettingStarted.rst
parente95ed2b7afbe37f1831cb6d8d46d09ccb5cd6b7f (diff)
downloadllvm-b92ef128ec01e9869c411b02356ce3dc9c6f5141.tar.gz
llvm-b92ef128ec01e9869c411b02356ce3dc9c6f5141.tar.bz2
llvm-b92ef128ec01e9869c411b02356ce3dc9c6f5141.tar.xz
Add description of how to build docs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168088 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/GettingStarted.rst')
-rw-r--r--docs/GettingStarted.rst29
1 files changed, 28 insertions, 1 deletions
diff --git a/docs/GettingStarted.rst b/docs/GettingStarted.rst
index 4ad763650d..1998fdc868 100644
--- a/docs/GettingStarted.rst
+++ b/docs/GettingStarted.rst
@@ -842,12 +842,39 @@ any subdirectories that it contains. Entering any directory inside the LLVM
object tree and typing ``gmake`` should rebuild anything in or below that
directory that is out of date.
+This does not apply to building the documentation.
+LLVM's (non-Doxygen) documentation is produced with the
+`Sphinx <http://sphinx-doc.org/>`_ documentation generation system.
+There are some HTML documents that have not yet been converted to the new
+system (which uses the easy-to-read and easy-to-write
+`reStructuredText <http://sphinx-doc.org/rest.html>`_ plaintext markup
+language).
+The generated documentation is built in the ``SRC_ROOT/docs`` directory using
+a special makefile.
+For instructions on how to install Sphinx, see
+`Sphinx Introduction for LLVM Developers
+<http://lld.llvm.org/sphinx_intro.html>`_.
+After following the instructions there for installing Sphinx, build the LLVM
+HTML documentation by doing the following:
+
+.. code-block:: bash
+
+ $ cd SRC_ROOT/docs
+ $ make -f Makefile.sphinx
+
+This creates a ``_build/html`` sub-directory with all of the HTML files, not
+just the generated ones.
+This directory corresponds to ``llvm.org/docs``.
+For example, ``_build/html/SphinxQuickstartTemplate.html`` corresponds to
+``llvm.org/docs/SphinxQuickstartTemplate.html``.
+The :doc:`SphinxQuickstartTemplate` is useful when creating a new document.
+
Cross-Compiling LLVM
--------------------
It is possible to cross-compile LLVM itself. That is, you can create LLVM
executables and libraries to be hosted on a platform different from the platform
-where they are build (a Canadian Cross build). To configure a cross-compile,
+where they are built (a Canadian Cross build). To configure a cross-compile,
supply the configure script with ``--build`` and ``--host`` options that are
different. The values of these options must be legal target triples that your
GCC compiler supports.