Platoniq / brand

Resources and how-tos to add Platoniq brand in our products.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Platoniq logo

Platoniq Brand in Decidim instances

To add files for custom Platoniq footer in Decidim instances, run:

chmod +x ./bin/initialize-decidim-instance-for-platoniq

./bin/initialize-decidim-instance-for-platoniq PATH_TO_DECIDIM_INSTANCE

To import the platoniq.scss, you need to add it in app/stylesheets/decidim.scss after the @import "decidim/application"; line, like this:

@import "decidim/application";
@import "platoniq/platoniq";

To overwrite the default Decidim footer with the custom one, create the file app/views/layouts/decidim/_mini_footer.html.erb with this content:

<%= render partial: "platoniq/mini_footer" %>

Finally, add the key repository_url to the config/secrets.yml with the URL of the instance's repository.

default: &default
  repository_url: https://github.com/Platoniq/decidim-INSTANCE_NAME

Platoniq Brand in Decidim modules

To add files to follow Platoniq guidelines for a Decidim module, run:

chmod +x ./bin/initialize-decidim-module-for-platoniq

./bin/initialize-decidim-module-for-platoniq PATH_TO_DECIDIM_MODULE

To import the platoniq.scss, you need to add it in app/stylesheets/decidim.scss after the @import "decidim/application"; line, like this:

@import "decidim/application";
@import "platoniq/platoniq";

Finally, add the key repository_url to the config/secrets.yml with the URL of the instance's repository.

default: &default
  repository_url: https://github.com/Platoniq/decidim-INSTANCE_NAME

Good Practices Checklist

Repository

  • Naming > Repository: If it's a Decidim instance, the repository name should be decidim-CLIENT

    Replace CLIENT with the lowercase, hyphen-separated name of the client, ideally matching the domain name without the domain extension.

    • e.g. for city-government.org the repository name should be decidim-city-government
  • Naming > Repository: If it's a Decidim module, the repository name should be decidim-module-NAME_OF_MODULE

    Replace NAME_OF_MODULE with the lowercase, undescore-separated name of the module, matching the namespace used.

    • e.g. for Decidim::DecidimCustomThings the repository name should be decidim-module-decidim_custom_things
  • Naming > Branches: Main branch should be named main, not master.

  • Naming > Branches: For new features, use feature/name-of-new-feature

    • e.g. feature/customize-styles
    • e.g. feature/restrict-access-to-space
  • Naming > Branches: For bugfixes, use fix/name-of-the-bug

    • e.g. fix/profile-link-wrong-redirection
    • e.g. fix/menu-item-disappeared
  • Naming > Branches: For maintenance tasks (adding Github workflows, updating versions, etc.), use chore/name-of-the-task

    • e.g. chore/add-lint-workflow
    • e.g. chore/update-to-0.25
  • Merging: Please delete your working branch after it has been merged to main (to prevent stale branches polluting the repository).

About

Resources and how-tos to add Platoniq brand in our products.

License:GNU Affero General Public License v3.0


Languages

Language:Shell 44.5%Language:HTML 34.8%Language:SCSS 20.7%