diff options
Diffstat (limited to 'sources/pyside6')
| -rw-r--r-- | sources/pyside6/doc/CMakeLists.txt | 13 | ||||
| -rw-r--r-- | sources/pyside6/doc/examples/index.rst | 14 |
2 files changed, 13 insertions, 14 deletions
diff --git a/sources/pyside6/doc/CMakeLists.txt b/sources/pyside6/doc/CMakeLists.txt index a16be06bc..cbec282ab 100644 --- a/sources/pyside6/doc/CMakeLists.txt +++ b/sources/pyside6/doc/CMakeLists.txt @@ -16,6 +16,19 @@ set(TS_ROOT "${ROOT}/PySide6") file(REMOVE ${CMAKE_CURRENT_LIST_DIR}/pyside.qdocconf ${CMAKE_CURRENT_LIST_DIR}/pyside.qdocconf.in) +# We need to find the interpreter when running this only +# for a rst_build_docs case, and not a full doc build +if (NOT FULLDOCSBUILD) + find_package(Python COMPONENTS Interpreter) + set(PYTHON_EXECUTABLE ${Python_EXECUTABLE}) +endif() + +# Generate example gallery +message(STATUS "Generating example gallery") +set(EXAMPLE_TOOL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../../tools/example_gallery/main.py") +execute_process(COMMAND ${PYTHON_EXECUTABLE} ${EXAMPLE_TOOL_DIR} + WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}) + set(SHIBOKEN_INTERSPHINX_FILE "${ROOT}/pyside6/shiboken6/objects.inv") set(HAS_WEBENGINE_WIDGETS 0) set(SKIP_SPHINX_WARNINGS 1) diff --git a/sources/pyside6/doc/examples/index.rst b/sources/pyside6/doc/examples/index.rst deleted file mode 100644 index 069d54404..000000000 --- a/sources/pyside6/doc/examples/index.rst +++ /dev/null @@ -1,14 +0,0 @@ -|project| Examples -=================== - -A collection of examples are provided with |project| to help new users -to understand different use cases of the module. -You can find all the examples inside the ``pyside-setup`` on the ``examples`` -directory, or you can access them after installing |pymodname| from ``pip`` -inside the ``site-packages/PySide6/examples`` directory. - -.. toctree:: - :maxdepth: 1 - - tabbedbrowser.rst - ../pyside-examples/all-pyside-examples.rst |
