Skip to content

Commit

Permalink
Run rake apipie:static to make views according to latest apipie ver…
Browse files Browse the repository at this point in the history
…sion
  • Loading branch information
PanosCodes committed Mar 3, 2023
1 parent 14fc9bd commit 1f8da7b
Show file tree
Hide file tree
Showing 20 changed files with 2,478 additions and 2,056 deletions.
429 changes: 272 additions & 157 deletions doc/apidoc-onepage.html

Large diffs are not rendered by default.

285 changes: 143 additions & 142 deletions doc/apidoc-plain.html

Large diffs are not rendered by default.

97 changes: 67 additions & 30 deletions doc/apidoc.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,36 @@
<head>
<title>API documentation</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link type='text/css' rel='stylesheet' href='./apidoc/stylesheets/bundled/bootstrap.min.css'/>
<link type='text/css' rel='stylesheet' href='./apidoc/stylesheets/bundled/prettify.css'/>
<link type='text/css' rel='stylesheet' href='./apidoc/stylesheets/bundled/bootstrap-responsive.min.css'/>
<link type='text/css' rel='stylesheet' href='./apidoc/stylesheets/application.css'/>
<!-- IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="row">
<div class="container-fluid">
<div class="row-fluid">
<div id='container'>
<ul class='breadcrumb'>
<li class='active'><a href='./apidoc.html'>Demo 2</a></li>
<li class='active'><a href='./apidoc.html'>Demo 1</a></li>

</ul>

<div>Another API description</div>
<div>
<p>Another API description</p>
</div>

<h1 class='page-header'>Resources</h1>

<h2>
<a href='./apidoc/tweets.html'>
Tweets
</a><br>
</a>
<br>
<small></small>
</h2>
<table class='table'>
Expand All @@ -39,31 +44,48 @@ <h2>
</thead>
<tbody>
<tr>
<td><a href='./apidoc/tweets/index.html'>GET /api/v2/users/:user_id/tweets</a></td>
<td width='60%'>List tweets</td>
<td>
<a href='./apidoc/tweets/index.html'>GET /api/v1/users/:user_id/tweets</a>
</td>
<td width='60%'></td>
</tr>
<tr>
<td><a href='./apidoc/tweets/show.html'>GET /api/v2/users/:user_id/tweets/:id</a></td>
<td width='60%'>Show a tweet</td>
<td>
<a href='./apidoc/tweets/show.html'>GET /api/v1/users/:user_id/tweets/:id</a>
</td>
<td width='60%'></td>
</tr>
<tr>
<td><a href='./apidoc/tweets/create.html'>POST /api/v2/users/:user_id/tweets</a></td>
<td width='60%'>Create a tweet</td>
<td>
<a href='./apidoc/tweets/create.html'>POST /api/v1/users/:user_id/tweets</a>
</td>
<td width='60%'></td>
</tr>
<tr>
<td><a href='./apidoc/tweets/update.html'>PUT /api/v2/users/:user_id/tweets/:id</a></td>
<td width='60%'>Update a tweet</td>
<td>
<a href='./apidoc/tweets/update.html'>PATCH /api/v1/users/:user_id/tweets/:id</a>
</td>
<td width='60%'></td>
</tr>
<tr>
<td><a href='./apidoc/tweets/destroy.html'>DELETE /api/v2/users/:user_id/tweets/:id</a></td>
<td width='60%'>Destroy a tweet</td>
<td>
<a href='./apidoc/tweets/update.html'>PUT /api/v1/users/:user_id/tweets/:id</a>
</td>
<td width='60%'></td>
</tr>
<tr>
<td>
<a href='./apidoc/tweets/destroy.html'>DELETE /api/v1/users/:user_id/tweets/:id</a>
</td>
<td width='60%'></td>
</tr>
</tbody>
</table>
<h2>
<a href='./apidoc/users.html'>
Users
</a><br>
</a>
<br>
<small></small>
</h2>
<table class='table'>
Expand All @@ -75,24 +97,40 @@ <h2>
</thead>
<tbody>
<tr>
<td><a href='./apidoc/users/index.html'>GET /api/v2/users</a></td>
<td width='60%'>List users</td>
<td>
<a href='./apidoc/users/index.html'>GET /api/v1/users</a>
</td>
<td width='60%'></td>
</tr>
<tr>
<td>
<a href='./apidoc/users/show.html'>GET /api/v1/users/:id</a>
</td>
<td width='60%'></td>
</tr>
<tr>
<td><a href='./apidoc/users/show.html'>GET /api/v2/users/:id</a></td>
<td width='60%'>Show an user</td>
<td>
<a href='./apidoc/users/create.html'>POST /api/v1/users</a>
</td>
<td width='60%'></td>
</tr>
<tr>
<td><a href='./apidoc/users/create.html'>POST /api/v2/users</a></td>
<td width='60%'>Create an user</td>
<td>
<a href='./apidoc/users/update.html'>PATCH /api/v1/users/:id</a>
</td>
<td width='60%'></td>
</tr>
<tr>
<td><a href='./apidoc/users/update.html'>PUT /api/v2/users/:id</a></td>
<td width='60%'>Update an user</td>
<td>
<a href='./apidoc/users/update.html'>PUT /api/v1/users/:id</a>
</td>
<td width='60%'></td>
</tr>
<tr>
<td><a href='./apidoc/users/destroy.html'>DELETE /api/v2/users/:id</a></td>
<td width='60%'>Destroy an user</td>
<td>
<a href='./apidoc/users/destroy.html'>DELETE /api/v1/users/:id</a>
</td>
<td width='60%'></td>
</tr>
</tbody>
</table>
Expand All @@ -102,10 +140,9 @@ <h2>
</div>
</div>
<hr>
<footer>
</footer>
<footer></footer>
</div>
<script type='text/javascript' src='./apidoc/javascripts/bundled/jquery-1.7.2.js'></script>
<script type='text/javascript' src='./apidoc/javascripts/bundled/jquery.js'></script>
<script type='text/javascript' src='./apidoc/javascripts/bundled/bootstrap-collapse.js'></script>
<script type='text/javascript' src='./apidoc/javascripts/bundled/prettify.js'></script>
<script type='text/javascript' src='./apidoc/javascripts/apipie.js'></script>
Expand Down
111 changes: 70 additions & 41 deletions doc/apidoc/javascripts/bundled/bootstrap-collapse.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* =============================================================
* bootstrap-collapse.js v2.0.2
* http://twitter.github.com/bootstrap/javascript.html#collapse
* bootstrap-collapse.js v2.3.2
* http://getbootstrap.com/2.3.2/javascript.html#collapse
* =============================================================
* Copyright 2012 Twitter, Inc.
* Copyright 2013 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -17,16 +17,21 @@
* limitations under the License.
* ============================================================ */

