Index: Makefile.in =================================================================== diff -u -r444fa56b72c6d35bd3cbbe46a44b12a4ea33088f -r187fbd20a453ae9d73e9b48f88b8d6a8c79685c2 --- Makefile.in (.../Makefile.in) (revision 444fa56b72c6d35bd3cbbe46a44b12a4ea33088f) +++ Makefile.in (.../Makefile.in) (revision 187fbd20a453ae9d73e9b48f88b8d6a8c79685c2) @@ -297,7 +297,7 @@ $(xotcl_target_doc_dir)/XOTcl-langRef/index.html: library/xotcl/doc/langRef.xotcl $(TCLSH) $(src_app_dir_native)/utils/nxdoc -doctitle XOTcl-langRef \ -docurl "http://next-scripting.org/" -docversion $(PACKAGE_VERSION) \ - -outdir $(xotcl_target_doc_dir) "@package:XOTcl-langRef" + -outdir $(xotcl_target_doc_dir) -frontend xodoc -- package:XOTcl-langRef yuidoc-dev: NXDFLAGS := -validation yuidoc-dev: yuidoc @@ -325,7 +325,8 @@ $(xotcl_target_doc_dir)/XOTcl-langRef.xowiki : library/xotcl/doc/langRef.xotcl $(TCLSH) $(src_app_dir_native)/utils/nxdoc -doctitle XOTcl-langRef \ -docurl "http://next-scripting.org/" -docversion $(PACKAGE_VERSION) \ - -outdir $(target_doc_dir) -format xowiki -layout many-to-1 "@package:XOTcl-langRef" + -outdir $(target_doc_dir) -format xowiki -layout many-to-1 \ + -frontend xodoc -- package:XOTcl-langRef xowiki-dev: NXDFLAGS := -validation xowiki-dev: xowiki Index: TODO =================================================================== diff -u -r61a1c5c9e11a0277be442d98572bae6a3162cf1f -r187fbd20a453ae9d73e9b48f88b8d6a8c79685c2 --- TODO (.../TODO) (revision 61a1c5c9e11a0277be442d98572bae6a3162cf1f) +++ TODO (.../TODO) (revision 187fbd20a453ae9d73e9b48f88b8d6a8c79685c2) @@ -3548,7 +3548,6 @@ - nsf.c: make ":" a full equivalent vor nsf::my (i.e. support -local, -system and -intrinsic) - extend regression test - nsf.c: - reform of argument parse. new parser uses NsfFlagObjType to reuse earlier parse resuslts. Improved speed for @@ -3606,8 +3605,39 @@ - nx.tcl: added handling of parameter option "noleadingdash" in objectParameterSlots +- doc: + * integrate ::nx::doc::make with Makefile.in + (provide shell calls and, targets and dependencies) + * provide a different flag for the generation of the documentation + (-develop, .... or -final) to show/hide it. + SS: By "it", you refer to the glossary? + * separate entries for methods and hooks (can't be called if not defined)? + hooks: + * recreate should only be called internally, similarly "init" etc. + * __unknown + unknown is a hook for Object but a method for Class + +- strange refcounting bug in 8.6b2 bug-is-86.tcl + where 2 refcounted items are not freed (value:class, + issued from nx.tcl around line 120). Compile with DEBUG86B2 + for more info +================================================= +# -*- Tcl -*- +package req nx +package require nx::test + +nx::Test case ensemble-next-with-colon-prefix { + nx::Object create obj { + :public method foo {} { return [:info class] } + #:public method bar {} { return [:info] } + :method info {} {;} + } + ? {obj foo} {wrong # args: should be ":info"} +} +================================================= + TODO: - warnings for "numeric" names for args and nonpos-args? - special handling of values looking like nonpos-flags, @@ -3635,27 +3665,6 @@ o1 info children ?-type class? ?pattern? - - doc/langRef2.xotcl vs library/xotcl/doc/langRef.xotcl - - - strange refcounting bug in 8.6b2 bug-is-86.tcl - where 2 refcounted items are not freed (value:class, - issued from nx.tcl around line 120). Compile with DEBUG86B2 - for more info -================================================= -# -*- Tcl -*- -package req nx -package require nx::test - -nx::Test case ensemble-next-with-colon-prefix { - nx::Object create obj { - :public method foo {} { return [:info class] } - #:public method bar {} { return [:info] } - :method info {} {;} - } - ? {obj foo} {wrong # args: should be ":info"} -} -================================================= - - from parameters.test # TODO: currently, we need two converters (or a converter on nx::Slot), since # variable uses nsf::is and attribute uses the slot obj. method variable should @@ -3756,27 +3765,26 @@ - default/initcmd/subsdefault: can we simplify these? or add messages for conflicting usages. +- Makefile/::nsf::config: Integrate git meta-data (commit hash, branch/tag labels) + - doc: - * integrate ::nx::doc::make with Makefile.in - (provide shell calls and, targets and dependencies) - NextScriptingLanguage/index.html: + * @package.@require(): really needed? - * glossary entries in nsf.nxd should be sorted (in the source) - ...... Maybe, a single glossary.nxd file? - SS: Right now, the name of the nxd file derives from the the - script name. I mark this as TODO for the future. + * @package.@version: fix validation mode ... expected/actual + version numbers are not compared ... - * provide a different flag for the generation of the documentation - (-develop, .... or -final) to show/hide it. - SS: By "it", you refer to the glossary? + * NextScriptingLanguage/index.html: glossary entries in nsf.nxd + should be sorted (in the source) ...... Maybe, a single glossary.nxd + file? SS: Right now, the name of the nxd file derives from the the + script name. I mark this as TODO for the future. - * separate entries for methods and hooks (can't be called if not defined)? - hooks: - * recreate should only be called internally, similarly "init" etc. - * __unknown - unknown is a hook for Object but a method for Class + * doc/langRef2.xotcl vs library/xotcl/doc/langRef.xotcl + * @author: how to visualise the authorship in the generated markup + (yuidoc)? + + - do we need contains in nx? - nsf::proc Index: apps/utils/nxdoc =================================================================== diff -u -redea1a9c44f4c685e45e59e7f8864ae11d84ff42 -r187fbd20a453ae9d73e9b48f88b8d6a8c79685c2 --- apps/utils/nxdoc (.../nxdoc) (revision edea1a9c44f4c685e45e59e7f8864ae11d84ff42) +++ apps/utils/nxdoc (.../nxdoc) (revision 187fbd20a453ae9d73e9b48f88b8d6a8c79685c2) @@ -25,13 +25,15 @@ :property {validation:switch false} # - # input + # frontend # + :property {frontend dc} :property includes - :property {excludes ""} + :property excludes :property indexfiles:alias :protected property sources:1..* { + set :incremental 1 set :config false } @@ -44,7 +46,11 @@ } :protected method ... args { - :sources [concat {*}[split $args :]] + foreach i $args { + set idx [string first : $i] + if {$idx == -1} continue; + dict lappend :sources [string range $i 0 [expr {$idx - 1}]] [string range $i [expr {$idx + 1}] end] + } } :protected method indexfiles {paths} { @@ -104,24 +110,20 @@ } :protected method init {} { - set prj [@project new \ + + set prj [@project newFromSources \ + -frontend ${:frontend} \ + {*}[expr {[info exists :includes]?[list -include ${:includes}]:""}] \ + {*}[expr {[info exists :excludes]?[list -exclude ${:excludes}]:""}] \ + ${:sources} \ -name ${:doctitle} \ -url ${:docurl} \ -version ${:docversion} \ - -sources ${:sources}] + {*}[expr {${:validation}?"-mixin ::nx::doc::@project::Validator":""}]] - processor process \ - -sandboxed \ - {*}[expr {${:validation}?"-validate":""}] \ - {*}[expr {[info exists :includes]?"-include [list ${:includes}]":""}] \ - $prj + - make doc \ - -format ${:format} \ - $prj \ - -theme ${:theme} \ - -layout ${:layout} \ - -outdir ${:outdir} + $prj write -format ${:format} -theme ${:theme} -layout ${:layout} -outdir ${:outdir} } } namespace export CLI Index: library/lib/nxdoc-assets/@project.html.asciidoc =================================================================== diff -u -rfa7635cbfe2309b8e6282e2c7925fa2617b061aa -r187fbd20a453ae9d73e9b48f88b8d6a8c79685c2 --- library/lib/nxdoc-assets/@project.html.asciidoc (.../@project.html.asciidoc) (revision fa7635cbfe2309b8e6282e2c7925fa2617b061aa) +++ library/lib/nxdoc-assets/@project.html.asciidoc (.../@project.html.asciidoc) (revision 187fbd20a453ae9d73e9b48f88b8d6a8c79685c2) @@ -78,7 +78,7 @@ [:?objvar $entry refs { [:? {[$entry eval [concat dict exists \${:refs} [current]]]} {

