diff --git a/_config.yml b/_config.yml index 3d1aad742e..e3faa51386 100644 --- a/_config.yml +++ b/_config.yml @@ -3,5 +3,5 @@ permalink: pretty pygments: true paginate: 5 -destination: ./documentation -exclude: [docs, /fonts, /js, less, node_modules, .travis.yml, CHANGELOG.md, component.json, composer.json, CONTRIBUTING.md, LICENSE, Makefile, package.json, README.md] \ No newline at end of file +source: ./docs +destination: ./_gh_pages \ No newline at end of file diff --git a/assets/css/bootstrap.css b/_gh_pages/assets/css/bootstrap.css similarity index 100% rename from assets/css/bootstrap.css rename to _gh_pages/assets/css/bootstrap.css diff --git a/assets/css/docs.css b/_gh_pages/assets/css/docs.css similarity index 100% rename from assets/css/docs.css rename to _gh_pages/assets/css/docs.css diff --git a/assets/css/old_docs.css b/_gh_pages/assets/css/old_docs.css similarity index 100% rename from assets/css/old_docs.css rename to _gh_pages/assets/css/old_docs.css diff --git a/assets/fonts/glyphiconshalflings-regular.eot b/_gh_pages/assets/fonts/glyphiconshalflings-regular.eot similarity index 100% rename from assets/fonts/glyphiconshalflings-regular.eot rename to _gh_pages/assets/fonts/glyphiconshalflings-regular.eot diff --git a/assets/fonts/glyphiconshalflings-regular.otf b/_gh_pages/assets/fonts/glyphiconshalflings-regular.otf similarity index 100% rename from assets/fonts/glyphiconshalflings-regular.otf rename to _gh_pages/assets/fonts/glyphiconshalflings-regular.otf diff --git a/assets/fonts/glyphiconshalflings-regular.svg b/_gh_pages/assets/fonts/glyphiconshalflings-regular.svg similarity index 100% rename from assets/fonts/glyphiconshalflings-regular.svg rename to _gh_pages/assets/fonts/glyphiconshalflings-regular.svg diff --git a/assets/fonts/glyphiconshalflings-regular.ttf b/_gh_pages/assets/fonts/glyphiconshalflings-regular.ttf similarity index 100% rename from assets/fonts/glyphiconshalflings-regular.ttf rename to _gh_pages/assets/fonts/glyphiconshalflings-regular.ttf diff --git a/assets/fonts/glyphiconshalflings-regular.woff b/_gh_pages/assets/fonts/glyphiconshalflings-regular.woff similarity index 100% rename from assets/fonts/glyphiconshalflings-regular.woff rename to _gh_pages/assets/fonts/glyphiconshalflings-regular.woff diff --git a/assets/ico/apple-touch-icon-114-precomposed.png b/_gh_pages/assets/ico/apple-touch-icon-114-precomposed.png similarity index 100% rename from assets/ico/apple-touch-icon-114-precomposed.png rename to _gh_pages/assets/ico/apple-touch-icon-114-precomposed.png diff --git a/assets/ico/apple-touch-icon-144-precomposed.png b/_gh_pages/assets/ico/apple-touch-icon-144-precomposed.png similarity index 100% rename from assets/ico/apple-touch-icon-144-precomposed.png rename to _gh_pages/assets/ico/apple-touch-icon-144-precomposed.png diff --git a/assets/ico/apple-touch-icon-57-precomposed.png b/_gh_pages/assets/ico/apple-touch-icon-57-precomposed.png similarity index 100% rename from assets/ico/apple-touch-icon-57-precomposed.png rename to _gh_pages/assets/ico/apple-touch-icon-57-precomposed.png diff --git a/assets/ico/apple-touch-icon-72-precomposed.png b/_gh_pages/assets/ico/apple-touch-icon-72-precomposed.png similarity index 100% rename from assets/ico/apple-touch-icon-72-precomposed.png rename to _gh_pages/assets/ico/apple-touch-icon-72-precomposed.png diff --git a/assets/ico/favicon.ico b/_gh_pages/assets/ico/favicon.ico similarity index 100% rename from assets/ico/favicon.ico rename to _gh_pages/assets/ico/favicon.ico diff --git a/assets/ico/favicon.png b/_gh_pages/assets/ico/favicon.png similarity index 100% rename from assets/ico/favicon.png rename to _gh_pages/assets/ico/favicon.png diff --git a/assets/img/bootstrap-docs-readme.png b/_gh_pages/assets/img/bootstrap-docs-readme.png similarity index 100% rename from assets/img/bootstrap-docs-readme.png rename to _gh_pages/assets/img/bootstrap-docs-readme.png diff --git a/assets/img/bootstrap-mdo-sfmoma-01.jpg b/_gh_pages/assets/img/bootstrap-mdo-sfmoma-01.jpg similarity index 100% rename from assets/img/bootstrap-mdo-sfmoma-01.jpg rename to _gh_pages/assets/img/bootstrap-mdo-sfmoma-01.jpg diff --git a/assets/img/bootstrap-mdo-sfmoma-02.jpg b/_gh_pages/assets/img/bootstrap-mdo-sfmoma-02.jpg similarity index 100% rename from assets/img/bootstrap-mdo-sfmoma-02.jpg rename to _gh_pages/assets/img/bootstrap-mdo-sfmoma-02.jpg diff --git a/assets/img/bootstrap-mdo-sfmoma-03.jpg b/_gh_pages/assets/img/bootstrap-mdo-sfmoma-03.jpg similarity index 100% rename from assets/img/bootstrap-mdo-sfmoma-03.jpg rename to _gh_pages/assets/img/bootstrap-mdo-sfmoma-03.jpg diff --git a/assets/img/bs-docs-bootstrap-features.png b/_gh_pages/assets/img/bs-docs-bootstrap-features.png similarity index 100% rename from assets/img/bs-docs-bootstrap-features.png rename to _gh_pages/assets/img/bs-docs-bootstrap-features.png diff --git a/assets/img/bs-docs-masthead-pattern.png b/_gh_pages/assets/img/bs-docs-masthead-pattern.png similarity index 100% rename from assets/img/bs-docs-masthead-pattern.png rename to _gh_pages/assets/img/bs-docs-masthead-pattern.png diff --git a/assets/img/bs-docs-responsive-illustrations.png b/_gh_pages/assets/img/bs-docs-responsive-illustrations.png similarity index 100% rename from assets/img/bs-docs-responsive-illustrations.png rename to _gh_pages/assets/img/bs-docs-responsive-illustrations.png diff --git a/assets/img/bs-docs-twitter-github.png b/_gh_pages/assets/img/bs-docs-twitter-github.png similarity index 100% rename from assets/img/bs-docs-twitter-github.png rename to _gh_pages/assets/img/bs-docs-twitter-github.png diff --git a/assets/img/example-sites/example-8020select.jpg b/_gh_pages/assets/img/example-sites/example-8020select.jpg similarity index 100% rename from assets/img/example-sites/example-8020select.jpg rename to _gh_pages/assets/img/example-sites/example-8020select.jpg diff --git a/assets/img/example-sites/example-adoptahydrant.jpg b/_gh_pages/assets/img/example-sites/example-adoptahydrant.jpg similarity index 100% rename from assets/img/example-sites/example-adoptahydrant.jpg rename to _gh_pages/assets/img/example-sites/example-adoptahydrant.jpg diff --git a/assets/img/example-sites/example-athey-creek.jpg b/_gh_pages/assets/img/example-sites/example-athey-creek.jpg similarity index 100% rename from assets/img/example-sites/example-athey-creek.jpg rename to _gh_pages/assets/img/example-sites/example-athey-creek.jpg diff --git a/assets/img/example-sites/example-breakingnews.jpg b/_gh_pages/assets/img/example-sites/example-breakingnews.jpg similarity index 100% rename from assets/img/example-sites/example-breakingnews.jpg rename to _gh_pages/assets/img/example-sites/example-breakingnews.jpg diff --git a/assets/img/example-sites/example-codecademy.jpg b/_gh_pages/assets/img/example-sites/example-codecademy.jpg similarity index 100% rename from assets/img/example-sites/example-codecademy.jpg rename to _gh_pages/assets/img/example-sites/example-codecademy.jpg diff --git a/assets/img/example-sites/example-delicious.jpg b/_gh_pages/assets/img/example-sites/example-delicious.jpg similarity index 100% rename from assets/img/example-sites/example-delicious.jpg rename to _gh_pages/assets/img/example-sites/example-delicious.jpg diff --git a/assets/img/example-sites/example-desk.jpg b/_gh_pages/assets/img/example-sites/example-desk.jpg similarity index 100% rename from assets/img/example-sites/example-desk.jpg rename to _gh_pages/assets/img/example-sites/example-desk.jpg diff --git a/assets/img/example-sites/example-divshot.jpg b/_gh_pages/assets/img/example-sites/example-divshot.jpg similarity index 100% rename from assets/img/example-sites/example-divshot.jpg rename to _gh_pages/assets/img/example-sites/example-divshot.jpg diff --git a/assets/img/example-sites/example-easel.jpg b/_gh_pages/assets/img/example-sites/example-easel.jpg similarity index 100% rename from assets/img/example-sites/example-easel.jpg rename to _gh_pages/assets/img/example-sites/example-easel.jpg diff --git a/assets/img/example-sites/example-fleetio.jpg b/_gh_pages/assets/img/example-sites/example-fleetio.jpg similarity index 100% rename from assets/img/example-sites/example-fleetio.jpg rename to _gh_pages/assets/img/example-sites/example-fleetio.jpg diff --git a/assets/img/example-sites/example-gathercontent.jpg b/_gh_pages/assets/img/example-sites/example-gathercontent.jpg similarity index 100% rename from assets/img/example-sites/example-gathercontent.jpg rename to _gh_pages/assets/img/example-sites/example-gathercontent.jpg diff --git a/assets/img/example-sites/example-gosquared.jpg b/_gh_pages/assets/img/example-sites/example-gosquared.jpg similarity index 100% rename from assets/img/example-sites/example-gosquared.jpg rename to _gh_pages/assets/img/example-sites/example-gosquared.jpg diff --git a/assets/img/example-sites/example-jetstrap.jpg b/_gh_pages/assets/img/example-sites/example-jetstrap.jpg similarity index 100% rename from assets/img/example-sites/example-jetstrap.jpg rename to _gh_pages/assets/img/example-sites/example-jetstrap.jpg diff --git a/assets/img/example-sites/example-jshint.jpg b/_gh_pages/assets/img/example-sites/example-jshint.jpg similarity index 100% rename from assets/img/example-sites/example-jshint.jpg rename to _gh_pages/assets/img/example-sites/example-jshint.jpg diff --git a/assets/img/example-sites/example-jumpstart-ui.jpg b/_gh_pages/assets/img/example-sites/example-jumpstart-ui.jpg similarity index 100% rename from assets/img/example-sites/example-jumpstart-ui.jpg rename to _gh_pages/assets/img/example-sites/example-jumpstart-ui.jpg diff --git a/assets/img/example-sites/example-karma.jpg b/_gh_pages/assets/img/example-sites/example-karma.jpg similarity index 100% rename from assets/img/example-sites/example-karma.jpg rename to _gh_pages/assets/img/example-sites/example-karma.jpg diff --git a/assets/img/example-sites/example-kippt.jpg b/_gh_pages/assets/img/example-sites/example-kippt.jpg similarity index 100% rename from assets/img/example-sites/example-kippt.jpg rename to _gh_pages/assets/img/example-sites/example-kippt.jpg diff --git a/assets/img/example-sites/example-metrotwit.jpg b/_gh_pages/assets/img/example-sites/example-metrotwit.jpg similarity index 100% rename from assets/img/example-sites/example-metrotwit.jpg rename to _gh_pages/assets/img/example-sites/example-metrotwit.jpg diff --git a/assets/img/example-sites/example-soundready.jpg b/_gh_pages/assets/img/example-sites/example-soundready.jpg similarity index 100% rename from assets/img/example-sites/example-soundready.jpg rename to _gh_pages/assets/img/example-sites/example-soundready.jpg diff --git a/assets/img/example-sites/example-synco.jpg b/_gh_pages/assets/img/example-sites/example-synco.jpg similarity index 100% rename from assets/img/example-sites/example-synco.jpg rename to _gh_pages/assets/img/example-sites/example-synco.jpg diff --git a/assets/img/example-sites/example-tonx.jpg b/_gh_pages/assets/img/example-sites/example-tonx.jpg similarity index 100% rename from assets/img/example-sites/example-tonx.jpg rename to _gh_pages/assets/img/example-sites/example-tonx.jpg diff --git a/assets/img/example-sites/example-twitter-translation-center.jpg b/_gh_pages/assets/img/example-sites/example-twitter-translation-center.jpg similarity index 100% rename from assets/img/example-sites/example-twitter-translation-center.jpg rename to _gh_pages/assets/img/example-sites/example-twitter-translation-center.jpg diff --git a/assets/img/examples/bootstrap-example-carousel.png b/_gh_pages/assets/img/examples/bootstrap-example-carousel.png similarity index 100% rename from assets/img/examples/bootstrap-example-carousel.png rename to _gh_pages/assets/img/examples/bootstrap-example-carousel.png diff --git a/assets/img/examples/bootstrap-example-fluid.png b/_gh_pages/assets/img/examples/bootstrap-example-fluid.png similarity index 100% rename from assets/img/examples/bootstrap-example-fluid.png rename to _gh_pages/assets/img/examples/bootstrap-example-fluid.png diff --git a/assets/img/examples/bootstrap-example-jumbotron-narrow.png b/_gh_pages/assets/img/examples/bootstrap-example-jumbotron-narrow.png similarity index 100% rename from assets/img/examples/bootstrap-example-jumbotron-narrow.png rename to _gh_pages/assets/img/examples/bootstrap-example-jumbotron-narrow.png diff --git a/assets/img/examples/bootstrap-example-justified-nav.png b/_gh_pages/assets/img/examples/bootstrap-example-justified-nav.png similarity index 100% rename from assets/img/examples/bootstrap-example-justified-nav.png rename to _gh_pages/assets/img/examples/bootstrap-example-justified-nav.png diff --git a/assets/img/examples/bootstrap-example-marketing.png b/_gh_pages/assets/img/examples/bootstrap-example-marketing.png similarity index 100% rename from assets/img/examples/bootstrap-example-marketing.png rename to _gh_pages/assets/img/examples/bootstrap-example-marketing.png diff --git a/assets/img/examples/bootstrap-example-signin.png b/_gh_pages/assets/img/examples/bootstrap-example-signin.png similarity index 100% rename from assets/img/examples/bootstrap-example-signin.png rename to _gh_pages/assets/img/examples/bootstrap-example-signin.png diff --git a/assets/img/examples/bootstrap-example-starter.png b/_gh_pages/assets/img/examples/bootstrap-example-starter.png similarity index 100% rename from assets/img/examples/bootstrap-example-starter.png rename to _gh_pages/assets/img/examples/bootstrap-example-starter.png diff --git a/assets/img/examples/bootstrap-example-sticky-footer.png b/_gh_pages/assets/img/examples/bootstrap-example-sticky-footer.png similarity index 100% rename from assets/img/examples/bootstrap-example-sticky-footer.png rename to _gh_pages/assets/img/examples/bootstrap-example-sticky-footer.png diff --git a/assets/img/examples/browser-icon-chrome.png b/_gh_pages/assets/img/examples/browser-icon-chrome.png similarity index 100% rename from assets/img/examples/browser-icon-chrome.png rename to _gh_pages/assets/img/examples/browser-icon-chrome.png diff --git a/assets/img/examples/browser-icon-firefox.png b/_gh_pages/assets/img/examples/browser-icon-firefox.png similarity index 100% rename from assets/img/examples/browser-icon-firefox.png rename to _gh_pages/assets/img/examples/browser-icon-firefox.png diff --git a/assets/img/examples/browser-icon-safari.png b/_gh_pages/assets/img/examples/browser-icon-safari.png similarity index 100% rename from assets/img/examples/browser-icon-safari.png rename to _gh_pages/assets/img/examples/browser-icon-safari.png diff --git a/assets/img/examples/slide-01.jpg b/_gh_pages/assets/img/examples/slide-01.jpg similarity index 100% rename from assets/img/examples/slide-01.jpg rename to _gh_pages/assets/img/examples/slide-01.jpg diff --git a/assets/img/examples/slide-02.jpg b/_gh_pages/assets/img/examples/slide-02.jpg similarity index 100% rename from assets/img/examples/slide-02.jpg rename to _gh_pages/assets/img/examples/slide-02.jpg diff --git a/assets/img/examples/slide-03.jpg b/_gh_pages/assets/img/examples/slide-03.jpg similarity index 100% rename from assets/img/examples/slide-03.jpg rename to _gh_pages/assets/img/examples/slide-03.jpg diff --git a/assets/img/grid-baseline-20px.png b/_gh_pages/assets/img/grid-baseline-20px.png similarity index 100% rename from assets/img/grid-baseline-20px.png rename to _gh_pages/assets/img/grid-baseline-20px.png diff --git a/assets/js/README.md b/_gh_pages/assets/js/README.md similarity index 100% rename from assets/js/README.md rename to _gh_pages/assets/js/README.md diff --git a/assets/js/application.js b/_gh_pages/assets/js/application.js similarity index 100% rename from assets/js/application.js rename to _gh_pages/assets/js/application.js diff --git a/assets/js/bootstrap-affix.js b/_gh_pages/assets/js/bootstrap-affix.js similarity index 100% rename from assets/js/bootstrap-affix.js rename to _gh_pages/assets/js/bootstrap-affix.js diff --git a/assets/js/bootstrap-alert.js b/_gh_pages/assets/js/bootstrap-alert.js similarity index 100% rename from assets/js/bootstrap-alert.js rename to _gh_pages/assets/js/bootstrap-alert.js diff --git a/assets/js/bootstrap-button.js b/_gh_pages/assets/js/bootstrap-button.js similarity index 100% rename from assets/js/bootstrap-button.js rename to _gh_pages/assets/js/bootstrap-button.js diff --git a/assets/js/bootstrap-carousel.js b/_gh_pages/assets/js/bootstrap-carousel.js similarity index 100% rename from assets/js/bootstrap-carousel.js rename to _gh_pages/assets/js/bootstrap-carousel.js diff --git a/assets/js/bootstrap-collapse.js b/_gh_pages/assets/js/bootstrap-collapse.js similarity index 100% rename from assets/js/bootstrap-collapse.js rename to _gh_pages/assets/js/bootstrap-collapse.js diff --git a/assets/js/bootstrap-dropdown.js b/_gh_pages/assets/js/bootstrap-dropdown.js similarity index 100% rename from assets/js/bootstrap-dropdown.js rename to _gh_pages/assets/js/bootstrap-dropdown.js diff --git a/assets/js/bootstrap-modal.js b/_gh_pages/assets/js/bootstrap-modal.js similarity index 100% rename from assets/js/bootstrap-modal.js rename to _gh_pages/assets/js/bootstrap-modal.js diff --git a/assets/js/bootstrap-popover.js b/_gh_pages/assets/js/bootstrap-popover.js similarity index 100% rename from assets/js/bootstrap-popover.js rename to _gh_pages/assets/js/bootstrap-popover.js diff --git a/assets/js/bootstrap-scrollspy.js b/_gh_pages/assets/js/bootstrap-scrollspy.js similarity index 100% rename from assets/js/bootstrap-scrollspy.js rename to _gh_pages/assets/js/bootstrap-scrollspy.js diff --git a/assets/js/bootstrap-tab.js b/_gh_pages/assets/js/bootstrap-tab.js similarity index 100% rename from assets/js/bootstrap-tab.js rename to _gh_pages/assets/js/bootstrap-tab.js diff --git a/assets/js/bootstrap-tooltip.js b/_gh_pages/assets/js/bootstrap-tooltip.js similarity index 100% rename from assets/js/bootstrap-tooltip.js rename to _gh_pages/assets/js/bootstrap-tooltip.js diff --git a/assets/js/bootstrap-transition.js b/_gh_pages/assets/js/bootstrap-transition.js similarity index 100% rename from assets/js/bootstrap-transition.js rename to _gh_pages/assets/js/bootstrap-transition.js diff --git a/assets/js/bootstrap-typeahead.js b/_gh_pages/assets/js/bootstrap-typeahead.js similarity index 100% rename from assets/js/bootstrap-typeahead.js rename to _gh_pages/assets/js/bootstrap-typeahead.js diff --git a/assets/js/bootstrap.js b/_gh_pages/assets/js/bootstrap.js similarity index 100% rename from assets/js/bootstrap.js rename to _gh_pages/assets/js/bootstrap.js diff --git a/assets/js/bootstrap.min.js b/_gh_pages/assets/js/bootstrap.min.js similarity index 100% rename from assets/js/bootstrap.min.js rename to _gh_pages/assets/js/bootstrap.min.js diff --git a/assets/js/google-code-prettify/prettify.css b/_gh_pages/assets/js/google-code-prettify/prettify.css similarity index 100% rename from assets/js/google-code-prettify/prettify.css rename to _gh_pages/assets/js/google-code-prettify/prettify.css diff --git a/assets/js/google-code-prettify/prettify.js b/_gh_pages/assets/js/google-code-prettify/prettify.js similarity index 100% rename from assets/js/google-code-prettify/prettify.js rename to _gh_pages/assets/js/google-code-prettify/prettify.js diff --git a/assets/js/holder/holder.js b/_gh_pages/assets/js/holder/holder.js similarity index 100% rename from assets/js/holder/holder.js rename to _gh_pages/assets/js/holder/holder.js diff --git a/assets/js/html5shiv.js b/_gh_pages/assets/js/html5shiv.js similarity index 100% rename from assets/js/html5shiv.js rename to _gh_pages/assets/js/html5shiv.js diff --git a/assets/js/jquery.js b/_gh_pages/assets/js/jquery.js similarity index 100% rename from assets/js/jquery.js rename to _gh_pages/assets/js/jquery.js diff --git a/assets/js/respond/respond.min.js b/_gh_pages/assets/js/respond/respond.min.js similarity index 100% rename from assets/js/respond/respond.min.js rename to _gh_pages/assets/js/respond/respond.min.js diff --git a/documentation/components/index.html b/_gh_pages/components/index.html similarity index 100% rename from documentation/components/index.html rename to _gh_pages/components/index.html diff --git a/documentation/css/index.html b/_gh_pages/css/index.html similarity index 100% rename from documentation/css/index.html rename to _gh_pages/css/index.html diff --git a/documentation/customize/index.html b/_gh_pages/customize/index.html similarity index 100% rename from documentation/customize/index.html rename to _gh_pages/customize/index.html diff --git a/documentation/examples/carousel.html b/_gh_pages/examples/carousel.html similarity index 100% rename from documentation/examples/carousel.html rename to _gh_pages/examples/carousel.html diff --git a/documentation/examples/fluid.html b/_gh_pages/examples/fluid.html similarity index 100% rename from documentation/examples/fluid.html rename to _gh_pages/examples/fluid.html diff --git a/documentation/examples/jumbotron-narrow.html b/_gh_pages/examples/jumbotron-narrow.html similarity index 100% rename from documentation/examples/jumbotron-narrow.html rename to _gh_pages/examples/jumbotron-narrow.html diff --git a/documentation/examples/jumbotron.html b/_gh_pages/examples/jumbotron.html similarity index 100% rename from documentation/examples/jumbotron.html rename to _gh_pages/examples/jumbotron.html diff --git a/documentation/examples/justified-nav.html b/_gh_pages/examples/justified-nav.html similarity index 100% rename from documentation/examples/justified-nav.html rename to _gh_pages/examples/justified-nav.html diff --git a/documentation/examples/signin.html b/_gh_pages/examples/signin.html similarity index 100% rename from documentation/examples/signin.html rename to _gh_pages/examples/signin.html diff --git a/documentation/examples/starter-template.html b/_gh_pages/examples/starter-template.html similarity index 100% rename from documentation/examples/starter-template.html rename to _gh_pages/examples/starter-template.html diff --git a/documentation/examples/sticky-footer-navbar.html b/_gh_pages/examples/sticky-footer-navbar.html similarity index 100% rename from documentation/examples/sticky-footer-navbar.html rename to _gh_pages/examples/sticky-footer-navbar.html diff --git a/documentation/examples/sticky-footer.html b/_gh_pages/examples/sticky-footer.html similarity index 100% rename from documentation/examples/sticky-footer.html rename to _gh_pages/examples/sticky-footer.html diff --git a/documentation/getting-started/index.html b/_gh_pages/getting-started/index.html similarity index 100% rename from documentation/getting-started/index.html rename to _gh_pages/getting-started/index.html diff --git a/documentation/index.html b/_gh_pages/index.html similarity index 100% rename from documentation/index.html rename to _gh_pages/index.html diff --git a/documentation/javascript/index.html b/_gh_pages/javascript/index.html similarity index 100% rename from documentation/javascript/index.html rename to _gh_pages/javascript/index.html diff --git a/_layouts/default.html b/docs/_layouts/default.html similarity index 100% rename from _layouts/default.html rename to docs/_layouts/default.html diff --git a/documentation/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css similarity index 100% rename from documentation/assets/css/bootstrap.css rename to docs/assets/css/bootstrap.css diff --git a/documentation/assets/css/docs.css b/docs/assets/css/docs.css similarity index 100% rename from documentation/assets/css/docs.css rename to docs/assets/css/docs.css diff --git a/documentation/assets/css/old_docs.css b/docs/assets/css/old_docs.css similarity index 100% rename from documentation/assets/css/old_docs.css rename to docs/assets/css/old_docs.css diff --git a/documentation/assets/fonts/glyphiconshalflings-regular.eot b/docs/assets/fonts/glyphiconshalflings-regular.eot similarity index 100% rename from documentation/assets/fonts/glyphiconshalflings-regular.eot rename to docs/assets/fonts/glyphiconshalflings-regular.eot diff --git a/documentation/assets/fonts/glyphiconshalflings-regular.otf b/docs/assets/fonts/glyphiconshalflings-regular.otf similarity index 100% rename from documentation/assets/fonts/glyphiconshalflings-regular.otf rename to docs/assets/fonts/glyphiconshalflings-regular.otf diff --git a/documentation/assets/fonts/glyphiconshalflings-regular.svg b/docs/assets/fonts/glyphiconshalflings-regular.svg similarity index 100% rename from documentation/assets/fonts/glyphiconshalflings-regular.svg rename to docs/assets/fonts/glyphiconshalflings-regular.svg diff --git a/documentation/assets/fonts/glyphiconshalflings-regular.ttf b/docs/assets/fonts/glyphiconshalflings-regular.ttf similarity index 100% rename from documentation/assets/fonts/glyphiconshalflings-regular.ttf rename to docs/assets/fonts/glyphiconshalflings-regular.ttf diff --git a/documentation/assets/fonts/glyphiconshalflings-regular.woff b/docs/assets/fonts/glyphiconshalflings-regular.woff similarity index 100% rename from documentation/assets/fonts/glyphiconshalflings-regular.woff rename to docs/assets/fonts/glyphiconshalflings-regular.woff diff --git a/documentation/assets/ico/apple-touch-icon-114-precomposed.png b/docs/assets/ico/apple-touch-icon-114-precomposed.png similarity index 100% rename from documentation/assets/ico/apple-touch-icon-114-precomposed.png rename to docs/assets/ico/apple-touch-icon-114-precomposed.png diff --git a/documentation/assets/ico/apple-touch-icon-144-precomposed.png b/docs/assets/ico/apple-touch-icon-144-precomposed.png similarity index 100% rename from documentation/assets/ico/apple-touch-icon-144-precomposed.png rename to docs/assets/ico/apple-touch-icon-144-precomposed.png diff --git a/documentation/assets/ico/apple-touch-icon-57-precomposed.png b/docs/assets/ico/apple-touch-icon-57-precomposed.png similarity index 100% rename from documentation/assets/ico/apple-touch-icon-57-precomposed.png rename to docs/assets/ico/apple-touch-icon-57-precomposed.png diff --git a/documentation/assets/ico/apple-touch-icon-72-precomposed.png b/docs/assets/ico/apple-touch-icon-72-precomposed.png similarity index 100% rename from documentation/assets/ico/apple-touch-icon-72-precomposed.png rename to docs/assets/ico/apple-touch-icon-72-precomposed.png diff --git a/documentation/assets/ico/favicon.ico b/docs/assets/ico/favicon.ico similarity index 100% rename from documentation/assets/ico/favicon.ico rename to docs/assets/ico/favicon.ico diff --git a/documentation/assets/ico/favicon.png b/docs/assets/ico/favicon.png similarity index 100% rename from documentation/assets/ico/favicon.png rename to docs/assets/ico/favicon.png diff --git a/documentation/assets/img/bootstrap-docs-readme.png b/docs/assets/img/bootstrap-docs-readme.png similarity index 100% rename from documentation/assets/img/bootstrap-docs-readme.png rename to docs/assets/img/bootstrap-docs-readme.png diff --git a/documentation/assets/img/bootstrap-mdo-sfmoma-01.jpg b/docs/assets/img/bootstrap-mdo-sfmoma-01.jpg similarity index 100% rename from documentation/assets/img/bootstrap-mdo-sfmoma-01.jpg rename to docs/assets/img/bootstrap-mdo-sfmoma-01.jpg diff --git a/documentation/assets/img/bootstrap-mdo-sfmoma-02.jpg b/docs/assets/img/bootstrap-mdo-sfmoma-02.jpg similarity index 100% rename from documentation/assets/img/bootstrap-mdo-sfmoma-02.jpg rename to docs/assets/img/bootstrap-mdo-sfmoma-02.jpg diff --git a/documentation/assets/img/bootstrap-mdo-sfmoma-03.jpg b/docs/assets/img/bootstrap-mdo-sfmoma-03.jpg similarity index 100% rename from documentation/assets/img/bootstrap-mdo-sfmoma-03.jpg rename to docs/assets/img/bootstrap-mdo-sfmoma-03.jpg diff --git a/documentation/assets/img/bs-docs-bootstrap-features.png b/docs/assets/img/bs-docs-bootstrap-features.png similarity index 100% rename from documentation/assets/img/bs-docs-bootstrap-features.png rename to docs/assets/img/bs-docs-bootstrap-features.png diff --git a/documentation/assets/img/bs-docs-masthead-pattern.png b/docs/assets/img/bs-docs-masthead-pattern.png similarity index 100% rename from documentation/assets/img/bs-docs-masthead-pattern.png rename to docs/assets/img/bs-docs-masthead-pattern.png diff --git a/documentation/assets/img/bs-docs-responsive-illustrations.png b/docs/assets/img/bs-docs-responsive-illustrations.png similarity index 100% rename from documentation/assets/img/bs-docs-responsive-illustrations.png rename to docs/assets/img/bs-docs-responsive-illustrations.png diff --git a/documentation/assets/img/bs-docs-twitter-github.png b/docs/assets/img/bs-docs-twitter-github.png similarity index 100% rename from documentation/assets/img/bs-docs-twitter-github.png rename to docs/assets/img/bs-docs-twitter-github.png diff --git a/documentation/assets/img/example-sites/example-8020select.jpg b/docs/assets/img/example-sites/example-8020select.jpg similarity index 100% rename from documentation/assets/img/example-sites/example-8020select.jpg rename to docs/assets/img/example-sites/example-8020select.jpg diff --git a/documentation/assets/img/example-sites/example-adoptahydrant.jpg b/docs/assets/img/example-sites/example-adoptahydrant.jpg similarity index 100% rename from documentation/assets/img/example-sites/example-adoptahydrant.jpg rename to docs/assets/img/example-sites/example-adoptahydrant.jpg diff --git a/documentation/assets/img/example-sites/example-athey-creek.jpg b/docs/assets/img/example-sites/example-athey-creek.jpg similarity index 100% rename from documentation/assets/img/example-sites/example-athey-creek.jpg rename to docs/assets/img/example-sites/example-athey-creek.jpg diff --git a/documentation/assets/img/example-sites/example-breakingnews.jpg b/docs/assets/img/example-sites/example-breakingnews.jpg similarity index 100% rename from documentation/assets/img/example-sites/example-breakingnews.jpg rename to docs/assets/img/example-sites/example-breakingnews.jpg diff --git a/documentation/assets/img/example-sites/example-codecademy.jpg b/docs/assets/img/example-sites/example-codecademy.jpg similarity index 100% rename from documentation/assets/img/example-sites/example-codecademy.jpg rename to docs/assets/img/example-sites/example-codecademy.jpg diff --git a/documentation/assets/img/example-sites/example-delicious.jpg b/docs/assets/img/example-sites/example-delicious.jpg similarity index 100% rename from documentation/assets/img/example-sites/example-delicious.jpg rename to docs/assets/img/example-sites/example-delicious.jpg diff --git a/documentation/assets/img/example-sites/example-desk.jpg b/docs/assets/img/example-sites/example-desk.jpg similarity index 100% rename from documentation/assets/img/example-sites/example-desk.jpg rename to docs/assets/img/example-sites/example-desk.jpg diff --git a/documentation/assets/img/example-sites/example-divshot.jpg b/docs/assets/img/example-sites/example-divshot.jpg similarity index 100% rename from documentation/assets/img/example-sites/example-divshot.jpg rename to docs/assets/img/example-sites/example-divshot.jpg diff --git a/documentation/assets/img/example-sites/example-easel.jpg b/docs/assets/img/example-sites/example-easel.jpg similarity index 100% rename from documentation/assets/img/example-sites/example-easel.jpg rename to docs/assets/img/example-sites/example-easel.jpg diff --git a/documentation/assets/img/example-sites/example-fleetio.jpg b/docs/assets/img/example-sites/example-fleetio.jpg similarity index 100% rename from documentation/assets/img/example-sites/example-fleetio.jpg rename to docs/assets/img/example-sites/example-fleetio.jpg diff --git a/documentation/assets/img/example-sites/example-gathercontent.jpg b/docs/assets/img/example-sites/example-gathercontent.jpg similarity index 100% rename from documentation/assets/img/example-sites/example-gathercontent.jpg rename to docs/assets/img/example-sites/example-gathercontent.jpg diff --git a/documentation/assets/img/example-sites/example-gosquared.jpg b/docs/assets/img/example-sites/example-gosquared.jpg similarity index 100% rename from documentation/assets/img/example-sites/example-gosquared.jpg rename to docs/assets/img/example-sites/example-gosquared.jpg diff --git a/documentation/assets/img/example-sites/example-jetstrap.jpg b/docs/assets/img/example-sites/example-jetstrap.jpg similarity index 100% rename from documentation/assets/img/example-sites/example-jetstrap.jpg rename to docs/assets/img/example-sites/example-jetstrap.jpg diff --git a/documentation/assets/img/example-sites/example-jshint.jpg b/docs/assets/img/example-sites/example-jshint.jpg similarity index 100% rename from documentation/assets/img/example-sites/example-jshint.jpg rename to docs/assets/img/example-sites/example-jshint.jpg diff --git a/documentation/assets/img/example-sites/example-jumpstart-ui.jpg b/docs/assets/img/example-sites/example-jumpstart-ui.jpg similarity index 100% rename from documentation/assets/img/example-sites/example-jumpstart-ui.jpg rename to docs/assets/img/example-sites/example-jumpstart-ui.jpg diff --git a/documentation/assets/img/example-sites/example-karma.jpg b/docs/assets/img/example-sites/example-karma.jpg similarity index 100% rename from documentation/assets/img/example-sites/example-karma.jpg rename to docs/assets/img/example-sites/example-karma.jpg diff --git a/documentation/assets/img/example-sites/example-kippt.jpg b/docs/assets/img/example-sites/example-kippt.jpg similarity index 100% rename from documentation/assets/img/example-sites/example-kippt.jpg rename to docs/assets/img/example-sites/example-kippt.jpg diff --git a/documentation/assets/img/example-sites/example-metrotwit.jpg b/docs/assets/img/example-sites/example-metrotwit.jpg similarity index 100% rename from documentation/assets/img/example-sites/example-metrotwit.jpg rename to docs/assets/img/example-sites/example-metrotwit.jpg diff --git a/documentation/assets/img/example-sites/example-soundready.jpg b/docs/assets/img/example-sites/example-soundready.jpg similarity index 100% rename from documentation/assets/img/example-sites/example-soundready.jpg rename to docs/assets/img/example-sites/example-soundready.jpg diff --git a/documentation/assets/img/example-sites/example-synco.jpg b/docs/assets/img/example-sites/example-synco.jpg similarity index 100% rename from documentation/assets/img/example-sites/example-synco.jpg rename to docs/assets/img/example-sites/example-synco.jpg diff --git a/documentation/assets/img/example-sites/example-tonx.jpg b/docs/assets/img/example-sites/example-tonx.jpg similarity index 100% rename from documentation/assets/img/example-sites/example-tonx.jpg rename to docs/assets/img/example-sites/example-tonx.jpg diff --git a/documentation/assets/img/example-sites/example-twitter-translation-center.jpg b/docs/assets/img/example-sites/example-twitter-translation-center.jpg similarity index 100% rename from documentation/assets/img/example-sites/example-twitter-translation-center.jpg rename to docs/assets/img/example-sites/example-twitter-translation-center.jpg diff --git a/documentation/assets/img/examples/bootstrap-example-carousel.png b/docs/assets/img/examples/bootstrap-example-carousel.png similarity index 100% rename from documentation/assets/img/examples/bootstrap-example-carousel.png rename to docs/assets/img/examples/bootstrap-example-carousel.png diff --git a/documentation/assets/img/examples/bootstrap-example-fluid.png b/docs/assets/img/examples/bootstrap-example-fluid.png similarity index 100% rename from documentation/assets/img/examples/bootstrap-example-fluid.png rename to docs/assets/img/examples/bootstrap-example-fluid.png diff --git a/documentation/assets/img/examples/bootstrap-example-jumbotron-narrow.png b/docs/assets/img/examples/bootstrap-example-jumbotron-narrow.png similarity index 100% rename from documentation/assets/img/examples/bootstrap-example-jumbotron-narrow.png rename to docs/assets/img/examples/bootstrap-example-jumbotron-narrow.png diff --git a/documentation/assets/img/examples/bootstrap-example-justified-nav.png b/docs/assets/img/examples/bootstrap-example-justified-nav.png similarity index 100% rename from documentation/assets/img/examples/bootstrap-example-justified-nav.png rename to docs/assets/img/examples/bootstrap-example-justified-nav.png diff --git a/documentation/assets/img/examples/bootstrap-example-marketing.png b/docs/assets/img/examples/bootstrap-example-marketing.png similarity index 100% rename from documentation/assets/img/examples/bootstrap-example-marketing.png rename to docs/assets/img/examples/bootstrap-example-marketing.png diff --git a/documentation/assets/img/examples/bootstrap-example-signin.png b/docs/assets/img/examples/bootstrap-example-signin.png similarity index 100% rename from documentation/assets/img/examples/bootstrap-example-signin.png rename to docs/assets/img/examples/bootstrap-example-signin.png diff --git a/documentation/assets/img/examples/bootstrap-example-starter.png b/docs/assets/img/examples/bootstrap-example-starter.png similarity index 100% rename from documentation/assets/img/examples/bootstrap-example-starter.png rename to docs/assets/img/examples/bootstrap-example-starter.png diff --git a/documentation/assets/img/examples/bootstrap-example-sticky-footer.png b/docs/assets/img/examples/bootstrap-example-sticky-footer.png similarity index 100% rename from documentation/assets/img/examples/bootstrap-example-sticky-footer.png rename to docs/assets/img/examples/bootstrap-example-sticky-footer.png diff --git a/documentation/assets/img/examples/browser-icon-chrome.png b/docs/assets/img/examples/browser-icon-chrome.png similarity index 100% rename from documentation/assets/img/examples/browser-icon-chrome.png rename to docs/assets/img/examples/browser-icon-chrome.png diff --git a/documentation/assets/img/examples/browser-icon-firefox.png b/docs/assets/img/examples/browser-icon-firefox.png similarity index 100% rename from documentation/assets/img/examples/browser-icon-firefox.png rename to docs/assets/img/examples/browser-icon-firefox.png diff --git a/documentation/assets/img/examples/browser-icon-safari.png b/docs/assets/img/examples/browser-icon-safari.png similarity index 100% rename from documentation/assets/img/examples/browser-icon-safari.png rename to docs/assets/img/examples/browser-icon-safari.png diff --git a/documentation/assets/img/examples/slide-01.jpg b/docs/assets/img/examples/slide-01.jpg similarity index 100% rename from documentation/assets/img/examples/slide-01.jpg rename to docs/assets/img/examples/slide-01.jpg diff --git a/documentation/assets/img/examples/slide-02.jpg b/docs/assets/img/examples/slide-02.jpg similarity index 100% rename from documentation/assets/img/examples/slide-02.jpg rename to docs/assets/img/examples/slide-02.jpg diff --git a/documentation/assets/img/examples/slide-03.jpg b/docs/assets/img/examples/slide-03.jpg similarity index 100% rename from documentation/assets/img/examples/slide-03.jpg rename to docs/assets/img/examples/slide-03.jpg diff --git a/documentation/assets/img/grid-baseline-20px.png b/docs/assets/img/grid-baseline-20px.png similarity index 100% rename from documentation/assets/img/grid-baseline-20px.png rename to docs/assets/img/grid-baseline-20px.png diff --git a/docs/assets/js/README.md b/docs/assets/js/README.md new file mode 100644 index 0000000000..66903c71a6 --- /dev/null +++ b/docs/assets/js/README.md @@ -0,0 +1,106 @@ +## 2.0 BOOTSTRAP JS PHILOSOPHY +These are the high-level design rules which guide the development of Bootstrap's plugin apis. + +--- + +### DATA-ATTRIBUTE API + +We believe you should be able to use all plugins provided by Bootstrap purely through the markup API without writing a single line of javascript. + +We acknowledge that this isn't always the most performant and sometimes it may be desirable to turn this functionality off altogether. Therefore, as of 2.0 we provide the ability to disable the data attribute API by unbinding all events on the body namespaced with `'data-api'`. This looks like this: + + $('body').off('.data-api') + +To target a specific plugin, just include the plugins name as a namespace along with the data-api namespace like this: + + $('body').off('.alert.data-api') + +--- + +### PROGRAMMATIC API + +We also believe you should be able to use all plugins provided by Bootstrap purely through the JS API. + +All public APIs should be single, chainable methods, and return the collection acted upon. + + $(".btn.danger").button("toggle").addClass("fat") + +All methods should accept an optional options object, a string which targets a particular method, or null which initiates the default behavior: + + $("#myModal").modal() // initialized with defaults + $("#myModal").modal({ keyboard: false }) // initialized with now keyboard + $("#myModal").modal('show') // initializes and invokes show immediately afterqwe2 + +--- + +### OPTIONS + +Options should be sparse and add universal value. We should pick the right defaults. + +All plugins should have a default object which can be modified to effect all instance's default options. The defaults object should be available via `$.fn.plugin.defaults`. + + $.fn.modal.defaults = { … } + +An options definition should take the following form: + + *noun*: *adjective* - describes or modifies a quality of an instance + +examples: + + backdrop: true + keyboard: false + placement: 'top' + +--- + +### EVENTS + +All events should have an infinitive and past participle form. The infinitive is fired just before an action takes place, the past participle on completion of the action. + + show | shown + hide | hidden + +--- + +### CONSTRUCTORS + +Each plugin should expose it's raw constructor on a `Constructor` property -- accessed in the following way: + + + $.fn.popover.Constructor + +--- + +### DATA ACCESSOR + +Each plugin stores a copy of the invoked class on an object. This class instance can be accessed directly through jQuery's data API like this: + + $('[rel=popover]').data('popover') instanceof $.fn.popover.Constructor + +--- + +### DATA ATTRIBUTES + +Data attributes should take the following form: + +- data-{{verb}}={{plugin}} - defines main interaction +- data-target || href^=# - defined on "control" element (if element controls an element other than self) +- data-{{noun}} - defines class instance options + +examples: + + // control other targets + data-toggle="modal" data-target="#foo" + data-toggle="collapse" data-target="#foo" data-parent="#bar" + + // defined on element they control + data-spy="scroll" + + data-dismiss="modal" + data-dismiss="alert" + + data-toggle="dropdown" + + data-toggle="button" + data-toggle="buttons-checkbox" + data-toggle="buttons-radio" \ No newline at end of file diff --git a/documentation/assets/js/application.js b/docs/assets/js/application.js similarity index 100% rename from documentation/assets/js/application.js rename to docs/assets/js/application.js diff --git a/documentation/assets/js/bootstrap-affix.js b/docs/assets/js/bootstrap-affix.js similarity index 100% rename from documentation/assets/js/bootstrap-affix.js rename to docs/assets/js/bootstrap-affix.js diff --git a/documentation/assets/js/bootstrap-alert.js b/docs/assets/js/bootstrap-alert.js similarity index 100% rename from documentation/assets/js/bootstrap-alert.js rename to docs/assets/js/bootstrap-alert.js diff --git a/documentation/assets/js/bootstrap-button.js b/docs/assets/js/bootstrap-button.js similarity index 100% rename from documentation/assets/js/bootstrap-button.js rename to docs/assets/js/bootstrap-button.js diff --git a/documentation/assets/js/bootstrap-carousel.js b/docs/assets/js/bootstrap-carousel.js similarity index 100% rename from documentation/assets/js/bootstrap-carousel.js rename to docs/assets/js/bootstrap-carousel.js diff --git a/documentation/assets/js/bootstrap-collapse.js b/docs/assets/js/bootstrap-collapse.js similarity index 100% rename from documentation/assets/js/bootstrap-collapse.js rename to docs/assets/js/bootstrap-collapse.js diff --git a/documentation/assets/js/bootstrap-dropdown.js b/docs/assets/js/bootstrap-dropdown.js similarity index 100% rename from documentation/assets/js/bootstrap-dropdown.js rename to docs/assets/js/bootstrap-dropdown.js diff --git a/documentation/assets/js/bootstrap-modal.js b/docs/assets/js/bootstrap-modal.js similarity index 100% rename from documentation/assets/js/bootstrap-modal.js rename to docs/assets/js/bootstrap-modal.js diff --git a/documentation/assets/js/bootstrap-popover.js b/docs/assets/js/bootstrap-popover.js similarity index 100% rename from documentation/assets/js/bootstrap-popover.js rename to docs/assets/js/bootstrap-popover.js diff --git a/documentation/assets/js/bootstrap-scrollspy.js b/docs/assets/js/bootstrap-scrollspy.js similarity index 100% rename from documentation/assets/js/bootstrap-scrollspy.js rename to docs/assets/js/bootstrap-scrollspy.js diff --git a/documentation/assets/js/bootstrap-tab.js b/docs/assets/js/bootstrap-tab.js similarity index 100% rename from documentation/assets/js/bootstrap-tab.js rename to docs/assets/js/bootstrap-tab.js diff --git a/documentation/assets/js/bootstrap-tooltip.js b/docs/assets/js/bootstrap-tooltip.js similarity index 100% rename from documentation/assets/js/bootstrap-tooltip.js rename to docs/assets/js/bootstrap-tooltip.js diff --git a/documentation/assets/js/bootstrap-transition.js b/docs/assets/js/bootstrap-transition.js similarity index 100% rename from documentation/assets/js/bootstrap-transition.js rename to docs/assets/js/bootstrap-transition.js diff --git a/documentation/assets/js/bootstrap-typeahead.js b/docs/assets/js/bootstrap-typeahead.js similarity index 100% rename from documentation/assets/js/bootstrap-typeahead.js rename to docs/assets/js/bootstrap-typeahead.js diff --git a/documentation/assets/js/bootstrap.js b/docs/assets/js/bootstrap.js similarity index 100% rename from documentation/assets/js/bootstrap.js rename to docs/assets/js/bootstrap.js diff --git a/documentation/assets/js/bootstrap.min.js b/docs/assets/js/bootstrap.min.js similarity index 100% rename from documentation/assets/js/bootstrap.min.js rename to docs/assets/js/bootstrap.min.js diff --git a/documentation/assets/js/google-code-prettify/prettify.css b/docs/assets/js/google-code-prettify/prettify.css similarity index 100% rename from documentation/assets/js/google-code-prettify/prettify.css rename to docs/assets/js/google-code-prettify/prettify.css diff --git a/documentation/assets/js/google-code-prettify/prettify.js b/docs/assets/js/google-code-prettify/prettify.js similarity index 100% rename from documentation/assets/js/google-code-prettify/prettify.js rename to docs/assets/js/google-code-prettify/prettify.js diff --git a/documentation/assets/js/holder/holder.js b/docs/assets/js/holder/holder.js similarity index 100% rename from documentation/assets/js/holder/holder.js rename to docs/assets/js/holder/holder.js diff --git a/documentation/assets/js/html5shiv.js b/docs/assets/js/html5shiv.js similarity index 100% rename from documentation/assets/js/html5shiv.js rename to docs/assets/js/html5shiv.js diff --git a/documentation/assets/js/jquery.js b/docs/assets/js/jquery.js similarity index 100% rename from documentation/assets/js/jquery.js rename to docs/assets/js/jquery.js diff --git a/documentation/assets/js/respond/respond.min.js b/docs/assets/js/respond/respond.min.js similarity index 100% rename from documentation/assets/js/respond/respond.min.js rename to docs/assets/js/respond/respond.min.js diff --git a/components.html b/docs/components.html similarity index 100% rename from components.html rename to docs/components.html diff --git a/css.html b/docs/css.html similarity index 100% rename from css.html rename to docs/css.html diff --git a/customize.html b/docs/customize.html similarity index 100% rename from customize.html rename to docs/customize.html diff --git a/examples/carousel.html b/docs/examples/carousel.html similarity index 100% rename from examples/carousel.html rename to docs/examples/carousel.html diff --git a/examples/fluid.html b/docs/examples/fluid.html similarity index 100% rename from examples/fluid.html rename to docs/examples/fluid.html diff --git a/examples/jumbotron-narrow.html b/docs/examples/jumbotron-narrow.html similarity index 100% rename from examples/jumbotron-narrow.html rename to docs/examples/jumbotron-narrow.html diff --git a/examples/jumbotron.html b/docs/examples/jumbotron.html similarity index 100% rename from examples/jumbotron.html rename to docs/examples/jumbotron.html diff --git a/examples/justified-nav.html b/docs/examples/justified-nav.html similarity index 100% rename from examples/justified-nav.html rename to docs/examples/justified-nav.html diff --git a/examples/signin.html b/docs/examples/signin.html similarity index 100% rename from examples/signin.html rename to docs/examples/signin.html diff --git a/examples/starter-template.html b/docs/examples/starter-template.html similarity index 100% rename from examples/starter-template.html rename to docs/examples/starter-template.html diff --git a/examples/sticky-footer-navbar.html b/docs/examples/sticky-footer-navbar.html similarity index 100% rename from examples/sticky-footer-navbar.html rename to docs/examples/sticky-footer-navbar.html diff --git a/examples/sticky-footer.html b/docs/examples/sticky-footer.html similarity index 100% rename from examples/sticky-footer.html rename to docs/examples/sticky-footer.html diff --git a/getting-started.html b/docs/getting-started.html similarity index 100% rename from getting-started.html rename to docs/getting-started.html diff --git a/index.html b/docs/index.html similarity index 100% rename from index.html rename to docs/index.html diff --git a/javascript.html b/docs/javascript.html similarity index 100% rename from javascript.html rename to docs/javascript.html diff --git a/documentation/fonts/glyphiconshalflings-regular.eot b/documentation/fonts/glyphiconshalflings-regular.eot deleted file mode 100755 index bd59ccd2d6..0000000000 Binary files a/documentation/fonts/glyphiconshalflings-regular.eot and /dev/null differ diff --git a/documentation/fonts/glyphiconshalflings-regular.otf b/documentation/fonts/glyphiconshalflings-regular.otf deleted file mode 100644 index b058f1cd1b..0000000000 Binary files a/documentation/fonts/glyphiconshalflings-regular.otf and /dev/null differ diff --git a/documentation/fonts/glyphiconshalflings-regular.svg b/documentation/fonts/glyphiconshalflings-regular.svg deleted file mode 100755 index 0fb4587352..0000000000 --- a/documentation/fonts/glyphiconshalflings-regular.svg +++ /dev/null @@ -1,175 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/documentation/fonts/glyphiconshalflings-regular.ttf b/documentation/fonts/glyphiconshalflings-regular.ttf deleted file mode 100755 index c63c068feb..0000000000 Binary files a/documentation/fonts/glyphiconshalflings-regular.ttf and /dev/null differ diff --git a/documentation/fonts/glyphiconshalflings-regular.woff b/documentation/fonts/glyphiconshalflings-regular.woff deleted file mode 100755 index 4c778ffdc5..0000000000 Binary files a/documentation/fonts/glyphiconshalflings-regular.woff and /dev/null differ diff --git a/documentation/js/bootstrap-affix.js b/documentation/js/bootstrap-affix.js deleted file mode 100644 index 2b76881c55..0000000000 --- a/documentation/js/bootstrap-affix.js +++ /dev/null @@ -1,117 +0,0 @@ -/* ========================================================== - * bootstrap-affix.js v3.0.0 - * http://twitter.github.com/bootstrap/javascript.html#affix - * ========================================================== - * 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 ;_; - - - /* AFFIX CLASS DEFINITION - * ====================== */ - - var Affix = function (element, options) { - this.options = $.extend({}, $.fn.affix.defaults, options) - this.$window = $(window) - .on('scroll.affix.data-api', $.proxy(this.checkPosition, this)) - .on('click.affix.data-api', $.proxy(function () { setTimeout($.proxy(this.checkPosition, this), 1) }, this)) - this.$element = $(element) - this.checkPosition() - } - - Affix.prototype.checkPosition = function () { - if (!this.$element.is(':visible')) return - - var scrollHeight = $(document).height() - , scrollTop = this.$window.scrollTop() - , position = this.$element.offset() - , offset = this.options.offset - , offsetBottom = offset.bottom - , offsetTop = offset.top - , reset = 'affix affix-top affix-bottom' - , affix - - if (typeof offset != 'object') offsetBottom = offsetTop = offset - if (typeof offsetTop == 'function') offsetTop = offset.top() - if (typeof offsetBottom == 'function') offsetBottom = offset.bottom() - - affix = this.unpin != null && (scrollTop + this.unpin <= position.top) ? - false : offsetBottom != null && (position.top + this.$element.height() >= scrollHeight - offsetBottom) ? - 'bottom' : offsetTop != null && scrollTop <= offsetTop ? - 'top' : false - - if (this.affixed === affix) return - - this.affixed = affix - this.unpin = affix == 'bottom' ? position.top - scrollTop : null - - this.$element.removeClass(reset).addClass('affix' + (affix ? '-' + affix : '')) - } - - - /* AFFIX PLUGIN DEFINITION - * ======================= */ - - var old = $.fn.affix - - $.fn.affix = function (option) { - return this.each(function () { - var $this = $(this) - , data = $this.data('affix') - , options = typeof option == 'object' && option - if (!data) $this.data('affix', (data = new Affix(this, options))) - if (typeof option == 'string') data[option]() - }) - } - - $.fn.affix.Constructor = Affix - - $.fn.affix.defaults = { - offset: 0 - } - - - /* AFFIX NO CONFLICT - * ================= */ - - $.fn.affix.noConflict = function () { - $.fn.affix = old - return this - } - - - /* AFFIX DATA-API - * ============== */ - - $(window).on('load', function () { - $('[data-spy="affix"]').each(function () { - var $spy = $(this) - , data = $spy.data() - - data.offset = data.offset || {} - - data.offsetBottom && (data.offset.bottom = data.offsetBottom) - data.offsetTop && (data.offset.top = data.offsetTop) - - $spy.affix(data) - }) - }) - - -}(window.jQuery); \ No newline at end of file diff --git a/documentation/js/bootstrap-alert.js b/documentation/js/bootstrap-alert.js deleted file mode 100644 index bc45674532..0000000000 --- a/documentation/js/bootstrap-alert.js +++ /dev/null @@ -1,99 +0,0 @@ -/* ========================================================== - * bootstrap-alert.js v3.0.0 - * http://twitter.github.com/bootstrap/javascript.html#alerts - * ========================================================== - * 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 ;_; - - - /* ALERT CLASS DEFINITION - * ====================== */ - - var dismiss = '[data-dismiss="alert"]' - , Alert = function (el) { - $(el).on('click', dismiss, this.close) - } - - Alert.prototype.close = function (e) { - var $this = $(this) - , selector = $this.attr('data-target') - , $parent - - if (!selector) { - selector = $this.attr('href') - selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7 - } - - $parent = $(selector) - - e && e.preventDefault() - - $parent.length || ($parent = $this.hasClass('alert') ? $this : $this.parent()) - - $parent.trigger(e = $.Event('close')) - - if (e.isDefaultPrevented()) return - - $parent.removeClass('in') - - function removeElement() { - $parent - .trigger('closed') - .remove() - } - - $.support.transition && $parent.hasClass('fade') ? - $parent.on($.support.transition.end, removeElement) : - removeElement() - } - - - /* ALERT PLUGIN DEFINITION - * ======================= */ - - var old = $.fn.alert - - $.fn.alert = function (option) { - return this.each(function () { - var $this = $(this) - , data = $this.data('alert') - if (!data) $this.data('alert', (data = new Alert(this))) - if (typeof option == 'string') data[option].call($this) - }) - } - - $.fn.alert.Constructor = Alert - - - /* ALERT NO CONFLICT - * ================= */ - - $.fn.alert.noConflict = function () { - $.fn.alert = old - return this - } - - - /* ALERT DATA-API - * ============== */ - - $(document).on('click.alert.data-api', dismiss, Alert.prototype.close) - -}(window.jQuery); \ No newline at end of file diff --git a/documentation/js/bootstrap-button.js b/documentation/js/bootstrap-button.js deleted file mode 100644 index 6e1aa9c815..0000000000 --- a/documentation/js/bootstrap-button.js +++ /dev/null @@ -1,105 +0,0 @@ -/* ============================================================ - * bootstrap-button.js v3.0.0 - * http://twitter.github.com/bootstrap/javascript.html#buttons - * ============================================================ - * 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 ;_; - - - /* BUTTON PUBLIC CLASS DEFINITION - * ============================== */ - - var Button = function (element, options) { - this.$element = $(element) - this.options = $.extend({}, $.fn.button.defaults, options) - } - - Button.prototype.setState = function (state) { - var d = 'disabled' - , $el = this.$element - , data = $el.data() - , val = $el.is('input') ? 'val' : 'html' - - state = state + 'Text' - data.resetText || $el.data('resetText', $el[val]()) - - $el[val](data[state] || this.options[state]) - - // push to event loop to allow forms to submit - setTimeout(function () { - state == 'loadingText' ? - $el.addClass(d).attr(d, d) : - $el.removeClass(d).removeAttr(d) - }, 0) - } - - Button.prototype.toggle = function () { - var $parent = this.$element.closest('[data-toggle="buttons-radio"]') - - $parent && $parent - .find('.active') - .removeClass('active') - - this.$element.toggleClass('active') - } - - - /* BUTTON PLUGIN DEFINITION - * ======================== */ - - var old = $.fn.button - - $.fn.button = function (option) { - return this.each(function () { - var $this = $(this) - , data = $this.data('button') - , options = typeof option == 'object' && option - if (!data) $this.data('button', (data = new Button(this, options))) - if (option == 'toggle') data.toggle() - else if (option) data.setState(option) - }) - } - - $.fn.button.defaults = { - loadingText: 'loading...' - } - - $.fn.button.Constructor = Button - - - /* BUTTON NO CONFLICT - * ================== */ - - $.fn.button.noConflict = function () { - $.fn.button = old - return this - } - - - /* BUTTON DATA-API - * =============== */ - - $(document).on('click.button.data-api', '[data-toggle^=button]', function (e) { - var $btn = $(e.target) - if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn') - $btn.button('toggle') - }) - -}(window.jQuery); \ No newline at end of file diff --git a/documentation/js/bootstrap-carousel.js b/documentation/js/bootstrap-carousel.js deleted file mode 100644 index 83cdffd0e8..0000000000 --- a/documentation/js/bootstrap-carousel.js +++ /dev/null @@ -1,207 +0,0 @@ -/* ========================================================== - * bootstrap-carousel.js v3.0.0 - * http://twitter.github.com/bootstrap/javascript.html#carousel - * ========================================================== - * 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 ;_; - - - /* CAROUSEL CLASS DEFINITION - * ========================= */ - - var Carousel = function (element, options) { - this.$element = $(element) - this.$indicators = this.$element.find('.carousel-indicators') - this.options = options - this.options.pause == 'hover' && this.$element - .on('mouseenter', $.proxy(this.pause, this)) - .on('mouseleave', $.proxy(this.cycle, this)) - } - - Carousel.prototype = { - - cycle: function (e) { - if (!e) this.paused = false - if (this.interval) clearInterval(this.interval); - this.options.interval - && !this.paused - && (this.interval = setInterval($.proxy(this.next, this), this.options.interval)) - return this - } - - , getActiveIndex: function () { - this.$active = this.$element.find('.item.active') - this.$items = this.$active.parent().children() - return this.$items.index(this.$active) - } - - , to: function (pos) { - var activeIndex = this.getActiveIndex() - , that = this - - if (pos > (this.$items.length - 1) || pos < 0) return - - if (this.sliding) { - return this.$element.one('slid', function () { - that.to(pos) - }) - } - - if (activeIndex == pos) { - return this.pause().cycle() - } - - return this.slide(pos > activeIndex ? 'next' : 'prev', $(this.$items[pos])) - } - - , pause: function (e) { - if (!e) this.paused = true - if (this.$element.find('.next, .prev').length && $.support.transition.end) { - this.$element.trigger($.support.transition.end) - this.cycle() - } - clearInterval(this.interval) - this.interval = null - return this - } - - , next: function () { - if (this.sliding) return - return this.slide('next') - } - - , prev: function () { - if (this.sliding) return - return this.slide('prev') - } - - , slide: function (type, next) { - var $active = this.$element.find('.item.active') - , $next = next || $active[type]() - , isCycling = this.interval - , direction = type == 'next' ? 'left' : 'right' - , fallback = type == 'next' ? 'first' : 'last' - , that = this - , e - - this.sliding = true - - isCycling && this.pause() - - $next = $next.length ? $next : this.$element.find('.item')[fallback]() - - e = $.Event('slide', { - relatedTarget: $next[0] - , direction: direction - }) - - if ($next.hasClass('active')) return - - if (this.$indicators.length) { - this.$indicators.find('.active').removeClass('active') - this.$element.one('slid', function () { - var $nextIndicator = $(that.$indicators.children()[that.getActiveIndex()]) - $nextIndicator && $nextIndicator.addClass('active') - }) - } - - if ($.support.transition && this.$element.hasClass('slide')) { - this.$element.trigger(e) - if (e.isDefaultPrevented()) return - $next.addClass(type) - $next[0].offsetWidth // force reflow - $active.addClass(direction) - $next.addClass(direction) - this.$element.one($.support.transition.end, function () { - $next.removeClass([type, direction].join(' ')).addClass('active') - $active.removeClass(['active', direction].join(' ')) - that.sliding = false - setTimeout(function () { that.$element.trigger('slid') }, 0) - }) - } else { - this.$element.trigger(e) - if (e.isDefaultPrevented()) return - $active.removeClass('active') - $next.addClass('active') - this.sliding = false - this.$element.trigger('slid') - } - - isCycling && this.cycle() - - return this - } - - } - - - /* CAROUSEL PLUGIN DEFINITION - * ========================== */ - - var old = $.fn.carousel - - $.fn.carousel = function (option) { - return this.each(function () { - var $this = $(this) - , data = $this.data('carousel') - , options = $.extend({}, $.fn.carousel.defaults, typeof option == 'object' && option) - , action = typeof option == 'string' ? option : options.slide - if (!data) $this.data('carousel', (data = new Carousel(this, options))) - if (typeof option == 'number') data.to(option) - else if (action) data[action]() - else if (options.interval) data.pause().cycle() - }) - } - - $.fn.carousel.defaults = { - interval: 5000 - , pause: 'hover' - } - - $.fn.carousel.Constructor = Carousel - - - /* CAROUSEL NO CONFLICT - * ==================== */ - - $.fn.carousel.noConflict = function () { - $.fn.carousel = old - return this - } - - /* CAROUSEL DATA-API - * ================= */ - - $(document).on('click.carousel.data-api', '[data-slide], [data-slide-to]', function (e) { - var $this = $(this), href - , $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7 - , options = $.extend({}, $target.data(), $this.data()) - , slideIndex - - $target.carousel(options) - - if (slideIndex = $this.attr('data-slide-to')) { - $target.data('carousel').pause().to(slideIndex).cycle() - } - - e.preventDefault() - }) - -}(window.jQuery); \ No newline at end of file diff --git a/documentation/js/bootstrap-collapse.js b/documentation/js/bootstrap-collapse.js deleted file mode 100644 index 2730a48d45..0000000000 --- a/documentation/js/bootstrap-collapse.js +++ /dev/null @@ -1,167 +0,0 @@ -/* ============================================================= - * bootstrap-collapse.js v3.0.0 - * http://twitter.github.com/bootstrap/javascript.html#collapse - * ============================================================= - * 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 ;_; - - - /* 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) - } - - this.options.toggle && this.toggle() - } - - Collapse.prototype = { - - constructor: Collapse - - , dimension: function () { - var hasWidth = this.$element.hasClass('width') - return hasWidth ? 'width' : 'height' - } - - , show: function () { - 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', $.Event('show'), 'shown') - $.support.transition && this.$element[dimension](this.$element[0][scroll]) - } - - , hide: function () { - var dimension - if (this.transitioning || !this.$element.hasClass('in')) return - dimension = this.dimension() - this.reset(this.$element[dimension]()) - this.transition('removeClass', $.Event('hide'), 'hidden') - this.$element[dimension](0) - } - - , reset: function (size) { - var dimension = this.dimension() - - this.$element - .removeClass('collapse') - [dimension](size || 'auto') - [0].offsetWidth - - this.$element[size !== null ? 'addClass' : 'removeClass']('collapse') - - return this - } - - , transition: function (method, startEvent, completeEvent) { - var that = this - , complete = function () { - if (startEvent.type == 'show') that.reset() - that.transitioning = 0 - that.$element.trigger(completeEvent) - } - - 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']() - } - - } - - - /* COLLAPSE PLUGIN DEFINITION - * ========================== */ - - var old = $.fn.collapse - - $.fn.collapse = function (option) { - return this.each(function () { - var $this = $(this) - , data = $this.data('collapse') - , 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]() - }) - } - - $.fn.collapse.defaults = { - toggle: true - } - - $.fn.collapse.Constructor = Collapse - - - /* COLLAPSE NO CONFLICT - * ==================== */ - - $.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); \ No newline at end of file diff --git a/documentation/js/bootstrap-dropdown.js b/documentation/js/bootstrap-dropdown.js deleted file mode 100644 index 605757825c..0000000000 --- a/documentation/js/bootstrap-dropdown.js +++ /dev/null @@ -1,165 +0,0 @@ -/* ============================================================ - * bootstrap-dropdown.js v3.0.0 - * http://twitter.github.com/bootstrap/javascript.html#dropdowns - * ============================================================ - * 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 ;_; - - - /* DROPDOWN CLASS DEFINITION - * ========================= */ - - var toggle = '[data-toggle=dropdown]' - , Dropdown = function (element) { - var $el = $(element).on('click.dropdown.data-api', this.toggle) - $('html').on('click.dropdown.data-api', function () { - $el.parent().removeClass('open') - }) - } - - Dropdown.prototype = { - - constructor: Dropdown - - , toggle: function (e) { - var $this = $(this) - , $parent - , isActive - - if ($this.is('.disabled, :disabled')) return - - $parent = getParent($this) - - isActive = $parent.hasClass('open') - - clearMenus() - - if (!isActive) { - $parent.toggleClass('open') - } - - $this.focus() - - return false - } - - , keydown: function (e) { - var $this - , $items - , $active - , $parent - , isActive - , index - - if (!/(38|40|27)/.test(e.keyCode)) return - - $this = $(this) - - e.preventDefault() - e.stopPropagation() - - if ($this.is('.disabled, :disabled')) return - - $parent = getParent($this) - - isActive = $parent.hasClass('open') - - if (!isActive || (isActive && e.keyCode == 27)) { - if (e.which == 27) $parent.find(toggle).focus() - return $this.click() - } - - $items = $('[role=menu] li:not(.divider):visible a', $parent) - - if (!$items.length) return - - index = $items.index($items.filter(':focus')) - - if (e.keyCode == 38 && index > 0) index-- // up - if (e.keyCode == 40 && index < $items.length - 1) index++ // down - if (!~index) index = 0 - - $items - .eq(index) - .focus() - } - - } - - function clearMenus() { - $(toggle).each(function () { - getParent($(this)).removeClass('open') - }) - } - - function getParent($this) { - var selector = $this.attr('data-target') - , $parent - - if (!selector) { - selector = $this.attr('href') - selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7 - } - - $parent = selector && $(selector) - - if (!$parent || !$parent.length) $parent = $this.parent() - - return $parent - } - - - /* DROPDOWN PLUGIN DEFINITION - * ========================== */ - - var old = $.fn.dropdown - - $.fn.dropdown = function (option) { - return this.each(function () { - var $this = $(this) - , data = $this.data('dropdown') - if (!data) $this.data('dropdown', (data = new Dropdown(this))) - if (typeof option == 'string') data[option].call($this) - }) - } - - $.fn.dropdown.Constructor = Dropdown - - - /* DROPDOWN NO CONFLICT - * ==================== */ - - $.fn.dropdown.noConflict = function () { - $.fn.dropdown = old - return this - } - - - /* APPLY TO STANDARD DROPDOWN ELEMENTS - * =================================== */ - - $(document) - .on('click.dropdown.data-api', clearMenus) - .on('click.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() }) - .on('.dropdown-menu', function (e) { e.stopPropagation() }) - .on('click.dropdown.data-api' , toggle, Dropdown.prototype.toggle) - .on('keydown.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown) - -}(window.jQuery); diff --git a/documentation/js/bootstrap-modal.js b/documentation/js/bootstrap-modal.js deleted file mode 100644 index 23519b3e53..0000000000 --- a/documentation/js/bootstrap-modal.js +++ /dev/null @@ -1,251 +0,0 @@ -/* ========================================================= - * bootstrap-modal.js v3.0.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 - - 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) - - that.enforceFocus() - - transition ? - that.$element.one($.support.transition.end, function () { that.$element.focus().trigger('shown') }) : - that.$element.focus().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 - - 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 () { - var that = this - this.$element.hide() - this.backdrop(function () { - that.removeBackdrop() - that.$element.trigger('hidden') - }) - } - - , 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 = $('