acs-api-documentation-procs.tcl

  • last updated 4 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
- render www-files with syntax highligher (adding links)

- improve rendering of package-view calls (left column was to small)

- improve validity of HTML markup

- don't treat "@" as API command in syntax highlighter

- remove "api" prefix from functions in the "::apidoc::*" namespace

- mark externally called functions as public

    • -30
    • +30
    ./acs-api-documentation-procs.tcl
  1. … 8 more files in changeset.
-fix bug when first word is shorter than indent spacing

- add special handling for expand operator to tcl code beautifier

- improve spelling in comments and string

  1. … 1 more file in changeset.
- show relevant XQL code instead of all XQL code

- provide links to full XQL code

- fix handling of absolute vs. relative command names

- show SQL code (and Tcl code not defined via apidoc) in sam style

- provide tooltips for Tcl commands, NaviServer/AOLserver commands and

API calls

    • -30
    • +58
    ./acs-api-documentation-procs.tcl
  1. … 1 more file in changeset.
- generalize handling of util_memoize a little

- handle namespaced variables in pretty-printer

- handle regular cases of util_memoize: insert link for cached function

- beautify tcl-pretty-print

- overhaul of prettty-printer:

* use CSS styles instead of hard-coded values

* get rid of FONT tag

* update tcl command list for tcl 8.5

* reactivate links to tcl-commands (of matching version) in pretty

printed procs

- move configuration variables for external documentation servers to

apidoc namespace (reduce redundancy of information)

- keep for aolserver user documentation link as they were before, just

naviserver users see the naviserver documentation

    • -46
    • +111
    ./acs-api-documentation-procs.tcl
- replace global statement by namespace qualifiers

- improve performance of syntax highligher significantly (for large sites with many namespaces/procs by an order of magnitude, taks e.g. 100ms instead of 5secs)

- move private functions into a namespace

- replace nested proc-defintions by namespaced procs

- use thread-persistent dict instead of per-call array for formatting information

    • -842
    • +840
    ./acs-api-documentation-procs.tcl
  1. … 6 more files in changeset.
- strip optional body prefix from nsf::procs

- use $::acs::rootdir rather than [acs_root_dir] or [get_server_root]

- mark deprected functions as such in browser

- flatten nested "lindex" structures

    • -24
    • +36
    ./acs-api-documentation-procs.tcl
  1. … 6 more files in changeset.
- brace expressions to allow for tcl compilation

- use "in" or not in (ni) operator instead of lsearch (for readability and performance)

  1. … 10 more files in changeset.
- don't abbreviate "info" subcommands

- no need for "\" in continuation lines of expression

    • -13
    • +13
    ./acs-api-documentation-procs.tcl
  1. … 1 more file in changeset.
- cleanup, support nsf-procs

  1. … 1 more file in changeset.
- fix bug, when api-browser is called with ad_proc stub (like e.g api-doc/proc-view?proc=form&source_p=1)

- fix quoting of xql files (fixes bug #2302)

- fix syntax

- moderize tcl

    • -15
    • +15
    ./acs-api-documentation-procs.tcl
- modernize tcl

- modernize tcl

- remove unneeded "expr" in side if-expressions

  1. … 13 more files in changeset.
- fix api-browser to allow returnredirect to aolserver documentation

- factor out api_tclcode_to_html from api_tcl_to_html to improve reusability

    • -13
    • +26
    ./acs-api-documentation-procs.tcl
  1. … 1 more file in changeset.
- cleanup: reduce usage of deprecated functions (ad_parameter)

  1. … 8 more files in changeset.
HTML strict cleanup: removed trailing slash of HR and BR tags

  1. … 25 more files in changeset.
ensure that the tcl-proc-view script of /api-doc/ is called (does not work perfectly for ns_* commands either)

ensure that the tcl-proc-view script of /api-doc/ is called (does not work perfectly for ns_* commands either)

changing <br/> to <br> to meet html transitional validation requirements

  1. … 12 more files in changeset.
Normalizing string comparison operations into tcl 8.4 operations, enabling byte-code compilation for expressions and many conditionals

    • -41
    • +41
    ./acs-api-documentation-procs.tcl
  1. … 367 more files in changeset.
add serialization of objects/classes through the link generated by /api-doc/proc-browse