!function( $ ){

"use strict"
!function ($) {

var Collapse = function ( element, options ) {
this.$element = $(element)
"use strict"; // jshint ;_;


/* COLLAPSE PUBLIC CLASS DEFINITION
* ================================ */

var Collapse = function (element, options) {
this.$element = $(element)
this.options = $.extend({}, $.fn.collapse.defaults, options)

if (this.options["parent"]) {
this.$parent = $(this.options["parent"])
if (this.options.parent) {
this.$parent = $(this.options.parent)
}

this.options.toggle && this.toggle()
Expand All @@ -42,73 +47,89 @@
}

, show: function () {
var dimension = this.dimension()
, scroll = $.camelCase(['scroll', dimension].join('-'))
, actives = this.$parent && this.$parent.find('.in')
var dimension
, scroll
, actives
, hasData

if (this.transitioning || this.$element.hasClass('in')) return

dimension = this.dimension()
scroll = $.camelCase(['scroll', dimension].join('-'))
actives = this.$parent && this.$parent.find('> .accordion-group > .in')

if (actives && actives.length) {
hasData = actives.data('collapse')
if (hasData && hasData.transitioning) return
actives.collapse('hide')
hasData || actives.data('collapse', null)
}

this.$element[dimension](0)
this.transition('addClass', 'show', 'shown')
this.$element[dimension](this.$element[0][scroll])

this.transition('addClass', $.Event('show'), 'shown')
$.support.transition && this.$element[dimension](this.$element[0][scroll])
}

, hide: function () {
var dimension = this.dimension()
var dimension
if (this.transitioning || !this.$element.hasClass('in')) return
dimension = this.dimension()
this.reset(this.$element[dimension]())
this.transition('removeClass', 'hide', 'hidden')
this.transition('removeClass', $.Event('hide'), 'hidden')
this.$element[dimension](0)
}

, reset: function ( size ) {
, reset: function (size) {
var dimension = this.dimension()

this.$element
.removeClass('collapse')
[dimension](size || 'auto')
[0].offsetWidth

this.$element[size ? 'addClass' : 'removeClass']('collapse')
this.$element[size !== null ? 'addClass' : 'removeClass']('collapse')

return this
}

, transition: function ( method, startEvent, completeEvent ) {
, transition: function (method, startEvent, completeEvent) {
var that = this
, complete = function () {
if (startEvent == 'show') that.reset()
if (startEvent.type == 'show') that.reset()
that.transitioning = 0
that.$element.trigger(completeEvent)
}

this.$element
.trigger(startEvent)
[method]('in')
this.$element.trigger(startEvent)

if (startEvent.isDefaultPrevented()) return

this.transitioning = 1

this.$element[method]('in')

$.support.transition && this.$element.hasClass('collapse') ?
this.$element.one($.support.transition.end, complete) :
complete()
}
}

, toggle: function () {
this[this.$element.hasClass('in') ? 'hide' : 'show']()
}
}

}

/* COLLAPSIBLE PLUGIN DEFINITION
* ============================== */

$.fn.collapse = function ( option ) {
/* COLLAPSE PLUGIN DEFINITION
* ========================== */

var old = $.fn.collapse

$.fn.collapse = function (option) {
return this.each(function () {
var $this = $(this)
, data = $this.data('collapse')
, options = typeof option == 'object' && option
, options = $.extend({}, $.fn.collapse.defaults, $this.data(), typeof option == 'object' && option)
if (!data) $this.data('collapse', (data = new Collapse(this, options)))
if (typeof option == 'string') data[option]()
})
Expand All @@ -121,18 +142,26 @@
$.fn.collapse.Constructor = Collapse


/* COLLAPSIBLE DATA-API
/* COLLAPSE NO CONFLICT
* ==================== */

$(function () {
$('body').on('click.collapse.data-api', '[data-toggle=collapse]', function ( e ) {
var $this = $(this), href
, target = $this.attr('data-target')
|| e.preventDefault()
|| (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7
, option = $(target).data('collapse') ? 'toggle' : $this.data()
$(target).collapse(option)
})
$.fn.collapse.noConflict = function () {
$.fn.collapse = old
return this
}


/* COLLAPSE DATA-API
* ================= */

$(document).on('click.collapse.data-api', '[data-toggle=collapse]', function (e) {
var $this = $(this), href
, target = $this.attr('data-target')
|| e.preventDefault()
|| (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7
, option = $(target).data('collapse') ? 'toggle' : $this.data()
$this[$(target).hasClass('in') ? 'addClass' : 'removeClass']('collapsed')
$(target).collapse(option)
})

}( window.jQuery );
}(window.jQuery);
Loading

0 comments on commit 1f8da7b

Please sign in to comment.