First of all, thanks for thinking of contributing to this project. 😄
-
Fork this repository and clone it and install all the required gem dependencies.
git clone https://github.com/`your_github_user_id`/networkx.rb.git cd networkx.rb gem install bundler bundle install
-
Checkout to a different git branch (say,
adds-new-feature
). -
Add code (, test, and YARD documentation).
-
Run the rspec test-suite.
# Runs test suite for all files bundle exec rspec # Runs test-suite only for a particular file bundle exec rspec spec/networkx/filename_spec.rb
-
Run the rubocop for static code quality comments.
# Runs rubocop test for all files bundle exec rubocop # Runs rubocop test only for a particular file bundle exec rubocop lib/networkx/filename.rb
-
Send a Pull Request back to this repository. 🎉
You can create YARD documentation
- Create Document for
doc
directory withyard
command - Create server via
yard server
command - open Browser with
open http://0.0.0.0:8808
e.t.c.
$ yard
$ yard server
$ open http://0.0.0.0:8808