Skip to content
This repository was archived by the owner on Mar 15, 2022. It is now read-only.

Commit 4a1c0b9

Browse files
committed
Add yard generated documentation
1 parent 1649896 commit 4a1c0b9

File tree

5 files changed

+164
-1
lines changed

5 files changed

+164
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
.bundle
55
.config
66
/.idea
7-
.yardoc
7+
.yardoc/*
8+
yardoc/*
89
Gemfile.lock
910
InstalledFiles
1011
_yardoc

.yardopts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
--protected
2+
--no-private
3+
--embed-mixins
4+
--output-dir ./yardoc
5+
--markup markdown
6+
--title=Concurrent Ruby
7+
--template default
8+
--template-path ./yard-template
9+
10+
./lib/**/*.rb
11+
-
12+
README.md
13+
LICENSE

Gemfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,11 @@ source 'https://rubygems.org'
22

33
# Specify your gem's dependencies in thread_safe.gemspec
44
gemspec
5+
6+
group :documentation do
7+
gem 'countloc', '~> 0.4.0', :platforms => :mri, :require => false
8+
gem 'rubycritic', '~> 1.0.2', :platforms => :mri, require: false
9+
gem 'yard', '~> 0.8.7.4', :require => false
10+
gem 'inch', '~> 0.4.6', :platforms => :mri, :require => false
11+
gem 'redcarpet', '~> 3.1.2', platforms: :mri # understands github markdown
12+
end
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
/* Override this file with custom rules */
2+
3+
body {
4+
line-height: 18px;
5+
}
6+
7+
.docstring code, .docstring .object_link a, #filecontents code {
8+
padding: 0px 3px 1px 3px;
9+
border: 1px solid #eef;
10+
background: #f5f5ff;
11+
}
12+
13+
#filecontents pre code, .docstring pre code {
14+
border: none;
15+
background: none;
16+
padding: 0;
17+
}
18+
19+
#filecontents pre.code, .docstring pre.code, .tags pre.example, .docstring code, .docstring .object_link a,
20+
#filecontents code {
21+
-moz-border-radius: 2px;
22+
-webkit-border-radius: 2px;
23+
}
24+
25+
/* syntax highlighting */
26+
.source_code {
27+
display: none;
28+
padding: 3px 8px;
29+
border-left: 8px solid #ddd;
30+
margin-top: 5px;
31+
}
32+
33+
#filecontents pre.code, .docstring pre.code, .source_code pre {
34+
font-family: monospace;
35+
}
36+
37+
#filecontents pre.code, .docstring pre.code {
38+
display: block;
39+
}
40+
41+
.source_code .lines {
42+
padding-right: 12px;
43+
color: #555;
44+
text-align: right;
45+
}
46+
47+
#filecontents pre.code, .docstring pre.code,
48+
.tags pre.example {
49+
padding: 5px 12px;
50+
margin-top: 4px;
51+
border: 1px solid #eef;
52+
background: #f5f5ff;
53+
}
54+
55+
pre.code {
56+
color: #000;
57+
}
58+
59+
pre.code .info.file {
60+
color: #555;
61+
}
62+
63+
pre.code .val {
64+
color: #036A07;
65+
}
66+
67+
pre.code .tstring_content,
68+
pre.code .heredoc_beg, pre.code .heredoc_end,
69+
pre.code .qwords_beg, pre.code .qwords_end,
70+
pre.code .tstring, pre.code .dstring {
71+
color: #036A07;
72+
}
73+
74+
pre.code .fid,
75+
pre.code .rubyid_new,
76+
pre.code .rubyid_to_s,
77+
pre.code .rubyid_to_sym,
78+
pre.code .rubyid_to_f,
79+
pre.code .rubyid_to_i,
80+
pre.code .rubyid_each {
81+
color: inherit;
82+
}
83+
84+
pre.code .comment {
85+
color: #777;
86+
font-style: italic;
87+
}
88+
89+
pre.code .const, pre.code .constant {
90+
color: inherit;
91+
font-weight: bold;
92+
font-style: italic;
93+
}
94+
95+
pre.code .label,
96+
pre.code .symbol {
97+
color: #C5060B;
98+
}
99+
100+
pre.code .kw,
101+
pre.code .rubyid_require,
102+
pre.code .rubyid_extend,
103+
pre.code .rubyid_include,
104+
pre.code .int {
105+
color: #0000FF;
106+
}
107+
108+
pre.code .ivar {
109+
color: #660E7A;
110+
}
111+
112+
pre.code .gvar,
113+
pre.code .rubyid_backref,
114+
pre.code .rubyid_nth_ref {
115+
color: #6D79DE;
116+
}
117+
118+
pre.code .regexp, .dregexp {
119+
color: #036A07;
120+
}
121+
122+
pre.code a {
123+
border-bottom: 1px dotted #bbf;
124+
}
125+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<div id="footer">
2+
Generated on <%= Time.now.strftime("%c") %> by
3+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
4+
<%= YARD::VERSION %> (ruby-<%= RUBY_VERSION %>).
5+
</div>
6+
7+
<script>
8+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
9+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
10+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
11+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
12+
13+
ga('create', 'UA-57940973-1', 'auto');
14+
ga('send', 'pageview');
15+
16+
</script>

0 commit comments

Comments
 (0)