recipe_bootlint.rst 718 B

123456789101112131415161718192021222324252627
  1. Bootlint
  2. ========
  3. The admin comes with `Bootlint`_ integration
  4. since version 3.0. Bootlint is an HTML linter for Bootstrap projects.
  5. You should use it when you want add some contributions on Sonata UI to check
  6. the eventual Twitter Bootstrap conventions' mistakes.
  7. Enable Bootlint
  8. ---------------
  9. To use Bootlint in your admin, you can enable it in ``config.yml``.
  10. .. configuration-block::
  11. .. code-block:: yaml
  12. sonata_admin:
  13. options:
  14. use_bootlint: true # enable Bootlint
  15. Then open your browser debugger to look after some Bootlint warnings on console.
  16. No warning? Congrats! Your page is fully Bootstrap compliant! ;)
  17. .. _`Bootlint`: https://github.com/twbs/bootlint