diff --git a/doc/global/qt-html-templates-offline.qdocconf b/doc/global/qt-html-templates-offline.qdocconf
index 3a4523fbdef..4ac47fe7fd5 100644
--- a/doc/global/qt-html-templates-offline.qdocconf
+++ b/doc/global/qt-html-templates-offline.qdocconf
@@ -1,6 +1,7 @@
HTML.nobreadcrumbs = "true"
-HTML.stylesheets = global/style/offline.css
+HTML.templatedir = template
+HTML.stylesheets = style/offline.css
HTML.headerstyles = \
" \n"
diff --git a/doc/global/style/offline.css b/doc/global/template/style/offline.css
similarity index 100%
rename from doc/global/style/offline.css
rename to doc/global/template/style/offline.css