Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codeplant/simple-navigation
A ruby gem for creating navigations (with multiple levels) for your Rails, Sinatra or Padrino applications. Render your navigation as html list, link list or breadcrumbs.
https://github.com/codeplant/simple-navigation
menu navigation padrino rails ruby sinatra
Last synced: 7 days ago
JSON representation
A ruby gem for creating navigations (with multiple levels) for your Rails, Sinatra or Padrino applications. Render your navigation as html list, link list or breadcrumbs.
- Host: GitHub
- URL: https://github.com/codeplant/simple-navigation
- Owner: codeplant
- License: mit
- Created: 2009-03-09T19:26:31.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2023-07-27T11:46:26.000Z (over 1 year ago)
- Last Synced: 2024-10-29T13:50:44.284Z (about 1 month ago)
- Topics: menu, navigation, padrino, rails, ruby, sinatra
- Language: Ruby
- Homepage: http://simple-navigation-demo.codeplant.ch/
- Size: 877 KB
- Stars: 885
- Watchers: 20
- Forks: 136
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ruby-toolbox - Simple-navigation - With the simple-navigation gem installed you can easily create multilevel navigations for your Rails, Sinatra or Padrino applications. The navigation is defined in a single configuration file. It supports automatic as well as explicit highlighting of the currently active navigation through regular expressions. (HTML & Markup / Rails Menu Builders)
- awesome-ruby - Simple Navigation - A ruby gem for creating navigation (html list, link list or breadcrumbs with multiple levels) for your Rails 2, 3 & 4, Sinatra or Padrino. (Navigation)
README
# Simple Navigation
[![Gem Version](https://badge.fury.io/rb/simple-navigation.png)](http://badge.fury.io/rb/simple-navigation)
[![Build Status](https://secure.travis-ci.org/codeplant/simple-navigation.png?branch=master)](http://travis-ci.org/codeplant/simple-navigation)
[![Code Climate](https://codeclimate.com/github/codeplant/simple-navigation.png)](https://codeclimate.com/github/codeplant/simple-navigation)
[![Coverage Status](https://coveralls.io/repos/codeplant/simple-navigation/badge.png)](https://coveralls.io/r/codeplant/simple-navigation)Simple Navigation is a ruby library for creating navigations (with multiple levels) for your Rails, Sinatra or Padrino applications. It runs with all ruby versions (including ruby 2.x).
## Documentation
For the complete documentation, take a look at the [project's wiki](https://github.com/codeplant/simple-navigation/wiki).
## RDoc
You can consult the project's RDoc on [RubyDoc.info](http://rubydoc.info/github/codeplant/simple-navigation/frames).
If you need to generate the RDoc files locally, check out the repository and simply call the `rake rdoc` in the project's folder.
## Online Demo
You can try simple-navigation with the [online demo](http://simple-navigation-demo.codeplant.ch).
The source code of this online demo is [available on Github](http://github.com/codeplant/simple-navigation-demo).
## Feedback and Questions
Don't hesitate to come talk on the [project's group](http://groups.google.com/group/simple-navigation).
## Contributing
Fork, fix, then send a Pull Request.
To run the test suite locally against all supported frameworks:
% bundle install
% rake spec:allTo target the test suite against one framework:
% rake spec:rails-4-2-stable
You can find a list of supported spec tasks by running rake -T. You may also find it useful to run a specific test for a specific framework. To do so, you'll have to first make sure you have bundled everything for that configuration, then you can run the specific test:
% BUNDLE_GEMFILE='gemfiles/rails-4-2-stable.gemfile' bundle install -j 4
% BUNDLE_GEMFILE='gemfiles/rails-4-2-stable.gemfile' bundle exec rspec ./spec/requests/users_spec.rb### Rake and Bundler
If you use a shell plugin (like oh-my-zsh:bundler) that auto-prefixes commands with `bundle exec` using the `rake` command will fail.
Get the original command with `type -a rake`:
% type -a rake
rake is an alias for bundled_rake
rake is /Users/username/.rubies/ruby-2.2.3/bin/rake
rake is /usr/bin/rakeIn this situation `/Users/username/.rubies/ruby-2.2.3/bin/rake` is the command you should use.
## License
Copyright (c) 2022 codeplant GmbH, released under the MIT license