Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 900 Bytes

auto_full.rst

File metadata and controls

26 lines (17 loc) · 900 Bytes

The full automatic way

This is the simplest way to use, you will let the serializer automatically describe every reference rules existing within the CSS manifest.

Write a Sass file that will use the helpers and settings to build a CSS manifest:

.. literalinclude:: ../../tests/data_fixtures/sass/scss/styleguide_manifest_full.scss
   :language: scss

Note

From styleguide-metas-references we require to serialize every existing references with the simple rule --auto: "true".

Build CSS manifest with your Sass compiler and you should get:

.. literalinclude:: ../../tests/data_fixtures/sass/css/styleguide_manifest_full.css
   :language: css

Then load this manifest with script styleguide.py and it will return this JSON:

.. literalinclude:: ../../tests/data_fixtures/json/styleguide_manifest_full.json
   :language: json