summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/doc/config/b2qt-online.qdocconf6
-rw-r--r--src/doc/config/html-offline.qdocconf3
-rw-r--r--src/doc/src/qtee-index.qdoc1
3 files changed, 10 insertions, 0 deletions
diff --git a/src/doc/config/b2qt-online.qdocconf b/src/doc/config/b2qt-online.qdocconf
index a75cde2..901d1c1 100644
--- a/src/doc/config/b2qt-online.qdocconf
+++ b/src/doc/config/b2qt-online.qdocconf
@@ -3,3 +3,9 @@ include(b2qt-project.qdocconf)
# sidebar used for online template
HTML.stylesheets += style/qt5-sidebar.html
+
+# Add definition for a custom note, shown on index.html when
+# the URL query string matches 'welcome'
+macro.welcome.HTML = "<p class=\"welcome\" style=\"display:none;padding:6px;border:2px #e33 solid\"><i><b>Note:</b> This documentation is for the latest release of Qt for Device Creation. If you're using an older version, refer to the documentation in <b>Qt Creator</b> &gt; <b>Help</b> instead.</i></p>\n"
+
+HTML.headerscripts += " <script type=\"text/javascript\">\$(function(){if (document.location.search.substr(1) == \"welcome\") \$('.welcome').show();})</script>\n"
diff --git a/src/doc/config/html-offline.qdocconf b/src/doc/config/html-offline.qdocconf
index 142ec46..fb06277 100644
--- a/src/doc/config/html-offline.qdocconf
+++ b/src/doc/config/html-offline.qdocconf
@@ -5,6 +5,9 @@ include($QT_INSTALL_DOCS/global/fileextensions.qdocconf)
HTML.nobreadcrumbs = "true"
+# \welcome macro is used in online docs, no output in offline mode
+macro.welcome.HTML = "\n"
+
HTML.footer = \
" <div class=\"ft\">\n" \
" <span></span>\n" \
diff --git a/src/doc/src/qtee-index.qdoc b/src/doc/src/qtee-index.qdoc
index 3ea844a..d04ec7f 100644
--- a/src/doc/src/qtee-index.qdoc
+++ b/src/doc/src/qtee-index.qdoc
@@ -22,6 +22,7 @@
\nextpage qtee-overview.html
\title Qt 5.5 for Device Creation
+ \welcome
\e {Qt for Device Creation} is a commercial offering, providing a
fully-integrated solution for creating embedded Linux-based products. It
provides the complete toolchain required for faster software development,