File: grid.qdocconf

package info (click to toggle)
qt6-base 6.8.2%2Bdfsg-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 297,912 kB
  • sloc: cpp: 1,896,462; ansic: 374,195; xml: 142,138; python: 20,680; java: 8,229; asm: 4,009; javascript: 2,290; sh: 1,690; perl: 1,028; makefile: 130
file content (59 lines) | stat: -rw-r--r-- 1,562 bytes parent folder | download | duplicates (4)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Macros for laying out a three-column grid structure of
# items in online documentation. Takes three arguments,
# wrapped in braces:
#   a link, a title, and a description.

# Usage:
#   \grid
#       \griditem {qtqml-index.html} {Qt Qml} {Classes for QML and JavaScript languages.}
#       \griditem {qtquick-index.html} {Qt Quick} {
#           Declarative framework for dynamic apps with custom UIs.
#       }
#       \griditem {qtquickcontrols-index.html} {Qt Quick Controls} {
#           Lightweight QML types for creating performant user
#           interfaces.
#       }
#   \endgrid

# Note: For offline documentation, these macros
# generate a \table structure instead.


macro.grid = \
"\\if defined(onlinedocs)\n" \
"  \\raw HTML\n" \
"  <div class=\"grid\">\n" \
"  <ul class=\"l-tile\" data-column=\"3\">\n" \
"  \\endraw\n" \
"\\else\n" \
"  \\table\n" \
"\\endif\n"

macro.griditem = \
"\\detailedgriditem {\1} {\2} {\3} {#} {}"

macro.detailedgriditem = \
"\\if defined(onlinedocs)\n" \
"  \\raw HTML\n" \
"  <li class=\"l-tile__item\">\n" \
"    <div class=\"c-feature c-feature--external-link\" data-scheme=\"\">\n" \
"      <h3>\2</h3>\n" \
"      <p>\3</p>\n" \
"      <a class=\"c-feature__overlay-link\" href=\"\1\"></a>\n" \
"      <a data-tag=\"\5\" href=\"\4\"></a>\n" \
"    </div>\n" \
"  </li>\n" \
"  \\endraw\n" \
"\\else\n" \
"  \\row \\li \\l {\1}{\2} \\li \3\n" \
"\\endif\n"

macro.endgrid = \
"\\if defined(onlinedocs)\n" \
"  \\raw HTML\n" \
"  </ul></div>\n" \
"  \\endraw\n" \
"\\else\n" \
"  \\endtable\n" \
"\\endif\n"