-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Yorick Peterse <[email protected]>
- Loading branch information
Yorick Peterse
committed
May 11, 2013
1 parent
8e80dc4
commit c3d33dd
Showing
7 changed files
with
88 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
--markup-provider redcarpet | ||
--markup markdown | ||
-o yardoc/ | ||
- doc/* | ||
./lib/parser/**/*.rb ./lib/parser.rb | ||
-m markdown | ||
-M redcarpet | ||
-o ./doc/build | ||
-r ./README.md | ||
--private | ||
--protected | ||
--asset ./doc/css/common.css:css/common.css | ||
This comment has been minimized.
Sorry, something went wrong. |
||
--verbose | ||
- | ||
./doc/*.md | ||
LICENSE.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,11 @@ task :clean_env do | |
ENV.delete 'RACC_DEBUG' | ||
end | ||
|
||
desc 'Generates YARD documentation' | ||
task :yard => :generate do | ||
sh('yard doc') | ||
This comment has been minimized.
Sorry, something went wrong.
whitequark
Owner
|
||
end | ||
|
||
rule '.rb' => '.rl' do |t| | ||
sh "ragel -R #{t.source} -o #{t.name}" | ||
end | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
body | ||
{ | ||
font-size: 14px; | ||
line-height: 1.6; | ||
margin: 0 auto; | ||
max-width: 960px; | ||
} | ||
|
||
p code | ||
{ | ||
background: #f2f2f2; | ||
padding-left: 3px; | ||
padding-right: 3px; | ||
} | ||
|
||
pre.code | ||
{ | ||
font-size: 13px; | ||
line-height: 1.4; | ||
} | ||
|
||
/** | ||
* YARD uses generic table styles, using a special class means those tables | ||
* don't get messed up. | ||
*/ | ||
.table | ||
{ | ||
border: 1px solid #ccc; | ||
border-right: none; | ||
border-collapse: separate; | ||
border-spacing: 0; | ||
text-align: left; | ||
} | ||
|
||
.table.full | ||
{ | ||
width: 100%; | ||
} | ||
|
||
.table .field_name | ||
{ | ||
min-width: 160px; | ||
} | ||
|
||
.table thead tr th.no_sort:first-child | ||
{ | ||
width: 25px; | ||
} | ||
|
||
.table thead tr th, .table tbody tr td | ||
{ | ||
border-bottom: 1px solid #ccc; | ||
border-right: 1px solid #ccc; | ||
min-width: 20px; | ||
padding: 8px 5px; | ||
text-align: left; | ||
vertical-align: top; | ||
} | ||
|
||
.table tbody tr:last-child td | ||
{ | ||
border-bottom: none; | ||
} | ||
|
||
.table tr:nth-child(odd) td | ||
{ | ||
background: #f9f9f9; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To clarify, this adds a stylesheet that gives the generated layout a fixed width. This in turn makes it a lot easier to read the text.