f900f98
click here to add a description
click here to add a homepage
YUI Javascript Documentation Tool — Read more
http://yuilibrary.com/projects/yuidoc
This URL has Read+Write access
Fixes #25 - Added -C/--copyright argument to customize the copyright string
@@ -22,6 +22,7 @@ def main():
showprivate=False,
project="Yahoo! UI Library",
version="",
+ copyrighttag="Yahoo! Inc.",
projecturl="http://developer.yahoo.com/yui/",
yuiversion=False,
ydn=False
@@ -41,6 +42,9 @@ def main():
optparser.add_option( "-c", "--crosslink",
action="store", dest="crosslinkdir", type="string",
help="The directory containing json data for other modules to crosslink" )
+ optparser.add_option( "-C", "--copyright",
+ action="store", dest="copyrighttag", type="string",
+ help="The name to use in the copyright line at the bottom of the pages." )
optparser.add_option( "-s", "--showprivate",
action="store_true", dest="showprivate",
help="Should private properties/methods be in the docs?" )
@@ -94,7 +98,8 @@ def main():
opts.project,
opts.version,
opts.projecturl,
- opts.ydn
+ opts.ydn,
+ opts.copyrighttag
)
gen.process()
else:
@@ -30,7 +30,7 @@ class DocGenerator(object):
projectname='Yahoo! UI Library',
version='',
projecturl='http://developer.yahoo.com/yui/',
- ydn=False):
+ ydn=False, copyrighttag='Yahoo! Inc.'):
def _mkdir(newdir):
if os.path.isdir(newdir): pass
@@ -74,6 +74,7 @@ class DocGenerator(object):
self.projectname = projectname
self.projecturl = projecturl
+ self.copyrighttag = copyrighttag
self.ydn = ydn
self.version = version
self.modulename = ""
@@ -111,6 +112,7 @@ class DocGenerator(object):
def assignGlobalProperties(template):
template.projectname = self.projectname
template.projecturl = self.projecturl
+ template.copyrighttag = self.copyrighttag
template.ydn = self.ydn
template.version = self.version
template.modules = self.modules
@@ -692,6 +694,9 @@ def main():
@@ -724,7 +729,8 @@ def main():
options.project,
options.version,
options.projecturl,
- options.ydn
+ options.ydn,
+ options.copyrighttag
generator.process()
@@ -673,7 +673,7 @@
</div>
<div id="ft">
<hr />
- Copyright © $year Yahoo! Inc. All rights reserved.
+ Copyright © $year $copyrighttag All rights reserved.
<script type="text/javascript">
f900f98f900f98f900f98