Skip to content

Commit

Permalink
Doc: Add a dark offline CSS
Browse files Browse the repository at this point in the history
Which can be used by Qt Creator and Assistant.

Task-number: QTBUG-97125
Task-number: QTCREATORBUG-26557
Change-Id: I03e5ac0a15f84101c73887724693e9eb27670754
Reviewed-by: Topi Reiniö <[email protected]>
Reviewed-by: Jarek Kobus <[email protected]>
  • Loading branch information
e4z9 committed Nov 11, 2022
1 parent b2de858 commit 4364671
Show file tree
Hide file tree
Showing 3 changed files with 777 additions and 3 deletions.
6 changes: 4 additions & 2 deletions doc/global/html-header-offline.qdocconf
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#Default HTML header for QDoc builds.

#specify the CSS file used by this template
HTML.stylesheets = template/style/offline.css
HTML.stylesheets = template/style/offline.css \
template/style/offline-dark.css

#for including files into the qch file
qhp.extraFiles += style/offline.css
qhp.extraFiles += style/offline.css \
style/offline-dark.css

HTML.headerstyles = \
" <link rel=\"stylesheet\" type=\"text/css\" href=\"style/offline.css\" />\n"
Expand Down
4 changes: 3 additions & 1 deletion doc/global/qt-html-templates-offline.qdocconf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ defines += offlinedocs
#uncomment if navigation bar is not wanted
#HTML.nonavigationbar = "true"

HTML.stylesheets = template/style/offline.css
HTML.stylesheets = template/style/offline.css \
template/style/offline-dark.css
HTML.extraimages += template/images/ico_out.png \
template/images/ico_note.png \
template/images/ico_note_attention.png \
Expand All @@ -22,6 +23,7 @@ sourcedirs += includes

#specify which files in the output directory should be packed into the qch file.
qhp.extraFiles += style/offline.css \
style/offline-dark.css \
images/ico_out.png \
images/ico_note.png \
images/ico_note_attention.png \
Expand Down
Loading

0 comments on commit 4364671

Please sign in to comment.