acs-api-documentation-procs.tcl

  • last updated 47 mins ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Prefer 'namespace which' over 'info commands', as it is faster (on local tests, around 2x) and returns a single value. Many thanks to Nathan Coulter.

    • -18
    • +21
    ./acs-api-documentation-procs.tcl
  1. … 58 more files in changeset.
Fix typo in proc doc

Add 'case' to the list of Tcl keywords. The command is obsolete, deprecated, not documented anymore and slated for removal in Tcl 9.0, but still exists and makes the api_doc confused and unhappy.

Avoid looking for proc names in comments after a semicolon or an opening curly brace, so common words in comments are not included in the api-doc as calls to procs with the same name

Add 'exit' to the list of Tcl keywords, so it is properly managed by the api-doc logic

Add 'unknown' to the list of Tcl keywords, so it is properly managed by the api-doc logic

Include '-' as a valid character in a proc name in acs-api-browser's 'length_proc'. Fixes the 'acs_api_browser_apidoc_tclcode_to_html' test case.

fix for issue #3427

new funcion: util::inline_svg_from_dot: refactored version from private api-procs function.

use new function in api-doc

CVS: ----------------------------------------------------------------------

    • -56
    • +10
    ./acs-api-documentation-procs.tcl
  1. … 3 more files in changeset.
Allow dots in the proc name when building the doc HTML to accomodate e.g. for procs such as "system.methodHelp"

Allow numbers in the first part of a proc name when counting its length in a way that apidoc::tclcode_to_html won't generate false positives when e.g. an XoTcl object called "9" exists and a word contains the character "9"

  1. … 1 more file in changeset.
New test for apidoc::format_see, fix doc according to its real behavior

  1. … 1 more file in changeset.
New test for apidoc::format_author, improve documentation

  1. … 1 more file in changeset.
Deprecate broken proc api_type_documentation and remove its leftover usages, in a script that is also broken

  1. … 3 more files in changeset.
Deprecated broken and unused api_proc_link

New test for api_proc_documentation, which brought to deprecation of the -format flag, because it has no effect

  1. … 1 more file in changeset.
fix lookup of links for external commands: avoid lookup of page-realtive links (starting with "#")

replace hardcoded /tmp by API function [ad_tmpdir]

  1. … 10 more files in changeset.
update predefined Tcl commands for pretty-printing Tcl code

include themed versions of files in the "variants" display (just for the current theme)

    • -14
    • +22
    ./acs-api-documentation-procs.tcl
change references from "http://*tcl.tk/" to "https://*tcl-lang.org/"

  1. … 5 more files in changeset.
improve spelling

  1. … 21 more files in changeset.
Replace ad_decode idiom

cache generated svg code on disk

    • -16
    • +30
    ./acs-api-documentation-procs.tcl
improve log messages

  1. … 1 more file in changeset.
Fix typo

whitespace changes

  1. … 1 more file in changeset.
improve robustness of API browser when trying to browse non-existing objects

  1. … 1 more file in changeset.
remove comma before that

  1. … 1 more file in changeset.
whitespace changes