docapi 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. data/.document +5 -0
  2. data/.gitignore +5 -0
  3. data/LICENSE +20 -0
  4. data/README.rdoc +7 -0
  5. data/Rakefile +57 -0
  6. data/VERSION +1 -0
  7. data/bin/docapi +47 -0
  8. data/docapi.gemspec +76 -0
  9. data/files/javascripts/documentation/documentation.js +26 -0
  10. data/files/javascripts/documentation/highlight.pack.js +1 -0
  11. data/files/javascripts/documentation/jquery-1.3.2.min.js +19 -0
  12. data/files/javascripts/documentation/jquery.tableofcontents.min.js +12 -0
  13. data/files/stylesheets/documentation/highlighter/ascetic.css +42 -0
  14. data/files/stylesheets/documentation/highlighter/brown_paper.css +104 -0
  15. data/files/stylesheets/documentation/highlighter/brown_papersq.png +0 -0
  16. data/files/stylesheets/documentation/highlighter/dark.css +101 -0
  17. data/files/stylesheets/documentation/highlighter/default.css +103 -0
  18. data/files/stylesheets/documentation/highlighter/far.css +113 -0
  19. data/files/stylesheets/documentation/highlighter/github.css +90 -0
  20. data/files/stylesheets/documentation/highlighter/idea.css +74 -0
  21. data/files/stylesheets/documentation/highlighter/ir_black.css +67 -0
  22. data/files/stylesheets/documentation/highlighter/magula.css +105 -0
  23. data/files/stylesheets/documentation/highlighter/school_book.css +106 -0
  24. data/files/stylesheets/documentation/highlighter/school_book.png +0 -0
  25. data/files/stylesheets/documentation/highlighter/sunburst.css +112 -0
  26. data/files/stylesheets/documentation/highlighter/vs.css +68 -0
  27. data/files/stylesheets/documentation/highlighter/zenburn.css +113 -0
  28. data/files/stylesheets/documentation/layout.css +161 -0
  29. data/lib/docapi.rb +150 -0
  30. data/test/code/reference_api.rb +141 -0
  31. data/test/doc/1-README.md +17 -0
  32. data/test/doc/2-documentation/documentation.html +186 -0
  33. data/test/doc/3-tutorials/2-ruby/example-1.rb +12 -0
  34. metadata +89 -0
