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,101 @@
1
+ /*
2
+
3
+ Dark style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
4
+
5
+ */
6
+
7
+ pre code[class]:after {
8
+ content: 'highlight: ' attr(class);
9
+ display: block; text-align: right;
10
+ font-size: smaller;
11
+ color: #CCC; background: white;
12
+ border-top: solid 1px black;
13
+ padding-top: 0.5em;
14
+ }
15
+
16
+ pre code {
17
+ display: block;
18
+ background: #444;
19
+ }
20
+
21
+ .keyword,
22
+ .literal,
23
+ .change,
24
+ .winutils,
25
+ .flow,
26
+ .lisp .title {
27
+ color: white;
28
+ }
29
+
30
+ pre code,
31
+ .ruby .subst {
32
+ color: #DDD;
33
+ }
34
+
35
+ .string,
36
+ .function .title,
37
+ .class .title,
38
+ .ini .title,
39
+ .tag .attribute .value,
40
+ .css .rules .value,
41
+ .preprocessor,
42
+ .ruby .symbol,
43
+ .ruby .instancevar,
44
+ .ruby .class .parent,
45
+ .built_in,
46
+ .sql .aggregate,
47
+ .django .template_tag,
48
+ .django .variable,
49
+ .smalltalk .class,
50
+ .javadoc,
51
+ .ruby .string,
52
+ .django .filter .argument,
53
+ .smalltalk .localvars,
54
+ .smalltalk .array,
55
+ .attr_selector,
56
+ .pseudo,
57
+ .addition,
58
+ .stream,
59
+ .envvar,
60
+ .apache .tag,
61
+ .apache .cbracket {
62
+ color: #D88;
63
+ }
64
+
65
+ .comment,
66
+ .java .annotation,
67
+ .python .decorator,
68
+ .template_comment,
69
+ .pi,
70
+ .doctype,
71
+ .deletion,
72
+ .shebang,
73
+ .apache .sqbracket {
74
+ color: #777;
75
+ }
76
+
77
+ .keyword,
78
+ .literal,
79
+ .css .id,
80
+ .phpdoc,
81
+ .function .title,
82
+ .class .title,
83
+ .vbscript .built_in,
84
+ .sql .aggregate,
85
+ .rsl .built_in,
86
+ .smalltalk .class,
87
+ .xml .tag .title,
88
+ .diff .header,
89
+ .chunk,
90
+ .winutils,
91
+ .bash .variable,
92
+ .lisp .title,
93
+ .apache .tag {
94
+ font-weight: bold;
95
+ }
96
+
97
+ .html .css,
98
+ .html .javascript,
99
+ .html .vbscript {
100
+ opacity: 0.5;
101
+ }
@@ -0,0 +1,103 @@
1
+ /*
2
+
3
+ Original style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
4
+
5
+ */
6
+
7
+ /*pre code[class]:after {
8
+ content: 'highlight: ' attr(class);
9
+ display: block; text-align: right;
10
+ font-size: smaller;
11
+ color: #CCC; background: white;
12
+ border-top: solid 1px;
13
+ padding-top: 0.5em;
14
+ }*/
15
+
16
+ pre code {
17
+ display: block;
18
+ background: #F0F0F0;
19
+ }
20
+
21
+ pre code,
22
+ .ruby .subst,
23
+ .xml .title,
24
+ .lisp .title {
25
+ color: black;
26
+ }
27
+
28
+ .string,
29
+ .title,
30
+ .parent,
31
+ .tag .attribute .value,
32
+ .rules .value,
33
+ .rules .value .number,
34
+ .preprocessor,
35
+ .ruby .symbol,
36
+ .instancevar,
37
+ .aggregate,
38
+ .template_tag,
39
+ .django .variable,
40
+ .smalltalk .class,
41
+ .addition,
42
+ .flow,
43
+ .stream,
44
+ .bash .variable,
45
+ .apache .tag,
46
+ .apache .cbracket {
47
+ color: #800;
48
+ }
49
+
50
+ .comment,
51
+ .annotation,
52
+ .template_comment,
53
+ .diff .header,
54
+ .chunk {
55
+ color: #888;
56
+ }
57
+
58
+ .number,
59
+ .date,
60
+ .regexp,
61
+ .literal,
62
+ .smalltalk .symbol,
63
+ .smalltalk .char,
64
+ .change {
65
+ color: #080;
66
+ }
67
+
68
+ .label,
69
+ .javadoc,
70
+ .ruby .string,
71
+ .decorator,
72
+ .filter .argument,
73
+ .localvars,
74
+ .array,
75
+ .attr_selector,
76
+ .pseudo,
77
+ .pi,
78
+ .doctype,
79
+ .deletion,
80
+ .envvar,
81
+ .shebang,
82
+ .apache .sqbracket {
83
+ color: #88F;
84
+ }
85
+
86
+ .keyword,
87
+ .id,
88
+ .phpdoc,
89
+ .title,
90
+ .built_in,
91
+ .aggregate,
92
+ .smalltalk .class,
93
+ .winutils,
94
+ .bash .variable,
95
+ .apache .tag {
96
+ font-weight: bold;
97
+ }
98
+
99
+ .html .css,
100
+ .html .javascript,
101
+ .html .vbscript {
102
+ opacity: 0.5;
103
+ }
@@ -0,0 +1,113 @@
1
+ /*
2
+
3
+ FAR Style (c) MajestiC <majestic2k@gmail.com>
4
+
5
+ */
6
+
7
+ pre code[class]:after {
8
+ content: 'highlight: ' attr(class);
9
+ display: block; text-align: right;
10
+ font-size: smaller;
11
+ color: #CCC; background: white;
12
+ border-top: solid 1px;
13
+ padding-top: 0.5em;
14
+ }
15
+
16
+ pre code {
17
+ display: block;
18
+ background: #000080;
19
+ }
20
+
21
+ pre code,
22
+ .ruby .subst {
23
+ color: #0FF;
24
+ }
25
+
26
+ .string,
27
+ .ruby .string,
28
+ .function .title,
29
+ .class .title,
30
+ .ini .title,
31
+ .tag .attribute .value,
32
+ .css .rules .value,
33
+ .css .rules .value .number,
34
+ .preprocessor,
35
+ .ruby .symbol,
36
+ .built_in,
37
+ .sql .aggregate,
38
+ .django .template_tag,
39
+ .django .variable,
40
+ .smalltalk .class,
41
+ .addition,
42
+ .apache .tag,
43
+ .apache .cbracket {
44
+ color: #FF0;
45
+ }
46
+
47
+ .keyword,
48
+ .css .id,
49
+ .function .title,
50
+ .class .title,
51
+ .ini .title,
52
+ .vbscript .built_in,
53
+ .sql .aggregate,
54
+ .rsl .built_in,
55
+ .smalltalk .class,
56
+ .xml .tag .title,
57
+ .winutils,
58
+ .flow,
59
+ .lisp .title,
60
+ .change,
61
+ .envvar,
62
+ .bash .variable {
63
+ color: #FFF;
64
+ }
65
+
66
+ .comment,
67
+ .phpdoc,
68
+ .javadoc,
69
+ .java .annotation,
70
+ .template_comment,
71
+ .deletion,
72
+ .apache .sqbracket {
73
+ color: #888;
74
+ }
75
+
76
+ .number,
77
+ .date,
78
+ .regexp,
79
+ .literal,
80
+ .smalltalk .symbol,
81
+ .smalltalk .char {
82
+ color: #0F0;
83
+ }
84
+
85
+ .python .decorator,
86
+ .django .filter .argument,
87
+ .smalltalk .localvars,
88
+ .smalltalk .array,
89
+ .attr_selector,
90
+ .pseudo,
91
+ .xml .pi,
92
+ .diff .header,
93
+ .chunk,
94
+ .shebang {
95
+ color: #008080;
96
+ }
97
+
98
+ .keyword,
99
+ .css .id,
100
+ .function .title,
101
+ .class .title,
102
+ .ini .title,
103
+ .vbscript .built_in,
104
+ .sql .aggregate,
105
+ .rsl .built_in,
106
+ .smalltalk .class,
107
+ .xml .tag .title,
108
+ .winutils,
109
+ .flow,
110
+ .lisp .title,
111
+ .apache .tag {
112
+ font-weight: bold;
113
+ }
@@ -0,0 +1,90 @@
1
+ /*
2
+
3
+ github.com style (c) Vasily Polovnyov <vast@whiteants.net>
4
+
5
+ */
6
+
7
+ pre code {
8
+ display: block;
9
+ color: #000;
10
+ background: #f8f8ff
11
+ }
12
+
13
+ .comment, .template_comment, .diff .header, .javadoc {
14
+ color: #998;
15
+ font-style: italic
16
+ }
17
+
18
+ .keyword, .css .rule .keyword, .winutils, .javascript .title, .lisp .title, .subst {
19
+ color: #000;
20
+ font-weight: bold
21
+ }
22
+
23
+ .number, .hexcolor {
24
+ color: #40a070
25
+ }
26
+
27
+ .string, .attribute .value, .phpdoc {
28
+ color: #d14
29
+ }
30
+
31
+ .title, .id {
32
+ color: #900;
33
+ font-weight: bold
34
+ }
35
+
36
+ .javascript .title, .lisp .title, .subst {
37
+ font-weight: normal
38
+ }
39
+
40
+ .class .title {
41
+ color: #458;
42
+ font-weight: bold
43
+ }
44
+
45
+ .tag, .css .keyword, .html .keyword, .tag .title, .django .tag .keyword {
46
+ color: #000080;
47
+ font-weight: normal
48
+ }
49
+
50
+ .attribute, .variable, .instancevar, .lisp .body {
51
+ color: #008080
52
+ }
53
+
54
+ .regexp {
55
+ color: #009926
56
+ }
57
+
58
+ .class {
59
+ color: #458;
60
+ font-weight: bold
61
+ }
62
+
63
+ .symbol, .lisp .keyword {
64
+ color: #990073
65
+ }
66
+
67
+ .builtin, .built_in, .lisp .title {
68
+ color: #0086b3
69
+ }
70
+
71
+ .preprocessor, .pi, .doctype, .shebang, .cdata {
72
+ color: #999;
73
+ font-weight: bold
74
+ }
75
+
76
+ .deletion {
77
+ background: #fdd
78
+ }
79
+
80
+ .addition {
81
+ background: #dfd
82
+ }
83
+
84
+ .diff .change {
85
+ background: #0086b3
86
+ }
87
+
88
+ .chunk {
89
+ color: #aaa
90
+ }
@@ -0,0 +1,74 @@
1
+ /*
2
+
3
+ Intellij Idea-like styling (c) Vasily Polovnyov <vast@whiteants.net>
4
+
5
+ */
6
+
7
+ pre code {
8
+ display: block;
9
+ color: #000;
10
+ background: #fff;
11
+ }
12
+
13
+ .subst, .title {
14
+ font-weight: normal;
15
+ color: #000;
16
+ }
17
+
18
+ .comment, .template_comment, .javadoc, .diff .header {
19
+ color: #808080;
20
+ font-style: italic;
21
+ }
22
+
23
+ .annotation, .decorator, .preprocessor, .doctype, .pi, .chunk, .shebang, .apache .cbracket {
24
+ color: #808000;
25
+ }
26
+
27
+ .tag, .pi {
28
+ background: #efefef;
29
+ }
30
+
31
+ .tag .title, .id, .attr_selector, .pseudo, .literal, .keyword, .hexcolor, .css .function, .ini .title, .css .class, .list .title {
32
+ font-weight: bold;
33
+ color: #000080;
34
+ }
35
+
36
+ .attribute, .rules .keyword, .number, .date, .regexp {
37
+ font-weight: bold;
38
+ color: #0000ff;
39
+ }
40
+
41
+ .number, .regexp {
42
+ font-weight: normal;
43
+ }
44
+
45
+ .string, .value, .filter .argument, .css .function .params, .apache .tag {
46
+ color: #008000;
47
+ font-weight: bold;
48
+ }
49
+
50
+ .symbol, .char {
51
+ color: #000;
52
+ background: #d0eded;
53
+ font-style: italic;
54
+ }
55
+
56
+ .phpdoc, .javadoctag {
57
+ text-decoration: underline;
58
+ }
59
+
60
+ .variable, .envvar, .apache .sqbracket {
61
+ color: #660e7a;
62
+ }
63
+
64
+ .addition {
65
+ background: #baeeba;
66
+ }
67
+
68
+ .deletion {
69
+ background: #ffc8bd;
70
+ }
71
+
72
+ .diff .change {
73
+ background: #bccff9;
74
+ }