Skip to content

Commit

Permalink
build(docs): rm leftover sections
Browse files Browse the repository at this point in the history
  • Loading branch information
bhumitattarde committed Sep 28, 2022
1 parent 0e58243 commit beece3e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 60 deletions.
20 changes: 1 addition & 19 deletions cmake/HPX_Documentation.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

# find required packages
if(HPX_WITH_DOCUMENTATION)
find_package(Doxygen)
find_package(Sphinx)
Expand All @@ -27,22 +28,3 @@ if(HPX_WITH_DOCUMENTATION)
set(HPX_WITH_DOCUMENTATION OFF)
endif()
endif()

# C++ Source -> Doxygen XML
function(hpx_source_to_doxygen name)
set(options)
set(one_value_args)
set(multi_value_args DEPENDENCIES DOXYGEN_ARGS)
cmake_parse_arguments(
${name} "${options}" "${one_value_args}" "${multi_value_args}" ${ARGN}
)

add_custom_command(
OUTPUT "${name}/index.xml"
COMMAND "${DOXYGEN_EXECUTABLE}" ${${name}_DOXYGEN_ARGS}
"${CMAKE_CURRENT_BINARY_DIR}/${name}.doxy"
COMMENT "Generating Doxygen."
DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/${name}.doxy" ${${name}_DEPENDENCIES}
VERBATIM
)
endfunction()
18 changes: 0 additions & 18 deletions cmake/templates/autodoc.doxy.in

This file was deleted.

24 changes: 1 addition & 23 deletions docs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,7 @@
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

# Add all files here which should be passed to doxygen
set(doxygen_dependencies
"${PROJECT_SOURCE_DIR}/components/component_storage/include/hpx/components/component_storage/migrate_from_storage.hpp"
"${PROJECT_SOURCE_DIR}/components/component_storage/include/hpx/components/component_storage/migrate_to_storage.hpp"
)

# Definitions for autodoc.doxy.in
foreach(doxygen_input ${doxygen_dependencies})
set(doxygen_inputs "${doxygen_inputs} ${doxygen_input}")
endforeach()

set(doxygen_output_file "${CMAKE_CURRENT_BINARY_DIR}/hpx_autodoc")
set(doxygen_output_dir "${CMAKE_CURRENT_BINARY_DIR}/doxygen")

# used while generating sphinx config file
set(doxygen_definition_list
"DOXYGEN:=1"
"BOOST_SYSTEM_NOEXCEPT="
Expand All @@ -36,12 +23,6 @@ foreach(doxygen_predef ${doxygen_definition_list})
set(doxygen_definitions "${doxygen_definitions} \"${doxygen_predef}\"")
endforeach()

hpx_info("Creating Doxyfile: ${CMAKE_CURRENT_BINARY_DIR}/hpx_autodoc.doxy")
configure_file(
"${PROJECT_SOURCE_DIR}/cmake/templates/autodoc.doxy.in"
"${CMAKE_CURRENT_BINARY_DIR}/hpx_autodoc.doxy" @ONLY
)

# Generate rst files with CMake variables and toolchains
set(HPX_CMAKE_OPTIONS_RST "")
foreach(_cat ${HPX_OPTION_CATEGORIES})
Expand Down Expand Up @@ -215,8 +196,6 @@ create_symbolic_link(
"${PROJECT_SOURCE_DIR}/libs" "${CMAKE_CURRENT_BINARY_DIR}/libs"
)

hpx_source_to_doxygen(hpx_autodoc DEPENDENCIES ${doxygen_dependencies})

add_custom_target(docs)
add_custom_target(docs-html)
add_custom_target(docs-singlehtml)
Expand Down Expand Up @@ -258,7 +237,6 @@ foreach(output_format ${HPX_WITH_DOCUMENTATION_OUTPUT_FORMATS})
add_custom_command(
OUTPUT "${SPHINX_DOCS_OUTPUT_FILE}"
DEPENDS "${sphinx_source_files_build}"
"${CMAKE_CURRENT_BINARY_DIR}/hpx_autodoc/index.xml"
COMMAND ${SPHINX_DOCS_BUILD_COMMAND}
)

Expand Down

0 comments on commit beece3e

Please sign in to comment.