Documentation Source Text

Check-in [0ff35a28c6]
Login

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

Overview
Comment:Display improvements for the list-of-documents documents.
Timelines: family | ancestors | descendants | both | mobile-friendly
Files: files | file ages | folders
SHA1: 0ff35a28c6bb05917f68c9327b1e72b557c8f91a
User & Date: drh 2016-09-01 18:13:43
Context
2016-09-01
18:38
Fix up the support.html page for mobile. Improved the look of "button" hyperlinks. check-in: 5e4e985bf0 user: drh tags: mobile-friendly
18:13
Display improvements for the list-of-documents documents. check-in: 0ff35a28c6 user: drh tags: mobile-friendly
16:32
Improved show/hide on the docs.html page. check-in: 910e5ab927 user: drh tags: mobile-friendly
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to pages/doclist.in.

     1      1   <title>Alphabetical List Of SQLite Documents</title>
     2         -<h1 align=center>Alphabetical List Of SQLite Documents</h1>
            2  +<h2 align=center>Alphabetical List Of Documents</h1>
     3      3   <tcl>hd_keywords {*doclist}</tcl>
     4      4   
     5         -<var class="rightsidebar border2px">
            5  +<var class="rightsidebar border2px desktoponly">
     6      6   See Also:
     7      7   <ul>
     8      8   <li>[categorical listing of SQLite documents | Categorical Document List]
     9      9   <li>[books about SQLite | Books About SQLite]
    10     10   <li>[permuted index | Permuted Title Index]
    11     11   <li>[keyword index | Website Keyword Index]
    12     12   </ul>
    13     13   </var>
    14     14   
    15     15   <ol>
    16     16   <tcl>
    17         -hd_keywords {alphabetical listing of SQLite documents}
           17  +hd_keywords {alphabetical listing of documents}
    18     18   db eval {
    19     19     SELECT filename, pagetitle
    20     20       FROM page
    21     21      WHERE pagetitle IS NOT NULL AND pagetitle!='No Title'
    22     22      ORDER BY pagetitle COLLATE nocase
    23     23   } {
    24     24     hd_puts "<li><a href=\"$filename\">$pagetitle</a></li>\n"
    25     25   }
    26     26   </tcl>
    27     27   </ol>

Changes to pages/docs.in.

     1      1   <title>SQLite Documentation</title>
     2      2   
     3         -<h1 align="center">Documents By Category</h1>
            3  +<h2 align="center">Documents By Category</h1>
     4      4   <style>
     5         -ul.showhide {
            5  +.showhide {
     6      6     margin-left: 0;
     7      7     padding-left: 0;
     8      8     list-style-type: none;
     9      9   }
           10  +.showhide > li {
           11  +  clear: both;
           12  +  padding-left: 1em;
           13  +  text-indent: -1em;
           14  +}
           15  +.showhide > li li {
           16  +  padding-left: 0;
           17  +  text-indent: 0;
           18  +}
    10     19   .showhide ul {display: none;}
    11     20   .showhide > li > a {
    12     21     text-decoration: none;
    13     22     color: black;
    14     23     cursor: pointer;
    15     24   }
           25  +.sh_mark {
           26  +  float: left;
           27  +  width: 1em;
           28  +}
    16     29   </style>
    17     30   <script>
    18     31   function showhide(n){
    19     32     var ul = document.getElementById("sh_sub_"+n)
    20     33     var mk = document.getElementById("sh_mark_"+n)
    21     34     if( ul.style.display!="block" ){
    22     35       ul.style.display = "block";
    23         -    mk.innerHTML = "&#x25bc;";
           36  +    mk.innerHTML = "&#x25be;";
    24     37     } else {
    25     38       ul.style.display = "none";
    26         -    mk.innerHTML = "&#x25b6;";
           39  +    mk.innerHTML = "&#x25b8;";
    27     40     }
    28     41   }
    29     42   </script>
    30     43   <ul class="showhide">
    31     44   <tcl>
    32     45   hd_keywords {categorical listing of SQLite documents} {documents by category}
    33     46   set prevHead {}
................................................................................
    41     54     end_heading
    42     55     set ::prevHead $text
    43     56   }
    44     57   proc end_heading {} {
    45     58     global lDoc cnt prevHead
    46     59     if {$prevHead==""} return
    47     60     incr cnt
    48         -  hd_puts "<li><a onclick='showhide($cnt)'><span id='sh_mark_$cnt'>"
    49         -  hd_puts "&#x25b6;</span> $prevHead</a>\n"
           61  +  hd_puts "<li><a onclick='showhide($cnt)'>"
           62  +  hd_puts "<span class='sh_mark' id='sh_mark_$cnt'>"
           63  +  hd_puts "&#x25b8;</span> $prevHead</a>\n"
    50     64     hd_putsnl "<ul id='sh_sub_$cnt'>"
    51     65     foreach {name url} $lDoc {
    52     66       hd_putsnl "<li><a href='$url'>$name</a>"
    53     67     }
    54     68     hd_putsnl </ul>
    55     69     set lDoc {}
    56     70   }
    57     71   source [file join $::DOC pages docsdata.tcl]
    58     72   end_heading
    59     73   </tcl>
    60     74   </ul>

