From fff32616c31da95366e4ea513ced6a4e04b39d5d Mon Sep 17 00:00:00 2001 From: Topi Reinio Date: Tue, 17 Sep 2013 10:40:00 +0200 Subject: Doc: Move generic code sample image and add it to qhp In order to add extra images to a qhp file, we need to both add it to output directory using HTML.extraimages, and from there to qhp using qhp.QtDoc.extraFiles. Also move the image to a better location and resize it to look better in Qt Creator. Task-number: QTBUG-31314 Change-Id: I817c9bb0e464b1f05430b4191b3bea21961ea122 Reviewed-by: Jerome Pasion --- doc/config/images/qt-codesample.png | Bin 0 -> 5048 bytes doc/config/qtdoc-qhp.qdocconf | 4 ++++ doc/src/images/qt-codesample.png | Bin 6897 -> 0 bytes 3 files changed, 4 insertions(+) create mode 100644 doc/config/images/qt-codesample.png delete mode 100644 doc/src/images/qt-codesample.png diff --git a/doc/config/images/qt-codesample.png b/doc/config/images/qt-codesample.png new file mode 100644 index 00000000..e798ae24 Binary files /dev/null and b/doc/config/images/qt-codesample.png differ diff --git a/doc/config/qtdoc-qhp.qdocconf b/doc/config/qtdoc-qhp.qdocconf index 95d9546f..3e088f6b 100644 --- a/doc/config/qtdoc-qhp.qdocconf +++ b/doc/config/qtdoc-qhp.qdocconf @@ -21,3 +21,7 @@ qhp.QtDoc.subprojects.qmltypes.sortPages = true qhp.QtDoc.subprojects.examples.title = Tutorials and Examples qhp.QtDoc.subprojects.examples.indexTitle = Qt Examples And Tutorials qhp.QtDoc.subprojects.examples.selectors = fake:example + +# Add an image used in example manifests to qhp +HTML.extraimages += images/qt-codesample.png +qhp.QtDoc.extraFiles += images/qt-codesample.png diff --git a/doc/src/images/qt-codesample.png b/doc/src/images/qt-codesample.png deleted file mode 100644 index 5e5f79e4..00000000 Binary files a/doc/src/images/qt-codesample.png and /dev/null differ -- cgit v1.2.1