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

fix docs

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

#9089

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