From edeeba639ef1ae364866994a9413cca6eff3651d Mon Sep 17 00:00:00 2001 From: Topi Reinio Date: Sun, 9 Sep 2018 12:39:53 +0200 Subject: Doc: Add a macro that returns the minor version Add a global QDoc macro \QtMinorVersion that expands into the minor version of Qt, or more specifically, the minor version contained in the QT_VER environment variable. The main use case for the new macro is to document the QML modules whose minor versions track the minor version of Qt: \qmlmodule QtQuick 2.\QtMinorVersion Task-number: QTBUG-67818 Change-Id: I2b4fcbb18de0f8f95718099309090017c237622f Reviewed-by: Martin Smith --- doc/global/macros.qdocconf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/global/macros.qdocconf b/doc/global/macros.qdocconf index dbf8c5cc6a..49ad3fff9b 100644 --- a/doc/global/macros.qdocconf +++ b/doc/global/macros.qdocconf @@ -40,6 +40,10 @@ macro.endfloat.HTML = "" macro.clearfloat.HTML = "
" macro.emptyspan.HTML = "" +# Expands to the minor version based on the QT_VER environment variable +macro.QtMinorVersion = "$QT_VER" +macro.QtMinorVersion.match = "\\d+\\.(\\d+)" + # Embed YouTube content by video ID - Example: \youtube dQw4w9WgXcQ # Also requires a .jpg thumbnail for offline docs. In .qdocconf, add: # -- cgit v1.2.3