github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

yui / yuidoc

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 82
    • 18
  • Source
  • Commits
  • Network (18)
  • Downloads (51)
  • Graphs
  • Tree: f900f98

click here to add a description

click here to add a homepage

  • Switch Branches (1)
    • master
  • Switch Tags (51)
    • yuidoc-50
    • yuidoc-49
    • yuidoc-48
    • yuidoc-47
    • yuidoc-46
    • yuidoc-45
    • yuidoc-44
    • yuidoc-43
    • yuidoc-42
    • yuidoc-41
    • yuidoc-40
    • yuidoc-39
    • yuidoc-38
    • yuidoc-37
    • yuidoc-36
    • yuidoc-35
    • yuidoc-34
    • yuidoc-33
    • yuidoc-32
    • yuidoc-31
    • yuidoc-30
    • yuidoc-29
    • yuidoc-28
    • yuidoc-27
    • yuidoc-26
    • yuidoc-25
    • yuidoc-24
    • yuidoc-23
    • yuidoc-22
    • yuidoc-21
    • yuidoc-20
    • yuidoc-19
    • yuidoc-18
    • yuidoc-17
    • yuidoc-16
    • yuidoc-15
    • yuidoc-14
    • yuidoc-13
    • yuidoc-12
    • yuidoc-11
    • yuidoc-10
    • yuidoc-9
    • yuidoc-8
    • yuidoc-7
    • yuidoc-6
    • yuidoc-5
    • yuidoc-4
    • yuidoc-3
    • yuidoc-2
    • ${label}
    • 1.0.0b1
  • Comments
  • Contributors
Sending Request…

YUI Javascript Documentation Tool — Read more

  Cancel

http://yuilibrary.com/projects/yuidoc

  Cancel
  • HTTP
  • Git Read-Only

This URL has Read+Write access

Fixes #25 - Added -C/--copyright argument to customize the copyright string
davglass (author)
Mon Jun 22 10:51:53 -0700 2009
commit  f900f98510ef0f16e8bc
tree    e1075e6bc24f597e539f
parent  eed0731584c02faa35ce
M bin/yuidoc.py 7 ••••
M bin/yuidoc_generate.py 10 •••••
M template/main.tmpl 2 ••
Txt bin/yuidoc.py
  • View file @ f900f98
... ...
@@ -22,6 +22,7 @@ def main():
22 22
                            showprivate=False,
23 23
                            project="Yahoo! UI Library",
24 24
                            version="",
  25
+                           copyrighttag="Yahoo! Inc.",
25 26
                            projecturl="http://developer.yahoo.com/yui/",
26 27
                            yuiversion=False,
27 28
                            ydn=False
... ...
@@ -41,6 +42,9 @@ def main():
41 42
     optparser.add_option( "-c", "--crosslink",
42 43
         action="store", dest="crosslinkdir", type="string",
43 44
         help="The directory containing json data for other modules to crosslink" )
  45
+    optparser.add_option( "-C", "--copyright",
  46
+        action="store", dest="copyrighttag", type="string",
  47
+        help="The name to use in the copyright line at the bottom of the pages." )
44 48
     optparser.add_option( "-s", "--showprivate",
45 49
         action="store_true", dest="showprivate",
46 50
         help="Should private properties/methods be in the docs?" )
... ...
@@ -94,7 +98,8 @@ def main():
94 98
                                opts.project,
95 99
                                opts.version,
96 100
                                opts.projecturl,
97  
-                               opts.ydn
  101
+                               opts.ydn,
  102
+                               opts.copyrighttag
98 103
                                )
99 104
         gen.process()
100 105
     else:
Txt bin/yuidoc_generate.py
  • View file @ f900f98
... ...
@@ -30,7 +30,7 @@ class DocGenerator(object):
30 30
                  projectname='Yahoo! UI Library', 
31 31
                  version='', 
32 32
                  projecturl='http://developer.yahoo.com/yui/', 
33  
-                 ydn=False):
  33
+                 ydn=False, copyrighttag='Yahoo! Inc.'):
34 34
 
35 35
         def _mkdir(newdir):
36 36
             if os.path.isdir(newdir): pass
... ...
@@ -74,6 +74,7 @@ class DocGenerator(object):
74 74
 
75 75
         self.projectname = projectname
76 76
         self.projecturl = projecturl
  77
+        self.copyrighttag = copyrighttag
77 78
         self.ydn = ydn
78 79
         self.version = version 
79 80
         self.modulename  = ""
... ...
@@ -111,6 +112,7 @@ class DocGenerator(object):
111 112
         def assignGlobalProperties(template):
112 113
             template.projectname  = self.projectname
113 114
             template.projecturl   = self.projecturl
  115
+            template.copyrighttag = self.copyrighttag
114 116
             template.ydn          = self.ydn
115 117
             template.version      = self.version
116 118
             template.modules      = self.modules
... ...
@@ -692,6 +694,9 @@ def main():
692 694
     optparser.add_option( "-c", "--crosslink",
693 695
         action="store", dest="crosslinkdir", type="string",
694 696
         help="The directory containing json data for other modules to crosslink" )
  697
+    optparser.add_option( "-C", "--copyright",
  698
+        action="store", dest="copyrighttag", type="string",
  699
+        help="The name to use in the copyright line at the bottom of the pages." )        
695 700
     optparser.add_option( "-s", "--showprivate",
696 701
         action="store_true", dest="showprivate",
697 702
         help="Should private properties/methods be in the docs?" )
... ...
@@ -724,7 +729,8 @@ def main():
724 729
                                options.project,
725 730
                                options.version,
726 731
                                options.projecturl,
727  
-                               options.ydn
  732
+                               options.ydn,
  733
+                               options.copyrighttag
728 734
                                )
729 735
         generator.process()
730 736
     else:
Txt template/main.tmpl
  • View file @ f900f98
... ...
@@ -673,7 +673,7 @@
673 673
   </div>
674 674
   <div id="ft">
675 675
         <hr />
676  
-        Copyright &copy; $year Yahoo! Inc. All rights reserved.
  676
+        Copyright &copy; $year $copyrighttag All rights reserved.
677 677
   </div>
678 678
 </div>
679 679
 <script type="text/javascript">

0 notes on commit f900f98

Please log in to comment.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server
  • English
  • Català
  • Čeština
  • Deutsch
  • Español
  • Français
  • Hrvatski
  • Indonesia
  • Italiano
  • 日本語
  • Nederlands
  • Norsk
  • Polski
  • Português (BR)
  • Српски
  • Svenska
  • 中文