[PATCH] D39984: [docs] Update doc build instructions and some reformatting

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 5 15:32:08 PST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL319857: [docs] Update doc building instructions (authored by sbc).

Changed prior to commit:
  https://reviews.llvm.org/D39984?vs=122734&id=125636#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D39984

Files:
  lld/trunk/docs/sphinx_intro.rst


Index: lld/trunk/docs/sphinx_intro.rst
===================================================================
--- lld/trunk/docs/sphinx_intro.rst
+++ lld/trunk/docs/sphinx_intro.rst
@@ -57,33 +57,13 @@
 Building the documentation
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-In order to build the documentation, all you should need to do is change to the
-``docs`` directory and invoke make as follows::
-
-  $ cd path/to/project/docs
-  $ make html
-
-Note that on Windows there is a ``make.bat`` command in the docs directory which
-supplies the same interface as the ``Makefile``.
-
-That command will invoke ``sphinx-build`` with the appropriate options for the
-project, and generate the HTML documentation in a ``_build`` subdirectory. You
-can browse it starting from the index page by visiting
-``_build/html/index.html``.
-
-Sphinx supports a wide variety of generation formats (including LaTeX, man
-pages, and plain text). The ``Makefile`` includes a number of convenience
-targets for invoking ``sphinx-build`` appropriately, the common ones are:
-
-  make html
-    Generate the HTML output.
-
-  make latexpdf
-    Generate LaTeX documentation and convert to a PDF.
-
-  make man
-    Generate man pages.
-
+In order to build the documentation need to add ``-DLLVM_ENABLE_SPHINX=ON`` to
+your ``cmake`` command.  Once you do this you can build the docs using
+``docs-lld-html`` build (``ninja`` or ``make``) target.
+
+That build target will invoke ``sphinx-build`` with the appropriate options for
+the project, and generate the HTML documentation in a ``tools/lld/docs/html``
+subdirectory.
 
 .. _writing_documentation:
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39984.125636.patch
Type: text/x-patch
Size: 1625 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171205/0a8c1a9e/attachment.bin>


More information about the llvm-commits mailing list