Skip to content
Snippets Groups Projects
Verified Commit a74c9669 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

fix docs

parent b6202b60
No related branches found
No related tags found
No related merge requests found
Pipeline #9088 passed with warnings
Pipeline: caosdb-cppinttest

#9089

    ......@@ -21,6 +21,7 @@
    find_package(Doxygen)
    if (DOXYGEN_FOUND)
    string(REPLACE ";" " " DOXYGEN_INPUT "${libcaosdb_INCL}")
    configure_file(Doxyfile.in Doxyfile)
    # Note: do not put "ALL" - this builds docs together with application EVERY TIME!
    ......@@ -33,20 +34,27 @@ if (DOXYGEN_FOUND)
    find_program(SPHINX_CMD sphinx-build)
    if (SPHINX_CMD)
    configure_file(conf.py.in conf.py)
    configure_file(index.rst.in index.rst)
    configure_file(api/index.rst.in api/index.rst)
    # create rst pages for every header file
    list(LENGTH libcaosdb_INCL len_header_files)
    math(EXPR len_header_files "${len_header_files} - 1")
    foreach (i RANGE "${len_header_files}")
    list(GET libcaosdb_INCL ${i} HEADER_FILE_NAME)
    list(GET libcaosdb_INCL ${i} HEADER_FILE)
    string(REPLACE
    "include/"
    "${PROJECT_INCLUDE_DIR}/"
    ""
    HEADER_FILE_NAME
    ${HEADER_FILE})
    string(REPLACE
    "${CMAKE_BINARY_DIR}/include/"
    ""
    HEADER_FILE_NAME
    ${HEADER_FILE_NAME})
    configure_file(
    ${CMAKE_CURRENT_SOURCE_DIR}/api/header_file.rst.in
    ${CMAKE_CURRENT_SOURCE_DIR}/api/_${HEADER_FILE_NAME}.rst)
    api/header_file.rst.in
    api/_${HEADER_FILE_NAME}.rst)
    endforeach ()
    add_custom_target(doc-sphinx
    ......@@ -54,7 +62,7 @@ if (DOXYGEN_FOUND)
    -b html
    -n
    -c ${CMAKE_CURRENT_BINARY_DIR}
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${CMAKE_CURRENT_BINARY_DIR}
    sphinx_out
    DEPENDS doc-doxygen
    WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
    ......
    ......@@ -864,7 +864,7 @@ WARN_LOGFILE =
    # spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
    # Note: If this tag is empty the current directory is searched.
    INPUT = @PROJECT_INCLUDE_DIR@
    INPUT = @DOXYGEN_INPUT@
    # This tag can be used to specify the character encoding of the source files
    ......
    ......@@ -28,5 +28,5 @@
    .. toctree::
    :hidden:
    .. doxygenfile:: @HEADER_FILE_NAME@
    .. doxygenfile:: @HEADER_FILE@
    :project: libcaosdb
    File moved
    File moved
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment