Skip to content
This repository was archived by the owner on Sep 28, 2021. It is now read-only.

Commit d9176ab

Browse files
authored
Merge pull request #121 from votca/doc_reorg
doc: reporg sphinx generation
2 parents 48685bc + e59dd2c commit d9176ab

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

CMakeLists.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,19 @@ if(ENABLE_REGRESSION_TESTING)
122122
message(STATUS "Use VOTCASHARE=${VOTCA_SHARE} PATH=${VOTCA_PATH}:\$PATH VOTCA_CSG_DEFAULTS=${VOTCA_CSG_DEFAULTS} for out-of-cmake testing")
123123
endif()
124124

125+
if(VOTCA_SPHINX_DIR)
126+
file(GLOB RSTS ${CMAKE_CURRENT_SOURCE_DIR}/guide/*.rst)
127+
set(MANUAL_RST_FILES)
128+
foreach(_RST ${RSTS})
129+
get_filename_component(_FILE "${_RST}" NAME)
130+
add_custom_command(OUTPUT ${VOTCA_SPHINX_DIR}/csg-tutorials/${_FILE}
131+
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${_RST} ${VOTCA_SPHINX_DIR}/csg-tutorials/${_FILE}
132+
DEPENDS ${_RST})
133+
list(APPEND MANUAL_RST_FILES ${VOTCA_SPHINX_DIR}/csg-tutorials/${_FILE})
134+
endforeach()
135+
add_custom_target(doc-csg-tutorials DEPENDS ${MANUAL_RST_FILES} ${MANUAL_PNG_FILES})
136+
endif()
137+
125138
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ DESTINATION ${CMAKE_INSTALL_DATADIR}/votca/csg-tutorials
126139
PATTERN ".git*" EXCLUDE PATTERN "step_*" EXCLUDE
127140
PATTERN "CMake*" EXCLUDE PATTERN "cmake_install.cmake" EXCLUDE

guide/README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Votca Tutorial Guide
2-
====================
1+
CSG Tutorial
2+
============
33

44
(Based on the 2011-2017 CECAM meetings)
55

0 commit comments

Comments
 (0)