middleman-bootstrap-navbar 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -33
- data/lib/middleman-bootstrap-navbar/version.rb +1 -1
- data/middleman-bootstrap-navbar.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9c8b34cb56441b7ea0a6afa63269347941d3643
|
4
|
+
data.tar.gz: 8c2497023331661de8d307c5d184200cfba60a1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccb9bbb88fad9b14a6e1417d65d9a992c59aca31a0a3cb13a538466e9dc0c119ec7370e748a4ca9db92a6e0bd93d860901ce94f708f5b2c015d6a50326785366
|
7
|
+
data.tar.gz: e8a9ee0879c31b4a5f9a69b33bf6a105fac89ea3980c1af92fc4102781fe7b1b6e7cd66c68a8d272e8c2f6c53b55e798180f4707fac920776c25e3b089871d0a
|
data/README.md
CHANGED
@@ -23,47 +23,19 @@ Or install it yourself as:
|
|
23
23
|
|
24
24
|
## Requirements
|
25
25
|
|
26
|
-
Bootstrap >= 2.0
|
26
|
+
The necessary files from Bootstrap >= 2.0 have to be included separately, they are not part of this gem.
|
27
|
+
|
28
|
+
At 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.
|
27
29
|
|
28
30
|
## Usage
|
29
31
|
|
30
|
-
Activate in `config.rb` in your Middleman app:
|
32
|
+
Activate the extensions in `config.rb` in your Middleman app:
|
31
33
|
|
32
34
|
```ruby
|
33
35
|
activate :bootstrap_navbar
|
34
36
|
```
|
35
37
|
|
36
|
-
|
37
|
-
|
38
|
-
```ruby
|
39
|
-
= nav_bar fixed: :top, brand: "My great app", responsive: true do
|
40
|
-
= menu_group do
|
41
|
-
= menu_item "Home", root_path
|
42
|
-
= menu_divider
|
43
|
-
= drop_down "Stuff" do
|
44
|
-
= menu_item "One", one_path
|
45
|
-
= menu_item "Two", two_path
|
46
|
-
= menu_item "Three", three_path
|
47
|
-
- if current_user.admin?
|
48
|
-
= menu_item "Admin", admin_path
|
49
|
-
= menu_item "About Us", about_us_path
|
50
|
-
= menu_item "Contact", contact_path
|
51
|
-
= menu_group pull: :right do
|
52
|
-
- if current_user
|
53
|
-
= menu_item "Log Out", log_out_path
|
54
|
-
- else
|
55
|
-
= menu_item "Log In", log_in_path
|
56
|
-
```
|
57
|
-
|
58
|
-
Check out the [Twitter Bootstrap Docs](http://twitter.github.io/bootstrap/components.html#navbar) for more info. All components mentioned there should be supported, so you don't need to write any HTML by hand. If there is something missing or wrong HTML is generated, please [open an issue](https://github.com/krautcomputing/middleman-bootstrap-navbar/issues).
|
59
|
-
|
60
|
-
To see all supported options, please have a look at the [source file](https://github.com/krautcomputing/middleman-bootstrap-navbar/blob/master/lib/middleman-bootstrap-navbar/helpers.rb), it should be quite readable.
|
61
|
-
|
62
|
-
Otherwise: just trust your instincts. Want a nav bar that's fixed to the bottom? Try `nav_bar fixed: :bottom`. Want a nav bar that is static? Try `nav_bar static: :top` or `nav_bar static: :bottom`.
|
63
|
-
|
64
|
-
## Inspiration
|
65
|
-
|
66
|
-
https://github.com/julescopeland/Rails-Bootstrap-Navbar
|
38
|
+
The gem [bootstrap_navbar](https://github.com/krautcomputing/bootstrap_navbar) is used to generate the HTML. Please refer to the [README](https://github.com/krautcomputing/bootstrap_navbar#usage) of that gem for detailed instructions on how to generate the navbar.
|
67
39
|
|
68
40
|
## Contributing
|
69
41
|
|
@@ -25,6 +25,6 @@ Gem::Specification.new do |gem|
|
|
25
25
|
gem.add_development_dependency 'rspec', '~> 2.13'
|
26
26
|
gem.add_development_dependency 'guard-rspec', '~> 3.0'
|
27
27
|
|
28
|
-
gem.add_runtime_dependency 'bootstrap_navbar', '~> 0.0.
|
28
|
+
gem.add_runtime_dependency 'bootstrap_navbar', '~> 0.0.6'
|
29
29
|
gem.add_runtime_dependency 'middleman-core', '>= 3.0'
|
30
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-bootstrap-navbar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manuel Meurer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.0.
|
61
|
+
version: 0.0.6
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.0.
|
68
|
+
version: 0.0.6
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: middleman-core
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|