Contribute
decidim-toggle is maintained by Voca, a project from Octree.
Issues and merge requests are welcome on GitLab:
Read the Code of conduct before participating.
Module developers adding a tab to their own gem: Integrate.
Before you push
docker compose up -d
docker compose exec toggle bash -lc 'cd /home/module && bundle install -j$(nproc) && ./bin/check'
cd website && yarn build
| Check | Command |
|---|---|
| All | ./bin/check (RuboCop, erblint, RSpec) |
| RSpec | unset DATABASE_URL && RAILS_ENV=test bundle exec rspec |
| Docs | cd website && yarn build |
Deep dives
| Topic | Page |
|---|---|
Registry and add_tab internals | Tab registry |
| Gem-owned views and layouts | View customization |
| Invalid form replay and redirects | Error handling |
Deface overrides (window.DecidimToggle) | Deface usage |
| Editing this documentation site | Documentation website |