{"id":18255784,"url":"https://github.com/bootstrap-ruby/middleman-bootstrap-navbar","last_synced_at":"2025-04-04T17:31:34.616Z","repository":{"id":8676006,"uuid":"10334295","full_name":"bootstrap-ruby/middleman-bootstrap-navbar","owner":"bootstrap-ruby","description":"Middleman extension to easily generate a Bootstrap navbar","archived":false,"fork":false,"pushed_at":"2019-02-01T00:06:02.000Z","size":65,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-19T21:36:22.316Z","etag":null,"topics":["bootstrap","bootstrap-navbar","middleman","middleman-extension"],"latest_commit_sha":null,"homepage":"http://bootstrap-ruby.github.io/middleman-bootstrap-navbar","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bootstrap-ruby.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-28T11:36:59.000Z","updated_at":"2021-08-13T11:05:04.000Z","dependencies_parsed_at":"2022-09-11T14:01:54.713Z","dependency_job_id":null,"html_url":"https://github.com/bootstrap-ruby/middleman-bootstrap-navbar","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bootstrap-ruby%2Fmiddleman-bootstrap-navbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bootstrap-ruby%2Fmiddleman-bootstrap-navbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bootstrap-ruby%2Fmiddleman-bootstrap-navbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bootstrap-ruby%2Fmiddleman-bootstrap-navbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bootstrap-ruby","download_url":"https://codeload.github.com/bootstrap-ruby/middleman-bootstrap-navbar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223151029,"owners_count":17096034,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","bootstrap-navbar","middleman","middleman-extension"],"created_at":"2024-11-05T10:18:42.910Z","updated_at":"2025-04-04T17:31:34.599Z","avatar_url":"https://github.com/bootstrap-ruby.png","language":"Ruby","readme":"# Middleman Bootstrap Navbar\n\n[![Gem Version](https://badge.fury.io/rb/middleman-bootstrap-navbar.png)](http://badge.fury.io/rb/middleman-bootstrap-navbar)\n[![Build Status](https://secure.travis-ci.org/bootstrap-ruby/middleman-bootstrap-navbar.png)](http://travis-ci.org/bootstrap-ruby/middleman-bootstrap-navbar)\n[![Code Climate](https://codeclimate.com/github/bootstrap-ruby/middleman-bootstrap-navbar.png)](https://codeclimate.com/github/bootstrap-ruby/middleman-bootstrap-navbar)\n\n[Middleman](http://middlemanapp.com/) extension to easily generate a [Bootstrap](https://getbootstrap.com/) navbar\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'middleman-bootstrap-navbar'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install middleman-bootstrap-navbar\n\n## Requirements\n\n## Middleman\n\nMiddleman \u003e= 3.1\n\n## Bootstrap\n\nBootstrap \u003e= 2.0\n\nThe necessary Bootstrap files have to be included separately, they are not part of this gem.\n\nAt least the CSS files for the navbar are required, and the JS files for dropdowns and responsive features, if you want to use those in the navbar.\n\n## Usage\n\n### Activate extension\n\nActivate the extensions in `config.rb` in your Middleman app:\n\n```ruby\nactivate :bootstrap_navbar\n```\n\n### Set Bootstrap version\n\nThis gem needs to know which Bootstrap version you are using, because the navbar HTML looks different in different Bootstrap versions.\n\nIf you're using either the [`bootstrap-sass`](https://github.com/twbs/bootstrap-sass) or [`bootstrap`](https://github.com/twbs/bootstrap-rubygem) gem, you're all set because the Boostrap version will be sniffed automatically from those gems' versions. Make sure to include the `bootstrap-sass` or `bootstrap` gem before `rails_bootstrap_navbar` in your Gemfile though.\n\nHowever, if you include the Bootstrap CSS and JS some other way, you need to set the Bootstrap version before activating the extension:\n\n```ruby\n# Only necessary if you don't use the `bootstrap-sass` or `bootstrap` gems.\n::BootstrapNavbar.configure do |config|\n  config.bootstrap_version = '4.0.0'\nend\n\nactivate :bootstrap_navbar\n```\n\n### Output HTML\n\nThe gem [bootstrap-navbar](https://github.com/bootstrap-ruby/bootstrap-navbar) is used to generate the HTML. Please refer to the gem's [README](https://github.com/bootstrap-ruby/bootstrap-navbar/blob/master/README.md) and the following Wiki entries for detailed instructions on how to generate the navbar:\n\n[Usage with Bootstrap 2](https://github.com/bootstrap-ruby/bootstrap-navbar/wiki/Usage-with-Bootstrap-2)\n\n[Usage with Bootstrap 3](https://github.com/bootstrap-ruby/bootstrap-navbar/wiki/Usage-with-Bootstrap-3)\n\n[Usage with Bootstrap 4](https://github.com/bootstrap-ruby/bootstrap-navbar/wiki/Usage-with-Bootstrap-4)\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n## Support\n\nIf you like this project, consider [buying me a coffee](https://www.buymeacoffee.com/279lcDtbF)! :)\n","funding_links":["https://www.buymeacoffee.com/279lcDtbF)!"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbootstrap-ruby%2Fmiddleman-bootstrap-navbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbootstrap-ruby%2Fmiddleman-bootstrap-navbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbootstrap-ruby%2Fmiddleman-bootstrap-navbar/lists"}