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

yui / yuidoc

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 74
    • 15
  • Source
  • Commits
  • Network (15)
  • Downloads (50)
  • Graphs
  • Tree: 106e19a

click here to add a description

click here to add a homepage

  • Switch Branches (1)
    • master
  • Switch Tags (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
Sending Request…

YUI Javascript Documentation Tool — Read more

  Cancel

http://yuilibrary.com/projects/yuidoc

  Cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Fixed issue with older version of python
davglass (author)
Mon Jun 22 11:48:21 -0700 2009
commit  106e19aada2ac2747ba6bb44b22fc479bc7e17de
tree    bde348acf4879ff7f572e80e01bdac17041d8dd6
parent  6920077dae7f5e5b1b58cb88167471248d01dff3
M bin/yuidoc_highlight.py 8 ••••
M bin/yuidoc_parse.py 8 ••••
0
bin/yuidoc_highlight.py
...
70
71
72
73
74
 
 
 
 
75
76
77
...
81
82
83
84
 
85
86
87
...
70
71
72
 
 
73
74
75
76
77
78
79
...
83
84
85
 
86
87
88
89
0
@@ -70,8 +70,10 @@ class DocHighlighter(object):
0
                 fullname = os.path.join(path, i)
0
                 if os.path.isdir(fullname):
0
                     subdirs.append(fullname)
0
-                elif i.lower().endswith(self.ext_check):
0
-                    highlightFile(path, i)
0
+                else:
0
+                    for ext in self.ext_check:
0
+                        if i.lower().endswith(ext):
0
+                            highlightFile(path, i)
0
 
0
             for i in subdirs:
0
                 highlightDir(i)
0
@@ -81,7 +83,7 @@ class DocHighlighter(object):
0
         _mkdir(self.outputdir)
0
         self.ext = ext
0
         self.currentExt = ''
0
-        self.ext_check = tuple(ext.split(','))
0
+        self.ext_check = ext.split(',')
0
         self.newext = newext
0
 
0
         log.info("-------------------------------------------------------")
0
bin/yuidoc_parse.py
...
64
65
66
67
68
 
 
 
 
69
70
71
...
108
109
110
111
 
112
113
114
...
64
65
66
 
 
67
68
69
70
71
72
73
...
110
111
112
 
113
114
115
116
0
@@ -64,8 +64,10 @@ class DocParser(object):
0
                         fullname = os.path.join(path, i)
0
                         if os.path.isdir(fullname):
0
                             subdirs.append(fullname)
0
-                        elif i.lower().endswith(self.extension_check):
0
-                            dircontent += parseFile(path, i)
0
+                        else:
0
+                            for ext in self.extension_check:
0
+                                if i.lower().endswith(ext):
0
+                                    dircontent += parseFile(path, i)
0
 
0
             for i in subdirs:
0
                 dircontent += parseDir(i)
0
@@ -108,7 +110,7 @@ class DocParser(object):
0
         self.outputdir = os.path.abspath(outputdir)
0
         _mkdir(self.outputdir)
0
         self.extension = extension
0
-        self.extension_check = tuple(extension.split(','))
0
+        self.extension_check = extension.split(',')
0
 
0
         self.script=""
0
         self.subModName = False

Comments

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