@@ -0,0 +1,67 @@
1
+ /*
2
+ IR_Black style (c) Vasily Mikhailitchenko <vaskas@programica.ru>
3
+ */
4
+
5
+ pre code {
6
+ color: #f8f8f8;
7
+ }
8
+
9
+ pre {
10
+ background: #000;
11
+ }
12
+
13
+ .shebang, .comment, .template_comment, .javadoc {
14
+ color: #7c7c7c;
15
+ }
16
+
17
+ .keyword, .tag, .ruby .function .keyword {
18
+ color: #96CBFE;
19
+ }
20
+
21
+ .function .keyword, .sub .keyword, .method, .list .title {
22
+ color: #FFFFB6;
23
+ }
24
+
25
+ .string, .attribute .value, .cdata, .filter .argument, .attr_selector, .apache .cbracket, .date {
26
+ color: #A8FF60;
27
+ }
28
+
29
+ .subst {
30
+ color: #DAEFA3;
31
+ }
32
+
33
+ .regexp {
34
+ color: #E9C062;
35
+ }
36
+
37
+ .function .title, .sub .identifier, .pi, .decorator, .ini .title {
38
+ color: #FFFFB6;
39
+ }
40
+
41
+ .class .title, .smalltalk .class, .javadoctag, .phpdoc {
42
+ color: #FFFFB6;
43
+ }
44
+
45
+ .symbol, .number, .variable, .vbscript, .literal {
46
+ color: #C6C5FE;
47
+ }
48
+
49
+ .css .keyword {
50
+ color: #96CBFE;
51
+ }
52
+
53
+ .css .rule .keyword, .css .id {
54
+ color: #FFFFB6;
55
+ }
56
+
57
+ .css .class {
58
+ color: #FFF;
59
+ }
60
+
61
+ .hexcolor {
62
+ color: #C6C5FE;
63
+ }
64
+
65
+ .number {
66
+ color:#FF73FD;
67
+ }
@@ -0,0 +1,105 @@
1
+ /*
2
+ Description: Magula style for highligh.js
3
+ Author: Ruslan Keba <rukeba@gmail.com>
4
+ Website: http://rukeba.com/
5
+ Version: 1.0
6
+ Date: 2009-01-03
7
+ Music: Aphex Twin / Xtal
8
+ */
9
+
10
+ pre {
11
+ margin: .5em; padding: .5em;
12
+ background-color: #f4f4f4;
13
+ }
14
+
15
+ pre code,
16
+ .ruby .subst,
17
+ .lisp .title {
18
+ color: black;
19
+ }
20
+
21
+ .string,
22
+ .title,
23
+ .parent,
24
+ .tag .attribute .value,
25
+ .rules .value,
26
+ .rules .value .number,
27
+ .preprocessor,
28
+ .ruby .symbol,
29
+ .instancevar,
30
+ .aggregate,
31
+ .template_tag,
32
+ .django .variable,
33
+ .smalltalk .class,
34
+ .addition,
35
+ .flow,
36
+ .stream,
37
+ .bash .variable,
38
+ .apache .cbracket {
39
+ color: #050;
40
+ }
41
+
42
+ .comment,
43
+ .annotation,
44
+ .template_comment,
45
+ .diff .header,
46
+ .chunk {
47
+ color: #777;
48
+ }
49
+
50
+ .number,
51
+ .date,
52
+ .regexp,
53
+ .literal,
54
+ .smalltalk .symbol,
55
+ .smalltalk .char,
56
+ .change {
57
+ color: #800;
58
+ }
59
+
60
+ .label,
61
+ .javadoc,
62
+ .ruby .string,
63
+ .decorator,
64
+ .filter .argument,
65
+ .localvars,
66
+ .array,
67
+ .attr_selector,
68
+ .pseudo,
69
+ .pi,
70
+ .doctype,
71
+ .deletion,
72
+ .envvar,
73
+ .shebang,
74
+ .apache .sqbracket {
75
+ color: #00e;
76
+ }
77
+
78
+ .keyword,
79
+ .id,
80
+ .phpdoc,
81
+ .title,
82
+ .built_in,
83
+ .aggregate,
84
+ .smalltalk .class,
85
+ .winutils,
86
+ .bash .variable,
87
+ .apache .tag,
88
+ .xml .tag,
89
+ .xml .title {
90
+ font-weight: bold;
91
+ color: navy;
92
+ }
93
+
94
+ .html .css,
95
+ .html .javascript,
96
+ .html .vbscript {
97
+ opacity: 0.5;
98
+ }
99
+
100
+ /* --- */
101
+ .apache .tag {
102
+ font-weight: bold;
103
+ color: blue;
104
+ }
105
+
@@ -0,0 +1,106 @@
1
+ /*
2
+
3
+ School Book style from goldblog.com.ua (c) Zaripov Yura <yur4ik7@ukr.net>
4
+
5
+ */
6
+
7
+ pre code[class]:after {
8
+ content: 'highlight: ' attr(class);
9
+ display: block; text-align: right;
10
+ color: #CCC; background: transparent;
11
+
12
+ padding-top: 0.5em;
13
+ }
14
+
15
+ pre code {
16
+ display: block;
17
+ margin-left:30px;
18
+ margin-top:15px;
19
+ font-size: 11px !important;
20
+ line-height:16px !important;
21
+ }
22
+ pre{background:#f6f6ae url(./school_book.png);
23
+ border-top: solid 2px #d2e8b9;
24
+ border-bottom: solid 1px #d2e8b9;}
25
+ .keyword,
26
+ .literal,
27
+ .change,
28
+ .winutils,
29
+ .flow,
30
+ .lisp .title {
31
+ color:#005599;
32
+ font-weight:bold;
33
+ }
34
+
35
+ pre code,
36
+ .ruby .subst {
37
+ color: #3E5915;
38
+ }
39
+
40
+ .string,
41
+ .function .title,
42
+ .class .title,
43
+ .ini .title,
44
+ .tag .attribute .value,
45
+ .css .rules .value,
46
+ .preprocessor,
47
+ .ruby .symbol,
48
+ .ruby .instancevar,
49
+ .ruby .class .parent,
50
+ .built_in,
51
+ .sql .aggregate,
52
+ .django .template_tag,
53
+ .django .variable,
54
+ .smalltalk .class,
55
+ .javadoc,
56
+ .ruby .string,
57
+ .django .filter .argument,
58
+ .smalltalk .localvars,
59
+ .smalltalk .array,
60
+ .attr_selector,
61
+ .pseudo,
62
+ .addition,
63
+ .stream,
64
+ .envvar,
65
+ .apache .tag,
66
+ .apache .cbracket {
67
+ color: #2C009F;
68
+ }
69
+
70
+ .comment,
71
+ .java .annotation,
72
+ .python .decorator,
73
+ .template_comment,
74
+ .pi,
75
+ .doctype,
76
+ .deletion,
77
+ .shebang,
78
+ .apache .sqbracket {
79
+ color: #E60415;
80
+ }
81
+
82
+ .keyword,
83
+ .literal,
84
+ .css .id,
85
+ .phpdoc,
86
+ .function .title,
87
+ .class .title,
88
+ .vbscript .built_in,
89
+ .sql .aggregate,
90
+ .rsl .built_in,
91
+ .smalltalk .class,
92
+ .xml .tag .title,
93
+ .diff .header,
94
+ .chunk,
95
+ .winutils,
96
+ .bash .variable,
97
+ .lisp .title,
98
+ .apache .tag {
99
+ font-weight: bold;
100
+ }
101
+
102
+ .html .css,
103
+ .html .javascript,
104
+ .html .vbscript {
105
+ opacity: 0.8;
106
+ }
@@ -0,0 +1,112 @@
1
+ /*
2
+
3
+ Sunburst-like style (c) Vasily Polovnyov <vast@whiteants.net>
4
+
5
+ */
6
+
7
+ pre code {
8
+ font: 1em / 1.3em 'Lucida Console', 'courier new', monospace;
9
+ color: #f8f8f8;
10
+ }
11
+
12
+ pre {
13
+ background: #000;
14
+ }
15
+
16
+ .comment, .template_comment, .javadoc {
17
+ color: #aeaeae;
18
+ font-style: italic;
19
+ }
20
+
21
+ .keyword, .ruby .function .keyword {
22
+ color: #E28964;
23
+ }
24
+
25
+ .function .keyword, .sub .keyword, .method, .list .title {
26
+ color: #99CF50;
27
+ }
28
+
29
+ .string, .attribute .value, .cdata, .filter .argument, .attr_selector, .apache .cbracket, .date {
30
+ color: #65B042;
31
+ }
32
+
33
+ .subst {
34
+ color: #DAEFA3;
35
+ }
36
+
37
+ .regexp {
38
+ color: #E9C062;
39
+ }
40
+
41
+ .function .title, .sub .identifier, .pi, .tag, .tag .keyword, .decorator, .ini .title, .shebang {
42
+ color: #89BDFF;
43
+ }
44
+
45
+ .class .title, .smalltalk .class, .javadoctag, .phpdoc {
46
+ text-decoration: underline;
47
+ }
48
+
49
+ .symbol, .number {
50
+ color: #3387CC;
51
+ }
52
+
53
+ .params, .variable {
54
+ color: #3E87E3;
55
+ }
56
+
57
+ .css .keyword, .pseudo {
58
+ color: #CDA869;
59
+ }
60
+
61
+ .css .class {
62
+ color: #9B703F;
63
+ }
64
+
65
+ .rules .keyword {
66
+ color: #C5AF75;
67
+ }
68
+
69
+ .rules .value {
70
+ color: #CF6A4C;
71
+ }
72
+
73
+ .css .id {
74
+ color: #8B98AB;
75
+ }
76
+
77
+ .annotation, .apache .sqbracket {
78
+ color: #9B859D;
79
+ }
80
+
81
+ .preprocessor {
82
+ color: #8996A8;
83
+ }
84
+
85
+ .hexcolor, .css .value .number {
86
+ color: #DD7B3B;
87
+ }
88
+
89
+ .css .function {
90
+ color: #DAD085;
91
+ }
92
+
93
+ .diff .header, .chunk {
94
+ background-color: #0E2231;
95
+ color: #F8F8F8;
96
+ font-style: italic;
97
+ }
98
+
99
+ .diff .change {
100
+ background-color: #4A410D;
101
+ color: #F8F8F8;
102
+ }
103
+
104
+ .addition {
105
+ background-color: #253B22;
106
+ color: #F8F8F8;
107
+ }
108
+
109
+ .deletion {
110
+ background-color: #420E09;
111
+ color: #F8F8F8;
112
+ }
@@ -0,0 +1,68 @@
1
+ /*
2
+
3
+ Visual Studio-like style based on original C# coloring by Jason Diamond <jason@diamond.name>
4
+
5
+ */
6
+ .comment,
7
+ .annotation,
8
+ .template_comment,
9
+ .diff .header,
10
+ .chunk,
11
+ .apache .cbracket {
12
+ color: rgb(0, 128, 0);
13
+ }
14
+
15
+ .keyword,
16
+ .id,
17
+ .title,
18
+ .built_in,
19
+ .aggregate,
20
+ .smalltalk .class,
21
+ .winutils,
22
+ .bash .variable {
23
+ color: rgb(0, 0, 255);
24
+ }
25
+
26
+ .string,
27
+ .title,
28
+ .parent,
29
+ .tag .attribute .value,
30
+ .rules .value,
31
+ .rules .value .number,
32
+ .ruby .symbol,
33
+ .instancevar,
34
+ .aggregate,
35
+ .template_tag,
36
+ .django .variable,
37
+ .addition,
38
+ .flow,
39
+ .stream,
40
+ .apache .tag,
41
+ .date {
42
+ color: rgb(163, 21, 21);
43
+ }
44
+
45
+ .ruby .string,
46
+ .decorator,
47
+ .filter .argument,
48
+ .localvars,
49
+ .array,
50
+ .attr_selector,
51
+ .pseudo,
52
+ .pi,
53
+ .doctype,
54
+ .deletion,
55
+ .envvar,
56
+ .shebang,
57
+ .preprocessor,
58
+ .userType,
59
+ .apache .sqbracket {
60
+ color: rgb(43, 145, 175);
61
+ }
62
+
63
+ .phpdoc,
64
+ .javadoc,
65
+ .xmlDocTag {
66
+ color: rgb(128, 128, 128);
67
+ }
68
+