From 2df31c8f2e044de68898bd744adec676d75b2e7e Mon Sep 17 00:00:00 2001 From: Topi Reinio Date: Sun, 7 Jun 2020 11:03:02 +0200 Subject: Doc: Update global documentation config for Qt 6 - Set base URL path to /qt - Define 'qt6' for use in conditionals - Omit \since information for everything introduced before Qt 5 - Make use of the new expandable variables to allow component-specific URLs in commercial templates - Adjust CSS for changes in QDoc's output Change-Id: I74581f0fb49cd176f92d6451c388e7b7ddf1baa4 Reviewed-by: Paul Wicking Reviewed-by: Venugopal Shivashankar --- doc/global/config.qdocconf | 7 ++++++- doc/global/qt-module-defaults-online-commercial.qdocconf | 8 +++++--- doc/global/template/style/offline-simple.css | 2 +- doc/global/template/style/offline.css | 8 +------- doc/global/template/style/online.css | 9 ++------- 5 files changed, 15 insertions(+), 19 deletions(-) (limited to 'doc/global') diff --git a/doc/global/config.qdocconf b/doc/global/config.qdocconf index 8df9b4f30d..d53e124b92 100644 --- a/doc/global/config.qdocconf +++ b/doc/global/config.qdocconf @@ -17,9 +17,14 @@ ignorewords += \ WebChannel \ OpenGL +# Omit \since information for items introduced before Qt 5 +ignoresince = 5.0 + sourcedirs += includes $$BUILDDIR -url = http://doc.qt.io/qt-5 +url = https://doc.qt.io/qt + +defines += qt6 # Uncomment the following two lines to generate documentation marked as \internal # alias.internal = disable diff --git a/doc/global/qt-module-defaults-online-commercial.qdocconf b/doc/global/qt-module-defaults-online-commercial.qdocconf index c5bce13609..3d21ea0122 100644 --- a/doc/global/qt-module-defaults-online-commercial.qdocconf +++ b/doc/global/qt-module-defaults-online-commercial.qdocconf @@ -1,15 +1,17 @@ # This template uses the default online template for qt.io # and modifies it for a commercial Qt component +# URL specific to this component - override as needed +componenturl = https://www.qt.io/download/ + # Start of footer - the rest is defined in the default template HTML.footer = \ - "

Available under certain Qt licenses.
Find out more.

\n" \ + "

Available under certain Qt licenses.
Find out more.

\n" \ " \n" include(macros.qdocconf) include(qt-cpp-defines.qdocconf) include(compat.qdocconf) -#include(manifest-meta.qdocconf) include(fileextensions.qdocconf) include(qt-html-templates-online.qdocconf) @@ -18,7 +20,7 @@ include(config.qdocconf) HTML.prologue = \ "
\n" \ - "

C

\n" + "

C

\n" # Turn off single-directory output mode HTML.nosubdirs = "false" diff --git a/doc/global/template/style/offline-simple.css b/doc/global/template/style/offline-simple.css index b89ca5a808..83fa15ca17 100644 --- a/doc/global/template/style/offline-simple.css +++ b/doc/global/template/style/offline-simple.css @@ -102,7 +102,7 @@ h3.fn .name, h3.fn .type { font-weight: 400; } -.qmlreadonly, .qmldefault { +.qmlextra { font-family: Courier, monospace; margin-right: 6px; } diff --git a/doc/global/template/style/offline.css b/doc/global/template/style/offline.css index f99369a096..3f99aec978 100644 --- a/doc/global/template/style/offline.css +++ b/doc/global/template/style/offline.css @@ -586,13 +586,7 @@ ol.a > li{ padding: 20px 20px 20px 20px; } -.qmldefault { - padding-left: 5px; - float: right; - color: red; -} - -.qmlreadonly { +.qmlextra { padding-left: 5px; float: right; color: #254117; diff --git a/doc/global/template/style/online.css b/doc/global/template/style/online.css index 4e17d9a8a9..a21dca37ae 100644 --- a/doc/global/template/style/online.css +++ b/doc/global/template/style/online.css @@ -489,18 +489,13 @@ h1,h2,h3,h4,h5,h6 { text-align:left; padding:5px 0 0 0 } -.qmlreadonly,.qmldefault { +.qmlreadonly,.qmldefault,.qmlextra { + color:#414141; padding:0 5px 0 5px; font-size:0.75em; background-color:#eee; float:right } -.qmlreadonly { - color:#414141 -} -.qmldefault { - color:#D14141 -} .rightAlign { padding:3px 5px 3px 10px; text-align:right -- cgit v1.2.3