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: 8829c57

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 utf related highlighter crash [fixes #22]
apm (author)
Wed Jun 24 11:43:25 -0700 2009
commit  8829c572fd8238e3621b1925c76665419f9b48b9
tree    7a2e1e815dcd1b38403193bf4773a14247e98e07
parent  0a5fd47744c8d8665b5917045eb0c87e90621f5b
M bin/yuidoc_highlight.py 4 ••••
A test/dd.sh 30 •••••
A test/intl.sh 30 •••••
A test/intl/intl.js 33 •••••
A test/json.sh 30 •••••
0
bin/yuidoc_highlight.py
...
17
18
19
 
20
21
22
...
51
52
53
54
 
 
55
56
57
...
17
18
19
20
21
22
23
...
52
53
54
 
55
56
57
58
59
0
@@ -17,6 +17,7 @@ from pygments import highlight
0
 from pygments.lexers import JavascriptLexer
0
 from pygments.lexers import PhpLexer
0
 from pygments.formatters import HtmlFormatter
0
+import codecs
0
 
0
 try:
0
     logging.config.fileConfig(os.path.join(sys.path[0], LOGCONFIG))
0
@@ -51,7 +52,8 @@ class DocHighlighter(object):
0
 
0
         def highlightFile(path, file):
0
             f=open(os.path.join(path, file))
0
-            fileStr=StringIO(f.read()).getvalue()
0
+            fileStr = codecs.open( os.path.join(path, file), "r", "utf-8" ).read()
0
+
0
             f.close()
0
             log.info("highlighting " + file)
0
 
0
test/dd.sh
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
0
@@ -0,0 +1,30 @@
0
+#!/bin/sh
0
+
0
+##############################################################################
0
+
0
+# The location of your yuidoc install
0
+# yuidoc_home=yahoo/presentation/tools/yuidoc
0
+# yuidoc_home=~/www/yuidoc/yuidoc
0
+yuidoc_home=..
0
+
0
+src=~/src/yui3/src
0
+
0
+parser_in="$src/dd/js"
0
+ 
0
+# The location to output the parser data.  This output is a file containing a 
0
+# json string, and copies of the parsed files.
0
+parser_out=build_tmp/yuidoc_tmp
0
+
0
+# The directory to put the html file outputted by the generator
0
+generator_out=build_tmp/api
0
+
0
+# The location of the template files.  Any subdirectories here will be copied
0
+# verbatim to the destination directory.
0
+template=$yuidoc_home/template
0
+
0
+version="localtest"
0
+
0
+##############################################################################
0
+
0
+$yuidoc_home/bin/yuidoc.py $parser_in -p $parser_out -o $generator_out -t $template -v $version -s $*
0
+
0
test/intl.sh
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
0
@@ -0,0 +1,30 @@
0
+#!/bin/sh
0
+
0
+##############################################################################
0
+
0
+# The location of your yuidoc install
0
+# yuidoc_home=yahoo/presentation/tools/yuidoc
0
+# yuidoc_home=~/www/yuidoc/yuidoc
0
+yuidoc_home=..
0
+
0
+src=.
0
+
0
+parser_in="$src/intl"
0
+ 
0
+# The location to output the parser data.  This output is a file containing a 
0
+# json string, and copies of the parsed files.
0
+parser_out=build_tmp/yuidoc_tmp
0
+
0
+# The directory to put the html file outputted by the generator
0
+generator_out=build_tmp/api
0
+
0
+# The location of the template files.  Any subdirectories here will be copied
0
+# verbatim to the destination directory.
0
+template=$yuidoc_home/template
0
+
0
+version="localtest"
0
+
0
+##############################################################################
0
+
0
+$yuidoc_home/bin/yuidoc.py $parser_in -p $parser_out -o $generator_out -t $template -v $version -s $*
0
+
0
test/intl/intl.js
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
0
@@ -0,0 +1,33 @@
0
+/**
0
+ * The text module lets you format and parse text in many languages from around the world.
0
+ * <p>This module uses the following identifiers:
0
+ * <ul>
0
+ * <li><em>Languages:</em> RFC 4646 language tags, such as "en-GB" (English as used
0
+ *     in the United Kingdom), "zh-Hans-CN" (simpified Chinese as used in China).
0
+ * <li><em>Time zones:</em> tz database identifiers, such as "Europe/Berlin"
0
+ *     (time zone of Germany), "America/Los_Angeles" (Pacific time zone in the United States),
0
+ *     "Asia/Kolkata" (time zone of India).
0
+ * </ul>
0
+ * @module text
0
+ * @requires yahoo, json
0
+ */
0
+
0
+/** 
0
+ * Provides functionality for formatting date and time information.
0
+ * @class DateFormat
0
+ * @namespace YAHOO.text
0
+ * @constructor
0
+ * @param {Style | Style[] | String} style Style constant or pattern string for the desired date format.
0
+ * @param {String} language The RFC 4646 language tag for the language of the date format.
0
+ * @param {String} timeZone <b>future</b> The tz database identifier for the time zone of the date format.
0
+ *     Optional - the browser time zone is used by default.
0
+ */
0
+
0
+    /**
0
+     * <b>future</b> Calendar month format. Examples:
0
+     * <ul>
0
+     * <li>June 2009
0
+     * <li>2009年6月
0
+     * </ul>
0
+     * @property CALENDAR_MONTH
0
+     */
0
test/json.sh
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
0
@@ -0,0 +1,30 @@
0
+#!/bin/sh
0
+
0
+##############################################################################
0
+
0
+# The location of your yuidoc install
0
+# yuidoc_home=yahoo/presentation/tools/yuidoc
0
+# yuidoc_home=~/www/yuidoc/yuidoc
0
+yuidoc_home=..
0
+
0
+src=~/src/yui3/src
0
+
0
+parser_in="$src/io/js $src/json/js"
0
+ 
0
+# The location to output the parser data.  This output is a file containing a 
0
+# json string, and copies of the parsed files.
0
+parser_out=build_tmp/yuidoc_tmp
0
+
0
+# The directory to put the html file outputted by the generator
0
+generator_out=build_tmp/api
0
+
0
+# The location of the template files.  Any subdirectories here will be copied
0
+# verbatim to the destination directory.
0
+template=$yuidoc_home/template
0
+
0
+version=test
0
+
0
+##############################################################################
0
+
0
+$yuidoc_home/bin/yuidoc.py $parser_in -p $parser_out -o $generator_out -t $template -v $version -s $*
0
+

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