From c16ae6b46d1e81450b9614037bbc9ec5803de1c5 Mon Sep 17 00:00:00 2001 From: Venugopal Shivashankar Date: Mon, 7 Oct 2019 13:40:05 +0200 Subject: 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 --- sources/shiboken2/generator/qtdoc/qtdocgenerator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sources/shiboken2') 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() -- cgit v1.2.3