Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 42c16d9e authored by hhakim's avatar hhakim
Browse files

Generate a zip file of published notebooks to be hosted on gitlab pages with the doc.

parent a3628944
No related branches found
No related tags found
No related merge requests found
Pipeline #833916 skipped
......@@ -36,6 +36,7 @@ if(BUILD_DOCUMENTATION)
file(READ mainpage_cpp_inc.md INCLUDE_SPECIFIC_DOC)
endif()
configure_file(${FAUST_DOC_SRC_DIR}/mainpage.md ${PROJECT_BINARY_DIR}/doc/mainpage.md)
else()
message(WARNING "Doxygen not found, cannot generate the documentation")
endif(DOXYGEN_FOUND)
......@@ -94,6 +95,21 @@ if(BUILD_DOCUMENTATION)
configure_file(${FAUST_DOC_SRC_DIR}/Faust_factorization.ipynb ${PROJECT_BINARY_DIR}/doc/html/Faust_factorization.ipynb COPYONLY)
configure_file(${FAUST_DOC_SRC_DIR}/Faust_factorization.html ${PROJECT_BINARY_DIR}/doc/html/Faust_factorization.html COPYONLY)
configure_file(${FAUST_SRC_TEST_SRC_PYTHON_DIR}/test_svd_rc_vs_err.py ${PROJECT_BINARY_DIR}/doc/html/test_svd_rc_vs_err.py COPYONLY)
if(UNIX)
file(GLOB IPYNB_FILES "${FAUST_DOC_SRC_DIR}" "*.ipynb")
#message(STATUS "IPYNB_FILES=${IPYNB_FILES}")
foreach(NB IN LISTS IPYNB_FILES)
#message(STATUS ${NB})
get_filename_component(NB ${NB} NAME)
#message(STATUS ${NB})
if(${NB} MATCHES ".*[.]ipynb")
set(IPYNB_ZIP_ARG ${IPYNB_ZIP_ARG};${NB})
endif()
endforeach()
#message(STATUS "IPYNB_ZIP_ARG=${IPYNB_ZIP_ARG}")
# set(IPYNB_ZIP_ARG Faust_creation.ipynb Faust_factorization.ipynb Faust_manipulation.ipynb Use_of_Faust_objects_in_algorithms.ipynb)
add_custom_target(zip_notebooks ALL zip pyfaust_notebooks.zip -b ${PROJECT_BINARY_DIR}/doc/html ${IPYNB_ZIP_ARG} WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/doc/html COMMENT "Archiving the notebook in a zip file" VERBATIM)
endif(UNIX)
endif(BUILD_DOCUMENTATION)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment