`sphinxcontrib-bibtex <https://sphinxcontrib-bibtex.readthedocs.io>`_
- `Breathe <https://breathe.readthedocs.io>`_
-To build the documentation, configure cvc5 with ``./configure.sh --docs``.
-Building cvc5 will then include building the API documentation.
+To build the documentation, configure cvc5 with ``./configure.sh --docs`` and
+run ``make docs`` from within the build directory.
The API documentation can then be found at
``<build_dir>/docs/sphinx/index.html``.
-To only build the documentation, change to the build directory and call
-``make docs``.
-
To build the documentation for GitHub pages, change to the build directory and
call ``make docs-gh``. The content of directory ``<build_dir>/docs/sphinx-gh``
can then be copied over to GitHub pages.
configure_file(conf.py.in ${CMAKE_CURRENT_BINARY_DIR}/conf.py)
add_custom_target(
- docs ALL
+ docs
DEPENDS docs-cpp docs-java docs-python gen-options
COMMAND
${SPHINX_EXECUTABLE} -b html -c ${CMAKE_CURRENT_BINARY_DIR}
set(SPHINX_GH_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR}/sphinx-gh)
add_custom_target(
- docs-gh ALL
+ docs-gh
DEPENDS docs
# remove existing sphinx-gh/ directory
COMMAND ${CMAKE_COMMAND} -E remove_directory ${SPHINX_GH_OUTPUT_DIR}
${PROJECT_SOURCE_DIR}/src/api/cpp/cvc5_kind.h
COMMENT "Generating doxygen API docs"
)
-add_custom_target(docs-cpp ALL DEPENDS ${DOXYGEN_INDEX_FILE})
+add_custom_target(docs-cpp DEPENDS ${DOXYGEN_INDEX_FILE})
# tell parent scope where to find the output xml
set(CPP_DOXYGEN_XML_DIR