Index: library/lib/doc-assets/api.css =================================================================== diff -u -rcda7278a163020684b886f41aec71c90a2c39535 -r783648c4c7132adc4a447faa69d6e4e12b621c46 --- library/lib/doc-assets/api.css (.../api.css) (revision cda7278a163020684b886f41aec71c90a2c39535) +++ library/lib/doc-assets/api.css (.../api.css) (revision 783648c4c7132adc4a447faa69d6e4e12b621c46) @@ -7,7 +7,7 @@ a:visited { color: #003399;} #doc3 #hd { margin-bottom:1em; position: relative; zoom: 1; } -#doc3 #hd h1 { color: #545454; font-size: 170%; padding: 0px 0 8px 150px; background: url(yui.png) 15px 9px no-repeat; height: 60px; font-weight: bold; } +#doc3 #hd h1 { color: #545454; font-size: 170%; padding: 0px 0 8px 180px; background: url(nx.png) 15px 9px no-repeat; height: 60px; font-weight: bold; } #doc3 #hd h1 a { position: relative; top: 14px; } #doc3 #hd a { text-decoration: none; color: black; } #doc3 #hd h3 { Index: library/lib/doc-assets/entity.html.tmpl =================================================================== diff -u -r2c490ff6c40c296798a08edce62d5cea6cb968ea -r783648c4c7132adc4a447faa69d6e4e12b621c46 --- library/lib/doc-assets/entity.html.tmpl (.../entity.html.tmpl) (revision 2c490ff6c40c296798a08edce62d5cea6cb968ea) +++ library/lib/doc-assets/entity.html.tmpl (.../entity.html.tmpl) (revision 783648c4c7132adc4a447faa69d6e4e12b621c46) @@ -19,7 +19,13 @@

[$project name]

-

${:name}  version

+

${:name}  + [:? {[:info is type ::nx::doc::@package]} { + [:?var :@version {${:@version}} ] + } - { + [$project version] + }] +

[$project name] [:? {[:info is type ::nx::doc::@package]} { > ${:name} Index: library/lib/doc-assets/yui.png =================================================================== diff -u -rcda7278a163020684b886f41aec71c90a2c39535 -r783648c4c7132adc4a447faa69d6e4e12b621c46 Binary files differ Index: library/lib/doc-tools.xotcl =================================================================== diff -u -r105aacd0f214a2247261b0c4d5b9d16ac4c6fed5 -r783648c4c7132adc4a447faa69d6e4e12b621c46 --- library/lib/doc-tools.xotcl (.../doc-tools.xotcl) (revision 105aacd0f214a2247261b0c4d5b9d16ac4c6fed5) +++ library/lib/doc-tools.xotcl (.../doc-tools.xotcl) (revision 783648c4c7132adc4a447faa69d6e4e12b621c46) @@ -21,6 +21,7 @@ # are available). # # @require next +# @version 0.1 package provide next::doc 0.1 package require next @@ -424,6 +425,7 @@ :attribute url :attribute license :attribute creationdate + :attribute {version ""} } # @@ -446,6 +448,7 @@ EntityClass create @package -superclass Entity { :attribute @require -slotclass ::nx::doc::PartAttribute + :attribute @version -slotclass ::nx::doc::PartAttribute } EntityClass create @command -superclass Entity { @@ -1235,7 +1238,7 @@ {-project {url http://www.next-scripting.org/ name Next}} } { array set prj $project - set project [@project new -name $prj(name) -url $prj(url)] + set project [@project new -name $prj(name) -url $prj(url) -version $prj(version)] Entity mixin add $renderer set ext [lindex [split [file tail $tmpl] .] end-1] set entities [concat [sorted [@package info instances] name] \ Index: tests/doc.xotcl =================================================================== diff -u -r5dcd186af36657d206cc32709e40b8d681ce1d0e -r783648c4c7132adc4a447faa69d6e4e12b621c46 --- tests/doc.xotcl (.../doc.xotcl) (revision 5dcd186af36657d206cc32709e40b8d681ce1d0e) +++ tests/doc.xotcl (.../doc.xotcl) (revision 783648c4c7132adc4a447faa69d6e4e12b621c46) @@ -520,7 +520,7 @@ $i eval [list ::nx::doc::make doc \ -renderer ::nx::doc::TemplateData \ -outdir /tmp \ - -project {name nextdoc url http://www.next-scripting.org/}] + -project {name nextdoc url http://www.next-scripting.org/ version 0.1d}] interp delete $i }