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 <martin.smith@qt.io>
This commit is contained in:
parent
37a1c6dc4c
commit
f4d9dadabb
@ -3,6 +3,8 @@ include(html-config.qdocconf)
|
||||
include(html-header-offline.qdocconf)
|
||||
include(html-footer.qdocconf)
|
||||
|
||||
defines += offlinedocs
|
||||
|
||||
#uncomment if navigation bar is not wanted
|
||||
#HTML.nonavigationbar = "true"
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user