aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2
diff options
context:
space:
mode:
authorVenugopal Shivashankar <Venugopal.Shivashankar@qt.io>2019-10-07 13:40:05 +0200
committerVenugopal Shivashankar <Venugopal.Shivashankar@qt.io>2019-10-07 12:19:19 +0000
commitc16ae6b46d1e81450b9614037bbc9ec5803de1c5 (patch)
tree89e19269e08da9609a77a80bfebe6767f3e5bbd2 /sources/shiboken2
parente2774ff5350fa94352858672aa165a8ff22aa3b1 (diff)
Shiboken: Provide a context for the additional docs
Without the context, the images referred in the additional docs are not copied to the target directory. As as result, we have missing images in the HTML. Change-Id: I76bf4dafaa9ff82ef11755a64da7466596969460 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/shiboken2')
-rw-r--r--sources/shiboken2/generator/qtdoc/qtdocgenerator.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/shiboken2/generator/qtdoc/qtdocgenerator.cpp b/sources/shiboken2/generator/qtdoc/qtdocgenerator.cpp
index dd29c02f0..c8bb2fffa 100644
--- a/sources/shiboken2/generator/qtdoc/qtdocgenerator.cpp
+++ b/sources/shiboken2/generator/qtdoc/qtdocgenerator.cpp
@@ -2303,8 +2303,9 @@ void QtDocGenerator::writeAdditionalDocumentation()
if (fi.isFile()) {
const QString rstFileName = fi.baseName() + rstSuffix;
const QString rstFile = targetDir + QLatin1Char('/') + rstFileName;
+ const QString context = targetDir.mid(targetDir.lastIndexOf(QLatin1Char('/')) + 1);
if (QtXmlToSphinx::convertToRst(this, fi.absoluteFilePath(),
- rstFile, QString(), &errorMessage)) {
+ rstFile, context, &errorMessage)) {
++successCount;
qCDebug(lcShiboken).nospace().noquote() << __FUNCTION__
<< " converted " << fi.fileName()