summaryrefslogtreecommitdiffstats
path: root/doc/global/qt-html-templates-offline-simple.qdocconf
blob: b19bdd513fc1ba642088d6feacb7d9d673434f9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include standard set of HTML header and footer.
include(html-config.qdocconf)
include(html-header-offline.qdocconf)
include(html-footer.qdocconf)

# Uncomment if navigation bar is not wanted
#HTML.nonavigationbar      = "true"

# Specify a custom CSS file used by this template
HTML.stylesheets  += template/style/offline-simple.css
qhp.extraFiles    += style/offline-simple.css

# override the header styles
HTML.headerstyles  = \
    "  <link rel=\"stylesheet\" type=\"text/css\" href=\"style/offline-simple.css\" />\n" \
    "  <script type=\"text/javascript\">\n" \
    "    window.onload = function(){document.getElementsByTagName(\"link\").item(0).setAttribute(\"href\", \"style/offline.css\");};\n" \
    "  </script>\n"

HTML.postheader = \
    "<body>\n" \
    "<div class=\"header\" id=\"qtdocheader\">\n"\
    "  <div class=\"main\">\n" \
    "    <div class=\"main-rounded\">\n" \
    "      <div class=\"navigationbar\">\n" \
    "        <table><tr>\n"

HTML.postpostheader = \
    "        </tr></table>\n"\
    "      </div>\n" \
    "    </div>\n" \
    "<div class=\"content\">\n" \
    "<div class=\"line\">\n" \
    "<div class=\"content mainContent\">\n"

# Add some padding around code snippets, as we cannot
# currectly style them for QTextBrowser using only CSS.
codeindent         = 2
codeprefix         = "\n\n"
codesuffix         = "\n\n"