Skip to content

Commit 5430b86

Browse files
committed
yard template
1 parent 5a536dc commit 5430b86

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

Diff for: docs-template/default/layout/html/headers.erb

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<meta http-equiv="Content-Type" content="text/html; charset=<%= charset %>" />
2+
<title>
3+
<%= h @page_title %>
4+
<% if options.title && @page_title != options.title %>
5+
&mdash; <%= h options.title %>
6+
<% end %>
7+
</title>
8+
<% stylesheets.each do |stylesheet| %>
9+
<link rel="stylesheet" href="<%= url_for(stylesheet).gsub(/^[\.\/]*css/, '/stylesheets/docs') %>" type="text/css" charset="utf-8" />
10+
<% end %>
11+
<%= erb :script_setup %>
12+
<% javascripts.each do |javascript| %>
13+
<script type="text/javascript" charset="utf-8" src="<%= url_for(javascript).gsub(/^[\.\/]*js/, '/javascripts/docs') %>"></script>
14+
<% end %>

Diff for: lib/yard-rspec-docs-template.rb

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
YARD::Templates::Engine.register_template_path Pathname.new(File.dirname(__FILE__)).join('..', 'docs-template')

Diff for: yard-rspec-docs-template.gemspec

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# coding: utf-8
2+
lib = File.expand_path('../lib', __FILE__)
3+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4+
5+
Gem::Specification.new do |spec|
6+
spec.name = "yard-rspec-docs-template"
7+
spec.version = "0.0.1"
8+
spec.authors = ["Jon Rowe"]
9+
spec.email = ["[email protected]"]
10+
spec.summary = %q{Skin for RSpec documentation in YARD}
11+
spec.description = %q{}
12+
spec.homepage = "https://github.com/rspec/rspec.github.io"
13+
spec.license = "MIT"
14+
15+
spec.files = `git ls-files -z lib`.split("\x0")
16+
spec.require_paths = ["lib"]
17+
18+
spec.add_dependency "yard"
19+
20+
spec.add_development_dependency "bundler", "~> 1.7"
21+
spec.add_development_dependency "rake", "~> 10.0"
22+
end

0 commit comments

Comments
 (0)