apidoc::get_doc_url (private)

 apidoc::get_doc_url [ -cmd cmd ] [ -index index ] [ -root root ] \
    [ -host host ]

Defined in packages/acs-api-browser/tcl/acs-api-documentation-procs.tcl

Switches:
-cmd (optional)
-index (optional)
-root (optional)
-host (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 packages/acs-api-browser/www/proc-view.tcl packages/acs-api-browser/ www/proc-view.tcl apidoc::get_doc_url apidoc::get_doc_url packages/acs-api-browser/www/proc-view.tcl->apidoc::get_doc_url packages/acs-api-browser/www/tcl-doc-search.tcl packages/acs-api-browser/ www/tcl-doc-search.tcl packages/acs-api-browser/www/tcl-doc-search.tcl->apidoc::get_doc_url packages/acs-api-browser/www/tcl-proc-view.tcl packages/acs-api-browser/ www/tcl-proc-view.tcl packages/acs-api-browser/www/tcl-proc-view.tcl->apidoc::get_doc_url apidoc::search_on_webindex apidoc::search_on_webindex (private) apidoc::get_doc_url->apidoc::search_on_webindex util::http::get util::http::get (public) apidoc::get_doc_url->util::http::get util_memoize util_memoize (public) apidoc::get_doc_url->util_memoize

Testcases:
No testcase defined.
Source code:

        foreach i $index r $root {
            set result [util_memoize [list ::util::http::get -url $i]]
            set page   [dict get $result page]

            #
            # Since man pages contain often a summary of multiple commands, try
            # abbreviation in case the full name is not found (e.g. man page "nsv"
            # contains "nsv_array", "nsv_set" etc.)
            #
            set url ""
            for {set i [string length $cmd]} {$i > 1} {incr i -1} {
                set proc [string range $cmd 0 $i]
                set url [apidoc::search_on_webindex  -page $page  -root $r  -host $host  -proc $proc]
                if {$url ne ""} {
                    ns_log notice "=== cmd <$cmd> --> $url"
                    return $url
                }
            }
        }
        ns_log notice "=== cmd <$cmd> not found on <$index> root <$root> host <$host>"
        return ""
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: