Documentation Source Text

Check-in [028b7208ab]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix the syntax.html document so that it uses the output_list proc to generate a variable-column bullet list.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | mobile-friendly
Files: files | file ages | folders
SHA1: 028b7208ab900d65f6f62d664bcc41e40a71b38e
User & Date: drh 2016-09-01 02:08:37
Context
2016-09-01
09:14
Change the "docs.in" file so that it shows all categories collapsed, initially. check-in: b3567c150e user: drh tags: mobile-friendly
02:08
Fix the syntax.html document so that it uses the output_list proc to generate a variable-column bullet list. check-in: 028b7208ab user: drh tags: mobile-friendly
01:54
The "Search" menubar option causes a drop-down search box to appear. check-in: 61608e2d14 user: drh tags: mobile-friendly
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to pages/capi3ref.in.

220
221
222
223
224
225
226

227
228
229
230
231
232
233
  return $name.html
}

# Convert the keyword $kw into an appropriate relative URI
#
proc keyword_to_uri {kw} {
  global hd llink glink

  if {$hd(enable-main)} {
    set fn $hd(fn-main)
    if {[info exists llink($fn:$kw)]} {
      return $hd(rootpath-main)$llink($fn:$kw)
    }
    if {[info exists glink($kw)]} {
      return $hd(rootpath-main)$glink($kw)







>







220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
  return $name.html
}

# Convert the keyword $kw into an appropriate relative URI
#
proc keyword_to_uri {kw} {
  global hd llink glink
  if {[string match {*.html} $kw]} {return $kw}
  if {$hd(enable-main)} {
    set fn $hd(fn-main)
    if {[info exists llink($fn:$kw)]} {
      return $hd(rootpath-main)$llink($fn:$kw)
    }
    if {[info exists glink($kw)]} {
      return $hd(rootpath-main)$glink($kw)

Changes to pages/syntax.in.

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
<title>List of SQLite Syntax Diagrams</title>

<h1 align="center">List of SQLite Syntax Diagrams</h1>

<table border=0 cellspacing=25 width="100%"><tr>
<tcl>
  set n [llength $syntax_order]

  set lx [lsort $syntax_order]
  set ncol 3
  set percol [expr {($n+$ncol-1)/$ncol}]
  for {set ii 0} {$ii<$ncol} {incr ii} {
    hd_putsnl {<td valign='top' width='33%'>}
    hd_putsnl {<ul>}
    set max [expr {($ii+1)*$percol}]
    if {$max>$n} {set max $n}
    for {set jj [expr {$ii*$percol}]} {$jj<$max} {incr jj} {
      set name [lindex $lx $jj]
      hd_putsnl "<li><a href='syntax/$name.html'>$name</a></li>"

    }
    hd_putsnl {</ul></td>}

  }
</tcl>
</tr></table>
<tcl>
foreach name $syntax_order {
  file mkdir $::DEST/syntax
  hd_open_aux syntax/$name.html

  hd_enable_main 0
  hd_header "SQLite Syntax: $name"
  hd_keywords $name "$name syntax diagram"
  hd_putsnl "<h1 align='center'>$name</h1>"
  hd_putsnl "<div class='imgcontainer'>"
  hd_puts "<img alt=\"syntax diagram $name\" "
  hd_puts "src=\"../images/syntax/$name.gif\">"
  hd_putsnl "</img><br>"
  foreach {cx px} $syntax_linkage($name) break
  if {[llength $px]>0} {




<

<
>
|
<
<
<
<
<
<
<
<
<
<
>
|
<
>
|
<
<
<



>


<







1
2
3
4

5

6
7










8
9

10
11



12
13
14
15
16
17

18
19
20
21
22
23
24
<title>List of SQLite Syntax Diagrams</title>

<h1 align="center">List of SQLite Syntax Diagrams</h1>


<tcl>

set lx {}
foreach name [lsort $syntax_order] {










  lappend lx [list syntax/$name.html $name 0]
}

output_list {} 300 $lx




foreach name $syntax_order {
  file mkdir $::DEST/syntax
  hd_open_aux syntax/$name.html
  hd_keywords $name "$name syntax diagram"
  hd_enable_main 0
  hd_header "SQLite Syntax: $name"

  hd_putsnl "<h1 align='center'>$name</h1>"
  hd_putsnl "<div class='imgcontainer'>"
  hd_puts "<img alt=\"syntax diagram $name\" "
  hd_puts "src=\"../images/syntax/$name.gif\">"
  hd_putsnl "</img><br>"
  foreach {cx px} $syntax_linkage($name) break
  if {[llength $px]>0} {