Permalink
Browse files

left nav module links corrected to used the cleansed module name [fix…

…es #2173322].
  • Loading branch information...
1 parent c438238 commit f95e78e3aea4d374165da84e8cf34004be9034a7 Adam Moore committed Jul 6, 2009
View
@@ -89,6 +89,10 @@ def _mkdir(newdir):
self.modules = d[MODULES]
self.modulenames = self.modules.keys()
self.modulenames.sort(lambda x,y: cmp(x.lower(), y.lower()))
+ self.cleansedmodulenames = {}
+
+ for mod in self.modulenames:
+ self.cleansedmodulenames[mod] = self.cleanseStr(mod)
self.cleansedmodulename = self.cleanseStr(self.modulename)
@@ -127,6 +131,7 @@ def assignGlobalProperties(template):
template.version = self.version
template.modules = self.modules
template.modulenames = self.modulenames
+ template.cleansedmodulenames = self.cleansedmodulenames
template.modulename = self.modulename
template.moduletitle = self.moduletitle
template.cleansedmodulename = self.cleansedmodulename
View
@@ -583,7 +583,8 @@
#if $moduledef == $modulename
#set $css = "selected"
#end if
- <li class="$css"><a href="module_${moduledef}.html" title="$moduledef">$moduledef</a></li>
+ #set $cleansedname = $cleansedmodulenames[$moduledef]
+ <li class="$css"><a href="${cleansedname}.html" title="$moduledef">$moduledef</a></li>
#end for
</ul>
</div>
View
@@ -20,7 +20,8 @@ yuidoc_home=..
# $src/node \
# $src/queue \
# $src/yui"
-#parser_in="$src"
+
+# parser_in="lang"
parser_in="lang/java lang/python lang/perl lang/ruby"
# The location to output the parser data. This output is a file containing a
View
@@ -1,7 +1,7 @@
using System;
/**
* C# Module Description
-* @module csharp
+* @module lang.csharp
*/
/**
View
@@ -1,6 +1,6 @@
/**
* Test Java Module Description
-* @module javatest
+* @module lang.javatest
*/
import java.util.*;
View
@@ -2,7 +2,7 @@
=begin
/**
* Test Perl File
-* @module perltest
+* @module lang.perltest
*/
=cut
use strict;
View
@@ -1,7 +1,7 @@
<?php
/**
* General Module description for PHPTest
- * @module phptest
+ * @module lang.phptest
*/
View
@@ -3,7 +3,7 @@
=begin
/**
* Module Info for test Ruby File
-* @module rubytest
+* @module lang.rubytest
*/
=end

0 comments on commit f95e78e

Please sign in to comment.