css_doc 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/cssdoc +43 -0
- data/src/css_doc.rb +16 -0
- data/src/css_doc/css_writer.rb +20 -0
- data/src/css_doc/document.rb +31 -0
- data/src/css_doc/document_collection.rb +33 -0
- data/src/css_doc/document_documentation.rb +5 -0
- data/src/css_doc/document_handler.rb +36 -0
- data/src/css_doc/documentation.rb +111 -0
- data/src/css_doc/driver.rb +85 -0
- data/src/css_doc/examples.rb +12 -0
- data/src/css_doc/rule_set.rb +14 -0
- data/src/css_doc/rule_set_documentation.rb +5 -0
- data/src/css_doc/section.rb +17 -0
- data/src/css_doc/section_documentation.rb +5 -0
- data/src/css_doc/template.rb +47 -0
- data/src/css_pool/visitors/to_css.rb +9 -0
- data/src/rake/css_doc_task.rb +29 -0
- data/src/templates/default/css_doc.css +286 -0
- data/src/templates/default/document.html.erb +93 -0
- data/src/templates/default/example_index.html.erb +9 -0
- data/src/templates/default/file_index.html.erb +7 -0
- data/src/templates/default/index.html.erb +3 -0
- data/src/templates/default/layout.html.erb +30 -0
- data/src/templates/default/section_index.html.erb +14 -0
- data/src/templates/default/selector_index.html.erb +14 -0
- data/src/templates/simple/css_doc.css +282 -0
- data/src/templates/simple/document.html.erb +66 -0
- data/src/templates/simple/file_index.html.erb +7 -0
- data/src/templates/simple/index.html.erb +3 -0
- data/src/templates/simple/layout.html.erb +30 -0
- data/src/templates/simple/section_index.html.erb +14 -0
- data/src/templates/simple/selector_index.html.erb +14 -0
- metadata +98 -0
@@ -0,0 +1,30 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
6
|
+
<title><%= @title %> - CSS Documentation</title>
|
7
|
+
<link rel="stylesheet" media="all" href="<%= relative_root %>/css_doc.css" />
|
8
|
+
<link rel="stylesheet" media="all" href="<%= relative_root %>/styles.css" />
|
9
|
+
</head>
|
10
|
+
<body>
|
11
|
+
<div id="canvas">
|
12
|
+
<ul class="navigation">
|
13
|
+
<li><a href="<%= relative_root %>/index.html">Home</a></li>
|
14
|
+
<li><a href="<%= relative_root %>/file_index.html">File Index</a></li>
|
15
|
+
<li><a href="<%= relative_root %>/selector_index.html">Selector Index</a></li>
|
16
|
+
<li><a href="<%= relative_root %>/section_index.html">Section Index</a></li>
|
17
|
+
<li><a href="<%= relative_root %>/example_index.html">Example Index</a></li>
|
18
|
+
</ul>
|
19
|
+
|
20
|
+
<div class="content">
|
21
|
+
<%= content %>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<p id="footer">
|
25
|
+
Generated by css_doc. css_doc is Copyright (2009) Thomas Kadauke, imedo.de, das <a href="http://www.imedo.de">Gesundheitsportal</a>.
|
26
|
+
</p>
|
27
|
+
</div>
|
28
|
+
</body>
|
29
|
+
</html>
|
30
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<h1>Section Index</h1>
|
2
|
+
|
3
|
+
<dl class="index">
|
4
|
+
<% @collection.section_hash.sort.each do |name, sections| %>
|
5
|
+
<dt><%= name %></dt>
|
6
|
+
<dd>
|
7
|
+
<ul>
|
8
|
+
<% sections.each do |section| %>
|
9
|
+
<li><a href="<%= section.document.output_file_name %>#section-<%= section.object_id %>"><%= section.document.name %></a></li>
|
10
|
+
<% end %>
|
11
|
+
</ul>
|
12
|
+
</dd>
|
13
|
+
<% end %>
|
14
|
+
</dt>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<h1>Selector Index</h1>
|
2
|
+
|
3
|
+
<dl class="index">
|
4
|
+
<% @collection.selector_hash.sort.each do |name, selectors| %>
|
5
|
+
<dt><%= name %></dt>
|
6
|
+
<dd>
|
7
|
+
<ul>
|
8
|
+
<% selectors.each do |selector| %>
|
9
|
+
<li><a href="<%= selector.rule_set.document.output_file_name %>#rule-set-<%= selector.rule_set.object_id %>"><%= selector.rule_set.document.name %></a></li>
|
10
|
+
<% end %>
|
11
|
+
</ul>
|
12
|
+
</dd>
|
13
|
+
<% end %>
|
14
|
+
</dt>
|
metadata
ADDED
@@ -0,0 +1,98 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: css_doc
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 19
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Thomas Kadauke
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2009-10-14 00:00:00 +02:00
|
19
|
+
default_executable:
|
20
|
+
dependencies: []
|
21
|
+
|
22
|
+
description: Library and Executable that extracts documentation from CSS files.
|
23
|
+
email: thomas.kadauke@imedo.de
|
24
|
+
executables:
|
25
|
+
- cssdoc
|
26
|
+
extensions: []
|
27
|
+
|
28
|
+
extra_rdoc_files: []
|
29
|
+
|
30
|
+
files:
|
31
|
+
- src/css_doc/css_writer.rb
|
32
|
+
- src/css_doc/document.rb
|
33
|
+
- src/css_doc/document_collection.rb
|
34
|
+
- src/css_doc/document_documentation.rb
|
35
|
+
- src/css_doc/document_handler.rb
|
36
|
+
- src/css_doc/documentation.rb
|
37
|
+
- src/css_doc/driver.rb
|
38
|
+
- src/css_doc/examples.rb
|
39
|
+
- src/css_doc/rule_set.rb
|
40
|
+
- src/css_doc/rule_set_documentation.rb
|
41
|
+
- src/css_doc/section.rb
|
42
|
+
- src/css_doc/section_documentation.rb
|
43
|
+
- src/css_doc/template.rb
|
44
|
+
- src/css_doc.rb
|
45
|
+
- src/css_pool/visitors/to_css.rb
|
46
|
+
- src/rake/css_doc_task.rb
|
47
|
+
- src/templates/default/css_doc.css
|
48
|
+
- src/templates/default/document.html.erb
|
49
|
+
- src/templates/default/example_index.html.erb
|
50
|
+
- src/templates/default/file_index.html.erb
|
51
|
+
- src/templates/default/index.html.erb
|
52
|
+
- src/templates/default/layout.html.erb
|
53
|
+
- src/templates/default/section_index.html.erb
|
54
|
+
- src/templates/default/selector_index.html.erb
|
55
|
+
- src/templates/simple/css_doc.css
|
56
|
+
- src/templates/simple/document.html.erb
|
57
|
+
- src/templates/simple/file_index.html.erb
|
58
|
+
- src/templates/simple/index.html.erb
|
59
|
+
- src/templates/simple/layout.html.erb
|
60
|
+
- src/templates/simple/section_index.html.erb
|
61
|
+
- src/templates/simple/selector_index.html.erb
|
62
|
+
- bin/cssdoc
|
63
|
+
has_rdoc: true
|
64
|
+
homepage: http://www.imedo.de
|
65
|
+
licenses: []
|
66
|
+
|
67
|
+
post_install_message:
|
68
|
+
rdoc_options: []
|
69
|
+
|
70
|
+
require_paths:
|
71
|
+
- src
|
72
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
hash: 3
|
78
|
+
segments:
|
79
|
+
- 0
|
80
|
+
version: "0"
|
81
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
hash: 3
|
87
|
+
segments:
|
88
|
+
- 0
|
89
|
+
version: "0"
|
90
|
+
requirements: []
|
91
|
+
|
92
|
+
rubyforge_project:
|
93
|
+
rubygems_version: 1.3.7
|
94
|
+
signing_key:
|
95
|
+
specification_version: 3
|
96
|
+
summary: Documentation generator for CSS files, similar to Javadoc or RDoc.
|
97
|
+
test_files: []
|
98
|
+
|