From 3adc72119375da170a94d30f2026b54afce757d4 Mon Sep 17 00:00:00 2001 From: Howard Butler Date: Wed, 5 Sep 2012 10:20:25 -0500 Subject: [PATCH] start working on sphinx-bootstrap conversion for pointcloud.org --- doc/_templates/dummy | 1 - doc/_templates/layout.html | 58 - doc/_themes/bootstrap/bootstrap.js | 2038 ++++++ doc/_themes/bootstrap/bootstrap.min.js | 7 + .../bootstrap}/indexsidebar.html | 9 - doc/_themes/bootstrap/layout.html | 278 + .../bootstrap/static/bootstrap-default.css | 5624 ++++++++++++++ .../static/bootstrap-default.min.css | 9 + .../bootstrap/static/bootstrap-dropdown.js | 81 + .../bootstrap/static/bootstrap-engineauth.css | 5700 +++++++++++++++ .../static/bootstrap-engineauth.min.css | 829 +++ .../bootstrap/static/bootstrap-responsive.css | 1040 +++ .../static/bootstrap-responsive.min.css | 9 + .../bootstrap/static/bootstrap-sapling.css | 6484 +++++++++++++++++ doc/_themes/bootstrap/static/jquery.js | 4 + .../bootstrap/static/sphinx-bootstrap.css | 181 + doc/_themes/bootstrap/theme.conf | 16 + doc/conf.py | 24 +- 18 files changed, 22316 insertions(+), 76 deletions(-) delete mode 100644 doc/_templates/dummy delete mode 100644 doc/_templates/layout.html create mode 100755 doc/_themes/bootstrap/bootstrap.js create mode 100755 doc/_themes/bootstrap/bootstrap.min.js rename doc/{_templates => _themes/bootstrap}/indexsidebar.html (66%) create mode 100644 doc/_themes/bootstrap/layout.html create mode 100644 doc/_themes/bootstrap/static/bootstrap-default.css create mode 100644 doc/_themes/bootstrap/static/bootstrap-default.min.css create mode 100644 doc/_themes/bootstrap/static/bootstrap-dropdown.js create mode 100755 doc/_themes/bootstrap/static/bootstrap-engineauth.css create mode 100755 doc/_themes/bootstrap/static/bootstrap-engineauth.min.css create mode 100644 doc/_themes/bootstrap/static/bootstrap-responsive.css create mode 100644 doc/_themes/bootstrap/static/bootstrap-responsive.min.css create mode 100644 doc/_themes/bootstrap/static/bootstrap-sapling.css create mode 100644 doc/_themes/bootstrap/static/jquery.js create mode 100644 doc/_themes/bootstrap/static/sphinx-bootstrap.css create mode 100644 doc/_themes/bootstrap/theme.conf diff --git a/doc/_templates/dummy b/doc/_templates/dummy deleted file mode 100644 index 8d1c8b69c3..0000000000 --- a/doc/_templates/dummy +++ /dev/null @@ -1 +0,0 @@ - diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html deleted file mode 100644 index 67402670ba..0000000000 --- a/doc/_templates/layout.html +++ /dev/null @@ -1,58 +0,0 @@ -{% extends "!layout.html" %} - -{% block extrahead %} - -{{ super() }} -{% endblock %} - -{% block relbar1 %} - - - - - - - - - -
- PDAL banner - - Home | - Docs | - github | - FAQ | - Lists | - Download -
- -
- -{{ super() }} -{% endblock %} - -{# put the sidebar before the body #} -{% block sidebar1 %}{% endblock %} -{% block sidebar2 %}{{ sidebar() }}{% endblock %} - -{% block footer %} - - -{% endblock %} diff --git a/doc/_themes/bootstrap/bootstrap.js b/doc/_themes/bootstrap/bootstrap.js new file mode 100755 index 0000000000..39ad031e4f --- /dev/null +++ b/doc/_themes/bootstrap/bootstrap.js @@ -0,0 +1,2038 @@ +/* =================================================== + * bootstrap-transition.js v2.1.0 + * http://twitter.github.com/bootstrap/javascript.html#transitions + * =================================================== + * Copyright 2012 Twitter, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ========================================================== */ + + +!function ($) { + + $(function () { + + "use strict"; // jshint ;_; + + + /* CSS TRANSITION SUPPORT (http://www.modernizr.com/) + * ======================================================= */ + + $.support.transition = (function () { + + var transitionEnd = (function () { + + var el = document.createElement('bootstrap') + , transEndEventNames = { + 'WebkitTransition' : 'webkitTransitionEnd' + , 'MozTransition' : 'transitionend' + , 'OTransition' : 'oTransitionEnd otransitionend' + , 'transition' : 'transitionend' + } + , name + + for (name in transEndEventNames){ + if (el.style[name] !== undefined) { + return transEndEventNames[name] + } + } + + }()) + + return transitionEnd && { + end: transitionEnd + } + + })() + + }) + +}(window.jQuery); +/* ========================================================= + * bootstrap-modal.js v2.1.0 + * http://twitter.github.com/bootstrap/javascript.html#modals + * ========================================================= + * Copyright 2012 Twitter, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ========================================================= */ + + +!function ($) { + + "use strict"; // jshint ;_; + + + /* MODAL CLASS DEFINITION + * ====================== */ + + var Modal = function (element, options) { + this.options = options + this.$element = $(element) + .delegate('[data-dismiss="modal"]', 'click.dismiss.modal', $.proxy(this.hide, this)) + this.options.remote && this.$element.find('.modal-body').load(this.options.remote) + } + + Modal.prototype = { + + constructor: Modal + + , toggle: function () { + return this[!this.isShown ? 'show' : 'hide']() + } + + , show: function () { + var that = this + , e = $.Event('show') + + this.$element.trigger(e) + + if (this.isShown || e.isDefaultPrevented()) return + + $('body').addClass('modal-open') + + this.isShown = true + + this.escape() + + this.backdrop(function () { + var transition = $.support.transition && that.$element.hasClass('fade') + + if (!that.$element.parent().length) { + that.$element.appendTo(document.body) //don't move modals dom position + } + + that.$element + .show() + + if (transition) { + that.$element[0].offsetWidth // force reflow + } + + that.$element + .addClass('in') + .attr('aria-hidden', false) + .focus() + + that.enforceFocus() + + transition ? + that.$element.one($.support.transition.end, function () { that.$element.trigger('shown') }) : + that.$element.trigger('shown') + + }) + } + + , hide: function (e) { + e && e.preventDefault() + + var that = this + + e = $.Event('hide') + + this.$element.trigger(e) + + if (!this.isShown || e.isDefaultPrevented()) return + + this.isShown = false + + $('body').removeClass('modal-open') + + this.escape() + + $(document).off('focusin.modal') + + this.$element + .removeClass('in') + .attr('aria-hidden', true) + + $.support.transition && this.$element.hasClass('fade') ? + this.hideWithTransition() : + this.hideModal() + } + + , enforceFocus: function () { + var that = this + $(document).on('focusin.modal', function (e) { + if (that.$element[0] !== e.target && !that.$element.has(e.target).length) { + that.$element.focus() + } + }) + } + + , escape: function () { + var that = this + if (this.isShown && this.options.keyboard) { + this.$element.on('keyup.dismiss.modal', function ( e ) { + e.which == 27 && that.hide() + }) + } else if (!this.isShown) { + this.$element.off('keyup.dismiss.modal') + } + } + + , hideWithTransition: function () { + var that = this + , timeout = setTimeout(function () { + that.$element.off($.support.transition.end) + that.hideModal() + }, 500) + + this.$element.one($.support.transition.end, function () { + clearTimeout(timeout) + that.hideModal() + }) + } + + , hideModal: function (that) { + this.$element + .hide() + .trigger('hidden') + + this.backdrop() + } + + , removeBackdrop: function () { + this.$backdrop.remove() + this.$backdrop = null + } + + , backdrop: function (callback) { + var that = this + , animate = this.$element.hasClass('fade') ? 'fade' : '' + + if (this.isShown && this.options.backdrop) { + var doAnimate = $.support.transition && animate + + this.$backdrop = $('