Documentation Source Text

Check-in [b3567c150e]
Login

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

Overview
Comment:Change the "docs.in" file so that it shows all categories collapsed, initially.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | mobile-friendly
Files: files | file ages | folders
SHA1: b3567c150e6d2ebb821ffd1ff7b52c0cd676dad4
User & Date: drh 2016-09-01 09:14:36.000
Context
2016-09-01
14:36
Reduced indentation for fancy-format in mobile. (check-in: 47dbb59cad user: drh tags: mobile-friendly)
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)
Changes
Unified Diff Ignore Whitespace Patch
Changes to document_header.tcl.
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
    <li><a href='${path}docs.html'>Documentation</a>
    <li><a href='${path}support.html'>Support</a>
    <li><a href='http://www.hwaci.com/sw/sqlite/prosupport.html'>Purchase</a>
    </ul>
    </div>
    <div class="searchmenu" id="searchmenu">
    <form method="GET" action="search">
    Search for: <input type="text" name="q">
    <input type="submit" value="Go">
    </form>
    </div>
  }]

  append ret [subst -nocommands {
    <script>







|







45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
    <li><a href='${path}docs.html'>Documentation</a>
    <li><a href='${path}support.html'>Support</a>
    <li><a href='http://www.hwaci.com/sw/sqlite/prosupport.html'>Purchase</a>
    </ul>
    </div>
    <div class="searchmenu" id="searchmenu">
    <form method="GET" action="search">
    <span class="desktoponly">Search for:</span> <input type="text" name="q">
    <input type="submit" value="Go">
    </form>
    </div>
  }]

  append ret [subst -nocommands {
    <script>
Changes to pages/docs.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
38
39
40

41
42
43
44
45










46


47
48
49
50
51
52
53
<title>SQLite Documentation</title>

<h1 align="center">Categorical Index Of SQLite Documents</h1>

<table width="100%" cellpadding="5">

<tcl>
hd_keywords {categorical listing of SQLite documents}



set ::lHead [list]
proc doc {name url desc} {

}
proc heading {text tag {caption {}}} {
  lappend ::lHead $text $tag 
}

source [file join $::DOC pages docsdata.tcl]

hd_puts "<table align=center class=nounderline>"
set i 0



set style "\"padding-right:8ex; padding-bottom: 1em\""
foreach {text tag} $::lHead {
  if {($i % 2)==0} { hd_puts <tr> }
  hd_puts "<th valign=top align=left style=$style> <a href=#$tag>$text</a>"
  incr i
}
hd_puts "</table>"






proc doc {name url desc} {
  hd_puts {<tr><td valign="top" align="right" class=nounderline>}

  regsub -all { +} $name {\&nbsp;} name
  hd_puts "<a href=\"$url\">$name</a></td>"
  hd_puts {<td width="10"></td>}
  hd_puts {<td valign="top" align="left">}
  hd_resolve $desc
  hd_puts {</td></tr>}
}

proc heading {text tag {caption {}}} {
  hd_puts {<tr><td colspan=3 style="padding: 3ex 0 2ex 0">}

  hd_puts "<b><a name=$tag></a>$text</b>"
  if {$caption ne ""} {
    hd_puts {<br />}
    hd_puts "$caption"
  }










}



hd_puts "<table width=100% cellpadding=5>"
source [file join $::DOC pages docsdata.tcl]
hd_puts "</table>"

</tcl>
</table>


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

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

|
>
>
>
|
>
>

<
>
|
<
<
<
<
<

<

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

<
|

|
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
<title>SQLite Documentation</title>

<h1 align="center">Document Categories</h1>
<script>
function toggle_docs(n){
  var w = document.getElementById("doclist_ul"+n);

  var a = document.getElementById("doclist_a"+n);
  if( w.style.display=="none" ){
    w.style.display = "block";
    a.innerHTML = "-";
  }else{
    w.style.display = "none";
    a.innerHTML = "+";
  }


}
</script>
<style>
.onoff {
  text-decoration:none;
  border: 2px solid black;
  border-radius: 8px;
  font-weight: bold;
  padding-left: 5px;
  padding-right: 5px;



  line-height: 150%;
}
</style>
<ol>
<tcl>
hd_keywords {categorical listing of SQLite documents} {documents by category}
set prevHead {}
set lDoc {}
set cnt 0
proc doc {name url desc} {

  global lDoc
  lappend lDoc $name $url





}

proc heading {text tag {caption {}}} {

  end_heading
  set ::prevHead $text



}
proc end_heading {} {
  global lDoc cnt prevHead
  if {$prevHead==""} return
  incr cnt
  hd_putsnl "<li><b>$prevHead</b>"
  hd_puts "<a id='doclist_a$cnt' href='javascript:void(0)'"
  hd_puts " class='onoff' onclick='toggle_docs($cnt)'>+</a>"
  hd_putsnl "<ul id='doclist_ul$cnt' style='display:none;'>"
  foreach {name url} $lDoc {
    hd_putsnl "<li><a href='$url'>$name</a>"
  }
  hd_putsnl </ul>
  set lDoc {}
}

source [file join $::DOC pages docsdata.tcl]

end_heading
</tcl>
</ol>
Changes to pages/docsdata.tcl.
26
27
28
29
30
31
32



33
34
35
36
37
38
39
}
doc {Frequently Asked Questions} {faq.html} {
  The title of the document says all...
}
doc {Books About SQLite} {books.html} {
  A list of independently written books about SQLite.
}



doc {Alphabetical Listing Of Documents} {doclist.html} {
  A list of all titled pages on this website, sorted by title.
}
doc {Website Keyword Index} {keyword_index.html} {
  A cross-reference from keywords to various pages within this website.
}
doc {Permuted Title Index} {sitemap.html#pindex} {







>
>
>







26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
}
doc {Frequently Asked Questions} {faq.html} {
  The title of the document says all...
}
doc {Books About SQLite} {books.html} {
  A list of independently written books about SQLite.
}

heading {Lists And Indexes Of Documents} lists

doc {Alphabetical Listing Of Documents} {doclist.html} {
  A list of all titled pages on this website, sorted by title.
}
doc {Website Keyword Index} {keyword_index.html} {
  A cross-reference from keywords to various pages within this website.
}
doc {Permuted Title Index} {sitemap.html#pindex} {