I faced a few problems in docs for the QML Complier. I think it makes sense to fix them to ensure this feature is better accessible for the customers. Blow is the list. Most items are small and so I thought it is better post them in one issue. The below points refer to 6.1 but most of them are the same on the 5.15 space, unless otherwise noted. Links are not embedded for better readability.
- From the user perspective, QML Complier seems to have more than one name in the docs. It is listed as QML Disk Cache and as Qt Quick Compiler. This should either be unified, or explained to the user what is what and used accordingly.
- The landing page of Qt QML (https://doc.qt.io/qt-6/qtqml-index.html) lists QML Disk Cache (https://doc.qt.io/qt-6/qmldiskcache.html) under "Guides and Other Information" only. Despite the strange choice of the section, this is the only topic mentioned here. It is not clear why the user should know about QML Disk Cache w/o knowing what it is used for. Instead, other related topics are spread over other pages (see below)
- At the end of the of the content, the QML Cache page has a link to the "Qt Quick Compiler" (https://doc.qt.io/QtQuickCompiler) page which is the actual landing page for this domain. I believe it should be other way around.
- A side issue is that the same link to the Qt Quick Compiler page from the QML Disk Cache page in in Qt 5.15 lands in Archives (https://doc.qt.io/archives/QtQuickCompiler/) whereas on Qt 6.1 it lands to on the top-level bread crumps in https://doc.qt.io/QtQuickCompiler
- The Qt Quick Compiler page tells the user that qrc files are not needed anymore once this add-on has been used. Not sure if this is related to the current caching or the former compiler. This page might need some review...
- A search for "QML Compiler" in the search bar, reveals a few other related pages. Searching should not be required. We should collect all relevant page on one landing page
- The above search points to the page "Deploying QML Applications" (https://doc.qt.io/qt-6/qtquick-deployment.html) which then talks about "Ahead-of-Time Compilation" not mentioning the previous pages but repeating a part of their content. This space introduces the term of "cashing" which make people recall the QML Cache page whereas it is not directly mentioned there
- The same page, "Deploying QML Applications", provides a section "QML Caching" which is a bit repeating the content of the QML Disk Cache (https://doc.qt.io/qt-6/qmldiskcache.html) page.
- On the opposite, the Qt Quick Compiler does not mention the "caching" term and speaks of "byte code" which makes people think that the information in the QML Cache page is not relevant.
- The too qmlcachegen is not mentioned, neither document whereas mentioned on https://doc.qt.io/qt-6/configure-linux-device.html