From f4d9dadabbee7d32f135ca403f39b3c6ed1c34c8 Mon Sep 17 00:00:00 2001 From: Topi Reinio Date: Fri, 29 Jun 2018 15:14:07 +0200 Subject: Doc: Add a define for online and offline documentation templates The browser backend for offline documentation has fewer capabilities when it comes to CSS and JavaScript support. These defines allow us to use \if conditionals when needed: /*! \if defined(onlinedocs) \else \endif */ Change-Id: Ia51acb937754f22f2ece2836b4fb1470bf9ade90 Reviewed-by: Martin Smith --- doc/global/qt-html-templates-online.qdocconf | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/global/qt-html-templates-online.qdocconf') diff --git a/doc/global/qt-html-templates-online.qdocconf b/doc/global/qt-html-templates-online.qdocconf index 69c399d05a..f1437a2d9c 100644 --- a/doc/global/qt-html-templates-online.qdocconf +++ b/doc/global/qt-html-templates-online.qdocconf @@ -4,6 +4,8 @@ HTML.tocdepth = 2 include(html-header-online.qdocconf) include(html-footer-online.qdocconf) +defines += onlinedocs + #uncomment if navigation bar is not wanted #HTML.nonavigationbar = "true" -- cgit v1.2.3