<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,7 +1,7 @@
 #!/usr/bin/env ruby
 require 'rubygems'
 require 'oyster'
-require 'pdoc'
+require File.dirname(__FILE__) + '/../lib/pdoc'
 
 spec = Oyster.spec do
   name &quot;pdoc -- Inline comment parser and JavaScript documentation generator&quot;</diff>
      <filename>bin/pdoc</filename>
    </modified>
    <modified>
      <diff>@@ -23,13 +23,15 @@ module PDoc
           FileUtils.mkdir_p(path)
           Dir.chdir(path)
           DocPage.new(&quot;index&quot;, &quot;layout&quot;, variables).render_to_file(&quot;index.html&quot;)
+          
           root.sections.each do |section|
             @depth = 0
             mkdir(section.name)
             render_template('section', &quot;#{section.id}.html&quot;, {:doc_instance =&gt; section})
-            section.children.each{ |d| build_tree(d) }
           end
           
+          root.namespaces.each(&amp;method(:render_namespace))
+          
           copy_assets
           
           dest = File.join(&quot;javascripts&quot;, &quot;item_index.js&quot;)
@@ -47,16 +49,11 @@ module PDoc
           FileUtils.cp_r(Dir.glob(File.join(@templates_directory, &quot;assets&quot;, &quot;**&quot;)), '.')
         end
         
-        def build_tree(object)
-          @depth += 1
-          unless object.children.empty?
-            mkdir(File.join(path(object), object.id))
-            object.children.each { |d| build_tree(d) }
-          end
-          template = find_template_name(object)
-          dest = File.join(path(object), &quot;#{object.id}.html&quot;)
+        def render_namespace(object)
+          template, path = find_template_name(object), path(object)
+          @depth = path.size
+          dest = File.join(path, &quot;#{object.id}.html&quot;)
           render_template(template, dest, {:doc_instance =&gt; object})
-          @depth -= 1
         end
         
         private</diff>
      <filename>lib/pdoc/generators/html/website.rb</filename>
    </modified>
    <modified>
      <diff>@@ -561,7 +561,9 @@ Ajax.PeriodicalUpdater = Klass.create(Ajax.Base, {
   * a foo bar baz
   **/
 
-
+/** section: ajax
+ * class Ajax.Namespace.Manager
+ **/
 
 /** section: lang
  * mixin Enumerable</diff>
      <filename>test/fixtures/ajax.js</filename>
    </modified>
    <modified>
      <diff>@@ -19,7 +19,7 @@ class DocumentationTest &lt; Test::Unit::TestCase
     klasses).each do |method|
       assert_respond_to fixtures, method
     end
-    assert_equal 32, fixtures.size
+    assert_equal 33, fixtures.size
   end
   
   def test_globals
@@ -27,7 +27,7 @@ class DocumentationTest &lt; Test::Unit::TestCase
   end
   
   def test_descendants
-    assert_equal %w[$ $$ Ajax Base Element Enumerable Request Responders String Toggle],
+    assert_equal %w[$ $$ Ajax Base Element Enumerable Manager Request Responders String Toggle],
       fixtures.descendants.map(&amp;:name).sort
   end
   
@@ -39,7 +39,7 @@ class DocumentationTest &lt; Test::Unit::TestCase
     assert_equal %w[ajax dom lang],                fixtures.sections.map(&amp;:name)
     assert_equal [Section, Section, Section],      fixtures.sections.map(&amp;:class)
     assert_equal %w[Ajax],                         fixtures.sections.first.children.map(&amp;:name)
-    assert_equal %w[Ajax Base Request Responders], fixtures.sections.first.descendants.map(&amp;:name)
+    assert_equal %w[Ajax Base Manager Request Responders], fixtures.sections.first.descendants.map(&amp;:name)
   end
   
   def test_find_by_name</diff>
      <filename>test/unit/parser/documentation_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a4609a72bd7d8c0c176ac4840f692dbe307eaeeb</id>
    </parent>
  </parents>
  <author>
    <name>James Coglan</name>
    <email>jcoglan@googlemail.com</email>
  </author>
  <url>http://github.com/tobie/pdoc/commit/fb90e36b0c114de35f24722baa7fa2b501540c62</url>
  <id>fb90e36b0c114de35f24722baa7fa2b501540c62</id>
  <committed-date>2009-03-17T07:02:29-07:00</committed-date>
  <authored-date>2009-03-17T07:02:29-07:00</authored-date>
  <message>Make sure the Website generator makes pages for all declared classes, including ones whose parent object is not documentated. Need to fix navigation template to match.</message>
  <tree>ab655397a5eb3322df11ae0206c58da1a74b87a3</tree>
  <committer>
    <name>James Coglan</name>
    <email>jcoglan@googlemail.com</email>
  </committer>
</commit>
