Commit 96580e8c authored by Markus Mirz's avatar Markus Mirz
Browse files

include nbs in docs

parent 8be4f375
......@@ -18,7 +18,7 @@ if(WITH_PYTHON)
"${BINARY_BUILD_DIR}/conf.py"
@ONLY
)
# Copy figures into Sphinx working directory
add_custom_target(copy_imgs
COMMAND
......@@ -32,6 +32,18 @@ if(WITH_PYTHON)
COMMENT "Copying figures to Sphinx output dir"
)
# Copy figures into Sphinx working directory
add_custom_target(copy_notebooks
COMMAND
${CMAKE_COMMAND} -E make_directory
"${CMAKE_CURRENT_SOURCE_DIR}/Notebooks/"
COMMAND
${CMAKE_COMMAND} -E copy_directory
"${CMAKE_SOURCE_DIR}/Examples/Notebooks/"
"${CMAKE_CURRENT_SOURCE_DIR}/Notebooks/"
COMMENT "Copying notebooks to Sphinx output dir"
)
# We add the path of the freshly build dpsim.so module to Python path here
add_custom_target(docs
COMMAND
......@@ -47,6 +59,7 @@ if(WITH_PYTHON)
${CMAKE_CURRENT_SOURCE_DIR}/README.md
dpsim_python
copy_imgs
copy_notebooks
)
add_custom_command(
......
......@@ -11,12 +11,12 @@ You can read them online or :doc:`install </Install>` DPsim and execute them int
:glob:
:titlesonly:
../Examples/Notebooks/Quickstart Guide
../Examples/Notebooks/DP_Basics
../Examples/Notebooks/Features/*
../Examples/Notebooks/Circuits/*
../Examples/Notebooks/Components/*
../Examples/Notebooks/Grids/*
Notebooks/Quickstart Guide
Notebooks/DP_Basics
Notebooks/Features/*
Notebooks/Circuits/*
Notebooks/Components/*
Notebooks/Grids/*
Links
......
../Examples/Notebooks/
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment