<table><tr><td style="">rjvbb added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D8211" rel="noreferrer">View Revision</a></tr></table><br /><div><div><blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">Maybe this is the way to go. Can't there be a documentation viewer interface, with multiple plugins implementing it, maybe some built by default, others if the necessary dependencies are available?</pre></div></blockquote>
<p>I was thinking something similar over dinner: make the part that does the actual rendering a plugin. That's almost what Friedrich suggested, the way rendering backends are selected aside. The code currently shared with the contextual help popup subsystem would remain in a regular library that's always loaded (including the methods I tweak for external browser support). One or two rendering plugins could remain in KDevelop, but the QTB plugin could be an external project.</p>
<p>Maybe more can be put in a plugin, but then probably with a thorough API reorganisation; in that case support for an external browser could also be provided by an external plugin instead of by the host application.</p>
<p>This would make it easier to explore other (hypothetical) html/rich content renderers that are somewhere between QTB and QWE.</p>
<p>The problem is that different rendering backends may need different information from the documentation plugins. Cf. QTB: I need to obtain the HTML myself from the QtHelp engine/provider. That probably means you cannot just put the renderer in a plugin, not unless you accept extending the API when required.</p>
<p>By the time I was finishing my desert it was clear to me that I'd probably be breaking my last teeth on such a project, so I'm not volunteering to start working on it =)</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8211" rel="noreferrer">https://phabricator.kde.org/D8211</a></div></div><br /><div><strong>To: </strong>rjvbb, KDevelop<br /><strong>Cc: </strong>kfunk, croick, kossebau, aaronpuchert, flherne, arichardson, apol, kdevelop-devel, geetamc, Pilzschaf, akshaydeo, surgenight, arrowdodger<br /></div>