Commit beae0686 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

cmake: Avoid rst2html warnings in on-the-fly generated html documentation

Summary:
rst2html reports warnings about the rst syntax into the generated html,
unless told to switch to another report level, like with --quiet.
As the user cannot (or does not want to) do anything about the cmake docs
when just using them, hide any warnings from them.

Test Plan:
CMake docs are still shown, now without any rst syntax warnings (e.g. for
CMake's "project".

Reviewers: #kdevelop, apol, kfunk

Reviewed By: #kdevelop, kfunk

Subscribers: kdevelop-devel

Tags: #kdevelop

Differential Revision: https://phabricator.kde.org/D15919
parent 6652fa0a
......@@ -105,7 +105,7 @@ QString CMakeCommandsContents::descriptionForIdentifier(const QString& id, CMake
+ QLatin1String("</body></html>"));
} else {
QProcess p;
p.start(rst2html, { QStringLiteral("--no-toc-backlinks") });
p.start(rst2html, { QStringLiteral("--no-toc-backlinks"), QStringLiteral("--quiet") });
p.write(desc.toUtf8());
p.closeWriteChannel();
p.waitForFinished();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment