You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2013/03/26 13:36:24 UTC
[5/7] git commit: Removed obsoleted docs/ views
Removed obsoleted docs/ views
* documentation is now part of sinatra-rabbit
Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/37b80f99
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/37b80f99
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/37b80f99
Branch: refs/heads/master
Commit: 37b80f99a6590f515bc1c0123e58c9a865bdbe1f
Parents: a19b3d1
Author: Michal Fojtik <mf...@redhat.com>
Authored: Tue Mar 26 10:46:50 2013 +0100
Committer: Michal fojtik <mf...@redhat.com>
Committed: Tue Mar 26 10:50:00 2013 +0100
----------------------------------------------------------------------
server/views/docs/collection.html.haml | 26 ---------------------
server/views/docs/collection.xml.haml | 14 -----------
server/views/docs/index.html.haml | 11 ---------
server/views/docs/index.xml.haml | 5 ----
server/views/docs/operation.html.haml | 33 ---------------------------
server/views/docs/operation.xml.haml | 10 --------
server/views/root/index.html.haml | 4 ---
7 files changed, 0 insertions(+), 103 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/37b80f99/server/views/docs/collection.html.haml
----------------------------------------------------------------------
diff --git a/server/views/docs/collection.html.haml b/server/views/docs/collection.html.haml
deleted file mode 100644
index a973b4f..0000000
--- a/server/views/docs/collection.html.haml
+++ /dev/null
@@ -1,26 +0,0 @@
-=header "Deltacloud API #{settings.version} documentation", :back => 'false'
-=subheader collection.name.to_s.titlecase
-
-%div{ :'data-role' => :content, :'data-theme' => 'c'}
- %ul{ :'data-role' => :listview , :'data-inset' => :true, :'data-divider-theme' => 'd'}
- %li{ :'data-role' => 'list-divider'}
- %h3
- Collection description:
- %li
- %br
- %p{ :'data-role' => 'fieldcontain'}=collection.description
- %li{ :'data-role' => 'list-divider', :'data-divider-theme' => 'a'}
- %h3 Operations:
- - operations.keys.sort_by { |k| k.to_s }.each do |operation|
- %li{ :'data-role' => 'list-divider'}
- %a{:href => url_for("docs/#{collection.name.to_s}/#{operation}"), :'data-ajax' => 'false'} #{operation}
- %li
- %br
- %p=operations[operation].description
- %li{ :'data-role' => 'list-divider', :'data-divider-theme' => 'a'}
- %h3 Defined features:
- - features.sort_by { |f| f.name.to_s }.each do |feature|
- %li{ :'data-role' => 'list-divider'}=feature.name
- %li
- %br
- %p=feature.description
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/37b80f99/server/views/docs/collection.xml.haml
----------------------------------------------------------------------
diff --git a/server/views/docs/collection.xml.haml b/server/views/docs/collection.xml.haml
deleted file mode 100644
index 4359901..0000000
--- a/server/views/docs/collection.xml.haml
+++ /dev/null
@@ -1,14 +0,0 @@
-%docs{:status => "unsupported"}
- %collection{:url => url_for("docs/#{@collection.name}"), :name => "#{@collection.name}"}
- %description #{@collection.description}
- %operations
- - @operations.keys.sort_by { |k| k.to_s }.each do |operation|
- %operation{:url => url_for("#{@collection.name.to_s}"), :name => "#{operation}", :href => url_for("#{@operations[operation].path}"), :method => "#{@operations[operation].method}"}
- %description #{@operations[operation].description}
- - @operations[operation].each_param do |param|
- %parameter{:name => "#{param.name}", :type => "#{param.type}"}
- %class #{param.klass}
- - unless param.options.empty?
- %values
- - param.options.each do |v|
- %value #{v}
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/37b80f99/server/views/docs/index.html.haml
----------------------------------------------------------------------
diff --git a/server/views/docs/index.html.haml b/server/views/docs/index.html.haml
deleted file mode 100644
index 742e03f..0000000
--- a/server/views/docs/index.html.haml
+++ /dev/null
@@ -1,11 +0,0 @@
-=header "Deltacloud API #{settings.version} documentation", :back => 'false'
-=subheader "Note: This documentation is autogenerated and thus not supported"
-
-%div{ :'data-role' => :content, :'data-theme' => 'c'}
- %ul{ :'data-role' => :listview, :'data-inset' => 'true'}
- - collections.keys.sort_by { |k| k.to_s }.each do |collection|
- %li
- %a{:href => url_for("docs/#{collection}"), :'data-ajax' => 'false'}
- %h3=collection.to_s.capitalize.tr('_', ' ')
- %p=collections[collection].description
-
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/37b80f99/server/views/docs/index.xml.haml
----------------------------------------------------------------------
diff --git a/server/views/docs/index.xml.haml b/server/views/docs/index.xml.haml
deleted file mode 100644
index 18c9f7b..0000000
--- a/server/views/docs/index.xml.haml
+++ /dev/null
@@ -1,5 +0,0 @@
-%docs{:status => "unsupported"}
- - collections.keys.sort_by { |k| k.to_s }.each do |collection|
- %collection{:url => url_for("docs/#{collection}")}
- %name #{collection}
- %description #{collections[collection].description}
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/37b80f99/server/views/docs/operation.html.haml
----------------------------------------------------------------------
diff --git a/server/views/docs/operation.html.haml b/server/views/docs/operation.html.haml
deleted file mode 100644
index 6baed0b..0000000
--- a/server/views/docs/operation.html.haml
+++ /dev/null
@@ -1,33 +0,0 @@
-=header "Deltacloud API #{settings.version} documentation", :back => 'false'
-=subheader "#{action_method(operation.name, collection.name).to_s.upcase} /api/#{collection.name}/#{operation.name}"
-
-%div{ :'data-role' => :content, :'data-theme' => 'c'}
- %ul{ :'data-role' => :listview , :'data-inset' => :true, :'data-divider-theme' => 'd'}
- %li{ :'data-role' => 'list-divider'}
- %h3
- Description:
- %li
- %br
- %p=operation.description
-
- %ul{ :'data-role' => :listview , :'data-inset' => :true, :'data-divider-theme' => 'd'}
- %li{ :'data-role' => 'list-divider', :'data-divider-theme' => 'a'}
- %h3 Parameters:
- - operation.each_param do |p|
- %li{ :'data-role' => 'list-divider'}
- =p.name
- %span{ :class => 'ui-li-count'}
- =[p.type,p.klass].join(',')
- %li
- %br
- %p=p.description.empty? ? '<strong>FIXME:</strong> No description for this parameter' : p.description
- - features.sort { |a,b| a.name.to_s <=> b.name.to_s }.each do |f|
- - f.decl.operation(operation.name).each_param do |p|
- %li{ :'data-role' => 'list-divider'}
- =p.name
- %span{ :class => 'ui-li-count'}
- =[p.type,p.klass].join(',')
- %li
- %br
- %p=p.description.empty? ? '<strong>FIXME:</strong> No description for this parameter' : p.description
-
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/37b80f99/server/views/docs/operation.xml.haml
----------------------------------------------------------------------
diff --git a/server/views/docs/operation.xml.haml b/server/views/docs/operation.xml.haml
deleted file mode 100644
index 3faa5e5..0000000
--- a/server/views/docs/operation.xml.haml
+++ /dev/null
@@ -1,10 +0,0 @@
-%docs{:status => "unsupported"}
- %operation{:url => url_for("docs/#{@collection.name.to_s}"), :name => "#{@operation.name.to_s}", :href => url_for("#{@operation.path}"), :method => "#{@operation.method}"}
- %description #{@operation.description}
- - @operation.each_param do |param|
- %parameter{:name => "#{param.name}", :type => "#{param.type}"}
- %class #{param.klass}
- - unless param.options.empty?
- %values
- - param.options.each do |v|
- %value #{v}
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/37b80f99/server/views/root/index.html.haml
----------------------------------------------------------------------
diff --git a/server/views/root/index.html.haml b/server/views/root/index.html.haml
deleted file mode 100644
index cc2d36e..0000000
--- a/server/views/root/index.html.haml
+++ /dev/null
@@ -1,4 +0,0 @@
-%h1
- Deltacloud:
- = DRIVER.to_s.titlecase
-%a{ :href => api_url} API