Changes to pages/keyword_index.in.

     1      1   <title>Website Keyword Index</title>
     2         -<h1 align=center>Website Keyword Index</h1>
            2  +<h2 align=center>Keyword Index</h1>
     3      3   
     4         -<var class="rightsidebar border2px">
            4  +<var class="rightsidebar border2px desktoponly">
     5      5   Other Documentation Indexes:
     6      6   <ul>
     7      7   <li>[categorical listing of SQLite documents | Categorical Document List]
     8      8   <li>[books about SQLite | Books About SQLite]
     9      9   <li>[doclist | Alphabetical List Of Documents]
    10     10   <li>[permuted index | Permuted Document Title Index]
    11     11   </ul>
    12     12   </var>
    13     13   
    14         -<ul>
           14  +<ul class='lessindent'>
    15     15   <tcl>
    16     16   hd_keywords {keyword index}
    17     17   db eval {
    18     18     UPDATE keyword SET indexKw=0
    19     19      WHERE kw GLOB '*s' AND indexKw
    20     20        AND EXISTS(SELECT 1 FROM keyword AS x
    21     21                    WHERE x.kw = substr(keyword.kw,1,length(keyword.kw)-1));

Changes to pages/sitemap.in.

     1      1   <title>SQLite Site Map</title>
     2      2   
     3      3   
     4      4   <tcl>hd_keywords {permuted index}</tcl>
     5         -<h2>Permuted Index:</h2>
            5  +<h2>Permuted Index</h2>
     6      6   
     7         -<var class="rightsidebar border2px">
            7  +<var class="rightsidebar border2px desktoponly">
     8      8   Other Documentation Indices:
     9      9   <ul>
    10     10   <li>[categorical listing of SQLite documents | Categorical Document List]
    11     11   <li>[books about SQLite | Books About SQLite]
    12     12   <li>[doclist | Alphabetical List Of Documents]
    13     13   <li>[keyword index | Website Keyword Index]
    14     14   </ul>
    15     15   </var>
    16     16   
    17         -<ul>
           17  +<ul class='lessindent'>
    18     18   <tcl>
    19     19   db eval {
    20     20     DROP TABLE IF EXISTS px;
    21     21     CREATE TEMP TABLE px(title COLLATE nocase,link);
    22     22   }
    23     23   db eval {SELECT pagetitle, filename FROM page WHERE pagetitle!='No Title'} {
    24     24     set nword [llength $pagetitle]
................................................................................
    33     33       set perm "$lastpart &#151; $firstpart"
    34     34       db eval {INSERT INTO px VALUES($perm,$filename)}
    35     35     }
    36     36   }
    37     37   db eval {
    38     38     SELECT title, link FROM px ORDER BY title
    39     39   } {
    40         -  hd_puts "<li><a href=\"$link\">$title</a></li>"
           40  +  hd_putsnl "<li><a href=\"$link\">$title</a></li>"
    41     41   } 
    42     42   </tcl>
    43     43   </ul>

Changes to rawpages/sqlite.css.

   171    171     .toct {margin-left:0;}
   172    172     .fancy-toc1 {padding-left:4ex;text-indent:-2ex;}
   173    173     .fancy-toc2 {padding-left:8ex;text-indent:-4ex;}
   174    174     .fancy-toc3 {padding-left:12ex;text-indent:-6ex;}
   175    175     .fancy-toc4 {padding-left:16ex;text-indent:-8ex;}
   176    176     .fancy-toc5 {padding-left:20ex;text-indent:-10ex;}
   177    177     .fancy-toc6 {padding-left:24ex;text-indent:-12ex;}
          178  +  .lessindent {padding-left: 1em; margin-left: 0;}
   178    179   }
   179    180   /* End of "fancyformat" specific rules. */
   180    181   
   181    182   .yyterm {
   182    183     background: #fff;
   183    184     border: 1px solid #000;
   184    185     border-radius: 11px;
................................................................................
   188    189   }
   189    190   
   190    191   /* Container for an image */
   191    192   .imgcontainer img {
   192    193     max-height: 100%;
   193    194     max-width: 100%;
   194    195   }
          196  +
   195    197   
   196    198   .doccat a {
   197    199     color: #044a64 ;
   198    200     text-decoration: none;
   199    201   }
   200    202   .doccat h {
   201    203     font-weight: bold;