28 lines
718 B
ReStructuredText
28 lines
718 B
ReStructuredText
Bootlint
|
|
========
|
|
|
|
The admin comes with `Bootlint`_ integration
|
|
since version 3.0. Bootlint is an HTML linter for Bootstrap projects.
|
|
|
|
You should use it when you want add some contributions on Sonata UI to check
|
|
the eventual Twitter Bootstrap conventions' mistakes.
|
|
|
|
Enable Bootlint
|
|
---------------
|
|
|
|
To use Bootlint in your admin, you can enable it in ``config.yml``.
|
|
|
|
.. configuration-block::
|
|
|
|
.. code-block:: yaml
|
|
|
|
sonata_admin:
|
|
options:
|
|
use_bootlint: true # enable Bootlint
|
|
|
|
Then open your browser debugger to look after some Bootlint warnings on console.
|
|
|
|
No warning? Congrats! Your page is fully Bootstrap compliant! ;)
|
|
|
|
.. _`Bootlint`: https://github.com/twbs/bootlint
|