diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-08-01 08:20:31 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-08-03 14:41:19 +0200 |
| commit | 40ec55c2606892848f8b4855d8e761cdf2e49656 (patch) | |
| tree | f9dd40cd5ebac7c172a8a6e2b1da04f88593774a /build_scripts/main.py | |
| parent | e1ea0e5bc9cb4d52a9360d7a18812f647a3d88c2 (diff) | |
example_gallery: Handle Qt example directories
Add an option to be able to include examples found in the Qt / qtdoc
repository.
The build_rst_docs target also uses it if --qt-src-dir is given.
It is then possible to include pure QML C++ examples
from the qtdoc and other repositories.
Task-number: PYSIDE-2206
Change-Id: I1b28d5ba5a134101a21fa936f87264a68bada71e
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'build_scripts/main.py')
| -rw-r--r-- | build_scripts/main.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/build_scripts/main.py b/build_scripts/main.py index 8378b882c..c9f33035f 100644 --- a/build_scripts/main.py +++ b/build_scripts/main.py @@ -1276,6 +1276,9 @@ class PysideRstDocs(Command, CommandMixin): example_gallery_cmd = [sys.executable, os.fspath(example_gallery)] if OPTION["LOG_LEVEL"] == LogLevel.QUIET: example_gallery_cmd.append("--quiet") + qt_src_dir = OPTION['QT_SRC'] + if qt_src_dir: + example_gallery_cmd.extend(["--qt-src-dir", qt_src_dir]) if run_process(example_gallery_cmd) != 0: raise SetupError(f"Error running example gallery for {self.doc_dir}") elif self.name == SHIBOKEN: |