- [:!let refs [sort_by_value [$entry eval [concat dict get \${:refs} [current]]]]] + [:!let refs [sortByValue [$entry eval [concat dict get \${:refs} [current]]]]] [:for src [dict keys $refs] { [$src make_link [current]] Index: library/lib/nxdoc-assets/@project.html.yuidoc =================================================================== diff -u -r0db47dd8ab885de3deebf56293bf8e052e1f0965 -r187fbd20a453ae9d73e9b48f88b8d6a8c79685c2 --- library/lib/nxdoc-assets/@project.html.yuidoc (.../@project.html.yuidoc) (revision 0db47dd8ab885de3deebf56293bf8e052e1f0965) +++ library/lib/nxdoc-assets/@project.html.yuidoc (.../@project.html.yuidoc) (revision 187fbd20a453ae9d73e9b48f88b8d6a8c79685c2) @@ -10,6 +10,13 @@ + + Index: library/lib/nxdoc-assets/body.html.yuidoc =================================================================== diff -u -r0db47dd8ab885de3deebf56293bf8e052e1f0965 -r187fbd20a453ae9d73e9b48f88b8d6a8c79685c2 --- library/lib/nxdoc-assets/body.html.yuidoc (.../body.html.yuidoc) (revision 0db47dd8ab885de3deebf56293bf8e052e1f0965) +++ library/lib/nxdoc-assets/body.html.yuidoc (.../body.html.yuidoc) (revision 187fbd20a453ae9d73e9b48f88b8d6a8c79685c2) @@ -1,17 +1,28 @@ -

+
- -
-
- Search: -
-   -
-
-
+ +
+ +
+
+
+ Search: +
+   +
+
+
+
+
@@ -24,13 +35,6 @@ [$project version] }] - [$project name] - [:? {[:info has type ::nx::doc::@package]} { - > ${:name} - } ? {[:info has type ::nx::doc::@class]} { - > [:?var :partof {[${:partof} name] >}] ${:name} - }] -
[:include leftbar] @@ -53,10 +57,18 @@
-
- Copyright © [clock format [clock seconds] -format "%Y"] -
-
- Index: library/lib/nxdoc-assets/glossary.html.yuidoc =================================================================== diff -u -rfa7635cbfe2309b8e6282e2c7925fa2617b061aa -r187fbd20a453ae9d73e9b48f88b8d6a8c79685c2 --- library/lib/nxdoc-assets/glossary.html.yuidoc (.../glossary.html.yuidoc) (revision fa7635cbfe2309b8e6282e2c7925fa2617b061aa) +++ library/lib/nxdoc-assets/glossary.html.yuidoc (.../glossary.html.yuidoc) (revision 187fbd20a453ae9d73e9b48f88b8d6a8c79685c2) @@ -25,7 +25,7 @@
$ddesc [:?objvar $entry refs { [:? {[$entry eval [concat dict exists \${:refs} [current]]]} { - [:!let refs [sort_by_value [$entry eval [concat dict get \${:refs} [current]]]]] + [:!let refs [sortByValue [$entry eval [concat dict get \${:refs} [current]]]]]
Index: library/lib/nxdoc-assets/leftbar.html.yuidoc =================================================================== diff -u -rfa7635cbfe2309b8e6282e2c7925fa2617b061aa -r187fbd20a453ae9d73e9b48f88b8d6a8c79685c2 --- library/lib/nxdoc-assets/leftbar.html.yuidoc (.../leftbar.html.yuidoc) (revision fa7635cbfe2309b8e6282e2c7925fa2617b061aa) +++ library/lib/nxdoc-assets/leftbar.html.yuidoc (.../leftbar.html.yuidoc) (revision 187fbd20a453ae9d73e9b48f88b8d6a8c79685c2) @@ -1,5 +1,4 @@ -[:!let self_owned_parts [:navigatable_parts]] -[:!let owned_parts [dict merge $project_entities $self_owned_parts]] +[:!let owned_parts [:navigatable_parts $project_entities]]