Skip to content

Commit f4d9dad

Browse files
toreiniotorarnv
authored andcommitted
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) <Content that is rendered in online documentation> \else <Fallback for offline docs> \endif */ Change-Id: Ia51acb937754f22f2ece2836b4fb1470bf9ade90 Reviewed-by: Martin Smith <[email protected]>
1 parent 37a1c6d commit f4d9dad

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

doc/global/qt-html-templates-offline.qdocconf

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ include(html-config.qdocconf)
33
include(html-header-offline.qdocconf)
44
include(html-footer.qdocconf)
55

6+
defines += offlinedocs
7+
68
#uncomment if navigation bar is not wanted
79
#HTML.nonavigationbar = "true"
810

doc/global/qt-html-templates-online.qdocconf

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ HTML.tocdepth = 2
44
include(html-header-online.qdocconf)
55
include(html-footer-online.qdocconf)
66

7+
defines += onlinedocs
8+
79
#uncomment if navigation bar is not wanted
810
#HTML.nonavigationbar = "true"
911

0 commit comments

Comments
 (0)