sdowney created this revision.
sdowney added a reviewer: reames.
sdowney added a subscriber: cfe-commits.

The LibASTMatchersReference documentation is an html file, not an rst
document, so is not produced by sphinx. Copy the html into the proper
location as part of the sphinx html doc generation.
    
Also include a link to the AST Matcher Reference in the index.


http://reviews.llvm.org/D16963

Files:
  docs/CMakeLists.txt
  docs/index.rst

Index: docs/index.rst
===================================================================
--- docs/index.rst
+++ docs/index.rst
@@ -52,6 +52,7 @@
    RAVFrontendAction
    LibASTMatchersTutorial
    LibASTMatchers
+   LibASTMatchersReference
    HowToSetupToolingForLLVM
    JSONCompilationDatabase
 
@@ -84,4 +85,3 @@
 * :ref:`genindex`
 * :ref:`modindex`
 * :ref:`search`
-
Index: docs/CMakeLists.txt
===================================================================
--- docs/CMakeLists.txt
+++ docs/CMakeLists.txt
@@ -95,6 +95,8 @@
     include(AddSphinxTarget)
     if (${SPHINX_OUTPUT_HTML})
       add_sphinx_target(html clang)
+      file(GLOB DOC_HTML *.html)
+      file(COPY ${DOC_HTML} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/html)
     endif()
     if (${SPHINX_OUTPUT_MAN})
       add_sphinx_target(man clang)


Index: docs/index.rst
===================================================================
--- docs/index.rst
+++ docs/index.rst
@@ -52,6 +52,7 @@
    RAVFrontendAction
    LibASTMatchersTutorial
    LibASTMatchers
+   LibASTMatchersReference
    HowToSetupToolingForLLVM
    JSONCompilationDatabase
 
@@ -84,4 +85,3 @@
 * :ref:`genindex`
 * :ref:`modindex`
 * :ref:`search`
-
Index: docs/CMakeLists.txt
===================================================================
--- docs/CMakeLists.txt
+++ docs/CMakeLists.txt
@@ -95,6 +95,8 @@
     include(AddSphinxTarget)
     if (${SPHINX_OUTPUT_HTML})
       add_sphinx_target(html clang)
+      file(GLOB DOC_HTML *.html)
+      file(COPY ${DOC_HTML} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/html)
     endif()
     if (${SPHINX_OUTPUT_MAN})
       add_sphinx_target(man clang)
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to