Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Remove unnecessary javascript from the header. Improvements to rendering of C APIs. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
4180b2cf6ffda2e9cf0a607cba269d1f |
User & Date: | drh 2016-09-02 16:30:15.157 |
Context
2016-09-02
| ||
16:57 | Rename the output_list proc to hd_list_of_links and move its implementation from capi3ref.in into wrap.tcl, since it is used as common code. (check-in: c3c40d6711 user: drh tags: trunk) | |
16:30 | Remove unnecessary javascript from the header. Improvements to rendering of C APIs. (check-in: 4180b2cf6f user: drh tags: trunk) | |
15:25 | Remove some unnecessary leading whitespace from generated page content. (check-in: 03b286c8ac user: drh tags: trunk) | |
Changes
Changes to document_header.tcl.
︙ | ︙ | |||
70 71 72 73 74 75 76 | window.onbeforeunload = function(e){div_off("submenu");} /* Disable the Search feature if we are not operating from CGI, since */ /* Search is accomplished using CGI and will not work without it. */ if( !location.origin.match(/http/) ){ document.getElementById("search_menubutton").style.display = "none"; } | | < < < < < < < < < < < | < < < < < < < < < < < < < | < < < < < < < | 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | window.onbeforeunload = function(e){div_off("submenu");} /* Disable the Search feature if we are not operating from CGI, since */ /* Search is accomplished using CGI and will not work without it. */ if( !location.origin.match(/http/) ){ document.getElementById("search_menubutton").style.display = "none"; } /* Used by the Hide/Show button beside syntax diagrams, to toggle the */ /* display of those diagrams on and off */ function hideorshow(btn,obj){ var x = document.getElementById(obj); var b = document.getElementById(btn); if( x.style.display!='none' ){ x.style.display = 'none'; b.innerHTML='show'; }else{ |
︙ | ︙ |
Changes to pages/capi3ref.in.
︙ | ︙ | |||
660 661 662 663 664 665 666 | foreach {key title type keywords body code} $c break set kw [preferred_keyword [lsort $keywords]] if {$kw==""} {error "no keyword for $c"} hd_fragment $kw hd_open_aux c3ref/[convert_keyword_to_filename $kw] hd_header $title hd_enable_main 0 | > | | | | | | | > | 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 | foreach {key title type keywords body code} $c break set kw [preferred_keyword [lsort $keywords]] if {$kw==""} {error "no keyword for $c"} hd_fragment $kw hd_open_aux c3ref/[convert_keyword_to_filename $kw] hd_header $title hd_enable_main 0 hd_putsnl "<!-- keywords: $keywords -->" hd_putsnl {<div class=nosearch>} hd_putsnl {<a href="intro.html"><h2>SQLite C Interface</h2></a>} hd_enable_main 1 eval hd_keywords $keywords hd_putsnl "<h2>$title</h2>" hd_putsnl {</div>} hd_putsnl "<blockquote><pre>" hd_putsnl [string trim $code] hd_putsnl "</pre></blockquote>" if {$supported($kw)==1} { hd_resolve {<p><b>Important:</b> This interface is [experimental] } hd_resolve {and is subject to change without notice.</p>} } regsub -all "\n\n+" $body "</p>\n\n<p>" body set body <p>$body</p> while {[regexp {^(.*?)\[\[([^]]*)\]\](.*)$} $body all fore anchor aft]} { hd_resolve $fore set anchor [string trim $anchor] puts stderr "FRAGMENT: [list [hd_fragname $anchor] $anchor]" hd_fragment [hd_fragname $anchor] $anchor set body $aft } hd_resolve $body show_methods_of_object c:$kw Constructor show_methods_of_object d:$kw Destructor show_methods_of_object m:$kw Method |
︙ | ︙ |
Changes to wrap.tcl.
︙ | ︙ | |||
683 684 685 686 687 688 689 | lappend revglink($y) $x } hd_puts "</ul>" hd_close_main hd_open_main doc_target_crossref.html hd_header {Target Crossreference} $DOC/wrap.tcl | | | | | | | | | | | 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 | lappend revglink($y) $x } hd_puts "</ul>" hd_close_main hd_open_main doc_target_crossref.html hd_header {Target Crossreference} $DOC/wrap.tcl hd_putsnl "<ul>" foreach y [lsort [array names revglink]] { hd_putsnl "<li><a href=\"$y\">$y</a> → [lsort $revglink($y)]</li>" } hd_putsnl "</ul>" hd_close_main hd_open_main doc_backlink_crossref.html hd_header {Backlink Crossreference} $DOC/wrap.tcl hd_puts "<ul>" foreach kw [lsort -nocase [array names backlink]] { hd_puts "<li>$kw →" set prev {} foreach ref [lsort $backlink($kw)] { if {$ref==$prev} continue set prev $ref hd_putsnl " <a href=\"$ref\">$ref</a>" } } hd_putsnl "</ul>" hd_close_main hd_open_main doc_pagelink_crossref.html hd_header {Pagelink Crossreference} $DOC/wrap.tcl hd_puts "<p>Key: Target_Page → pages that have hyperlinks to the target page.</p>" hd_puts "<p>Pages matching (news|changes|releaselog|\[0-9]to\[0-9]|^doc_.*_crossref) are skipped.</p>" hd_puts "<ul>" foreach y [lsort [array names revglink]] { regsub {#.*} $y {} y2 foreach kw [lsort $revglink($y)] { if {[info exists backlink($kw)]} { foreach ref [lsort $backlink($kw)] { regsub {#.*} $ref {} ref2 lappend pagelink($y2) $ref2 } } } } foreach y [lsort [array names pagelink]] { if {[regexp {(news|changes|releaselog|[0-9]to[0-9]|^doc_.*_crossref)} $y]} continue hd_putsnl "<li><a href=\"$y\">$y</a> → " set prev {} foreach ref [lsort $pagelink($y)] { if {$ref==$prev} continue if {$ref==$y} continue if {[regexp {(news|changes|releaselog|[0-9]to[0-9]|^doc_.*_crossref)} $ref]} continue hd_puts "<a href=\"$ref\">$ref</a> " set prev $ref } hd_putsnl "</li>" } hd_puts "</ul>" hd_close_main db eval COMMIT |