This repository has been archived by the owner on Jun 7, 2020. It is now read-only.
forked from sabman/rapi_doc
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
182 additions
and
165 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
module Config | ||
def config_dir | ||
File.join(::Rails.root.to_s, 'config/rapi_doc') | ||
end | ||
|
||
def template_dir | ||
File.join(File.dirname(__FILE__), '/../templates') | ||
end | ||
|
||
def target_config_file | ||
File.join(config_dir, 'config.yml') | ||
end | ||
|
||
def template_config_file | ||
File.join(template_dir, 'config.yml') | ||
end | ||
|
||
def index_layout_file | ||
File.join(config_dir, 'index.html.erb') | ||
end | ||
|
||
def resource_layout_file | ||
File.join(config_dir, 'resource.html.erb') | ||
end | ||
end |
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
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
Submodule rapidoc_sample
added at
9bcda8
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,67 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<title><%= @name || 'Home' %></title> | ||
|
||
<style> | ||
body { | ||
line-height: 1.5em; | ||
color:#484848; | ||
} | ||
|
||
ul, ol { | ||
margin-bottom: 0.8em; | ||
} | ||
|
||
li { | ||
padding-left: 10px; | ||
margin-right: 10px; | ||
} | ||
|
||
#resources { | ||
|
||
} | ||
|
||
h1, h2, h3 { | ||
padding-top: 8px; | ||
padding-bottom: 2px; | ||
} | ||
|
||
#method { | ||
padding: 15px 30px; | ||
border-top:1px solid #ddd; | ||
} | ||
|
||
#http_verb { | ||
color:#ff6600; | ||
width:200px; | ||
margin-right:20px;' | ||
} | ||
|
||
.description{ | ||
font-size: 1.4em; | ||
color:#262626; | ||
} | ||
</style> | ||
|
||
</head> | ||
<body> | ||
<div class="content"> | ||
|
||
<div id="introduction"> | ||
<!-- documentation intro --> | ||
</div> | ||
|
||
<h2>Resources</h2> | ||
<div id="resources"> | ||
<ul> | ||
<% @resources.each do |r| %> | ||
<li>Resource: <a href="/apidoc/<%=r.name %>.html"><%=r.resource_location %></a></li> | ||
<% end %> | ||
</ul> | ||
</div> | ||
|
||
</div> | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.