diff --git a/api/index.en.tm b/api/index.en.tm new file mode 100644 index 0000000..70413f2 --- /dev/null +++ b/api/index.en.tm @@ -0,0 +1,27 @@ + + + + +<\body> + + + The API of is built from two different sources. On the + one hand, the module system and on the other the functions exported + using the glue. You can read more on this topic in `` API|../devel/scheme/overview/overview-architecture.en.tm>''. + + + + modules are currently classified in the following families: + + + + + + + \ No newline at end of file diff --git a/api/progs/index.en.tm b/api/progs/index.en.tm deleted file mode 100644 index 50f5e8c..0000000 --- a/api/progs/index.en.tm +++ /dev/null @@ -1,158 +0,0 @@ - - - - -<\body> - - - The API of is built from two different sources. On the - one hand, the module system and on the other the functions exported - using the glue. You can read more on this topic in `` API|../devel/scheme/overview/overview-architecture.en.tm>''. - - - - modules are currently classified in the following families: - - - - <\traverse> - - - Some text here - - - - More text here - - - <\session|scheme|default> - <\input|Scheme] > - (define ts (select (buffer-tree) '(traverse :*))) - - - <\unfolded-io|Scheme] > - (tree-\stree (car ts)) - <|unfolded-io> - (traverse (document (branch "somemodule" "someplace") "Some text here" - (branch "someothermodule" "someotherplace") "More text here")) - - - <\input|Scheme] > - \; - - - <\input|Scheme] > - (define (list-modules) - - \ \ (list-uniq\ - - \ \ \ (apply append (map cdr (ahash-table-\list - tm-defined-module))))) - - - <\input|Scheme] > - (define (list-submodules root) - - \ \ (if (symbol? root)\ - - \ \ \ \ \ \ (list-filter (list-modules) (lambda (x) (== (car x) - root))))) - - \ \ \ - - \ \ \ \ \ \ ; TODO: filter submodules - - ;(list-filter ;WRONG!(list-submodules (cdr root)) - - \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ;(lambda (x) (== - (cr x) root)))))) - - - <\input|Scheme] > - \; - - - <\unfolded-io|Scheme] > - (list-submodules 'graphics) - <|unfolded-io> - ((graphics graphics-single) (graphics graphics-kbd) (graphics - graphics-menu) (graphics graphics-object) (graphics graphics-group) - (graphics graphics-env) (graphics graphics-main) (graphics - graphics-edit) (graphics graphics-drd) (graphics graphics-utils)) - - - <\input|Scheme] > - (define (module-\string module) - - \ \ (if (list? module) - - \ \ \ \ \ \ (string-join (map symbol-\string module) ".") - - \ \ \ \ \ \ (symbol-\string module))) - - - <\input|Scheme] > - (define (module-doc-path module) - - \ \ (string-concatenate - - \ \ \ \ \ (list "api/" - - \ \ \ \ \ \ \ \ \ \ \ (string-join (map symbol-\string module) - "/") - - \ \ \ \ \ \ \ \ \ \ \ ".en.tm"))) - - - <\input|Scheme] > - (define ($module-doc-link module) - - \ \ "Builds a link to the documentation for @module" - - \ \ (let ((pm (module-doc-path module))) - - \ \ \ \ ($link (string-append (url-concretize "$TEXMACS_PATH/doc/") pm) - - \ \ \ \ \ \ (module-\string module)))) - - - <\input|Scheme] > - (define ($doc-module-branches root) - - \ \ `(document - - \ \ \ \ ,(for (m (list-submodules root)) - - \ \ \ \ \ \ `(branch ,(module-\string m) ,($module-doc-link - m))))) - - - <\input|Scheme] > - (define br ($doc-module-branches 'graphics)) - - - <\unfolded-io|Scheme] > - br - <|unfolded-io> - (document #\unspecified\) - - - <\input|Scheme] > - \; - - - - - - - - - - - \ No newline at end of file