Skip to content
This repository has been archived by the owner on Jan 2, 2018. It is now read-only.

Commit

Permalink
update doc generation to support optional namespaces in wd 1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kamui committed Aug 24, 2013
1 parent c4661ad commit e5ae2b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion templates/lib/tasks/doc_generator/template.erb
Expand Up @@ -140,6 +140,12 @@
.param-value {
font-family: monospace;
}
.namespace-required:after {
content: '*';
color: red;
font-weight: bold;
margin-left: 5px;
}

.example {
border: 1px solid #cacaca;
Expand Down Expand Up @@ -193,7 +199,7 @@
<ul class="param-list">
<% api.params.namespaced_params.each do |params| %>
<li>
<h4>Namespace <%= params.space_name %></h4>
<h4 class="<%= 'namespace-required' unless params.space_name.null %>">Namespace <%= params.space_name.name %></h4>
<%= input_params_html(params.list_required, params.list_optional) %>
</li>
<% end %>
Expand Down
2 changes: 1 addition & 1 deletion wd-sinatra.gemspec
Expand Up @@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
gem.add_dependency('sinatra', ">= 1.3.3")
gem.add_dependency('activesupport') # used by the generator
gem.add_dependency('rake')
gem.add_dependency('weasel_diesel', ">= 1.2.1")
gem.add_dependency('weasel_diesel', ">= 1.2.2")
gem.add_dependency('rack', ">= 1.4.4")
gem.add_dependency('rack-parser', ">= 0.2.0")
gem.add_dependency('rack-accept', ">= 0.4.5")
Expand Down

0 comments on commit e5ae2b4

Please sign in to comment.