Skip to content

Commit

Permalink
submodules don't have a landing page. links to submodules go to a cla…
Browse files Browse the repository at this point in the history
…ss in the submodule. Now, if there are no classes in the submodule there is no link.
  • Loading branch information
Adam Moore committed Jun 19, 2009
1 parent 0280961 commit 257b6d7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions bin/yuidoc_parse.py
Expand Up @@ -563,7 +563,10 @@ def parseModule(tokenMap):
target, tokenMap = parseModule(tokenMap) target, tokenMap = parseModule(tokenMap)


if self.subModName: if self.subModName:
# provides a place to link to on the module landing page
self.data[MODULES][self.currentModule][SUBDATA][self.subModName][NAME] = longName self.data[MODULES][self.currentModule][SUBDATA][self.subModName][NAME] = longName

# this was overwriting the submodule description
# if DESCRIPTION in tokenMap: # if DESCRIPTION in tokenMap:
# d = tokenMap[DESCRIPTION][0] # d = tokenMap[DESCRIPTION][0]
# try: # try:
Expand Down
4 changes: 4 additions & 0 deletions template/main.tmpl
Expand Up @@ -559,7 +559,11 @@
<h4>Submodules:</h4> <h4>Submodules:</h4>
<dl> <dl>
#for $info in $submodules #for $info in $submodules
#if $subdata[$info].name
<dt><code><a href="${$subdata[$info].name}.html" title="$info">$info</a></code></dt> <dt><code><a href="${$subdata[$info].name}.html" title="$info">$info</a></code></dt>
#else
<dt><code>$info</code></dt>
#end if
<dd>$subdata[$info].description</dd> <dd>$subdata[$info].description</dd>
#end for #end for
</dl> </dl>
Expand Down
2 changes: 1 addition & 1 deletion test/event.sh
Expand Up @@ -9,7 +9,7 @@ yuidoc_home=..


src=~/src/yui3/src src=~/src/yui3/src


parser_in="$src/yui/js $src/event-custom/js $src/event/js $src/dump/js $src/substitute/js" parser_in="$src/yui/js $src/event-custom/js $src/event/js $src/dump/js $src/substitute/js $src/anim/js $src/collection/js"


# The location to output the parser data. This output is a file containing a # The location to output the parser data. This output is a file containing a
# json string, and copies of the parsed files. # json string, and copies of the parsed files.
Expand Down

0 comments on commit 257b6d7

Please sign in to comment.