Skip to content
Prev Previous commit
Next Next commit
Added the version_strategy option to the config reference
  • Loading branch information
javiereguiluz committed Dec 8, 2016
commit a02f3b35371454daf599fe7edc6b9099f4e055f5
12 changes: 12 additions & 0 deletions reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ Configuration
* `packages`_
* `version`_
* `version_format`_
* `version_strategy`_
* `templating`_
* `hinclude_default_template`_
* :ref:`form <reference-templating-form>`
Expand Down Expand Up @@ -1015,6 +1016,7 @@ Each package can configure the following options:
* :ref:`base_urls <reference-assets-base-urls>`
* :ref:`version <reference-framework-assets-version>`
* :ref:`version_format <reference-assets-version-format>`
* :ref:`version_strategy <reference-assets-version-strategy>`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this should be reference-framework-assets-version_strategy instead (see the build failure on Travis CI).


.. _reference-framework-assets-version:
.. _ref-framework-assets-version:
Expand Down Expand Up @@ -1133,6 +1135,16 @@ is set to ``5``, the asset's path would be ``/images/logo.png?version=5``.
any URL rewriting. The latter option is useful if you would like older
asset versions to remain accessible at their original URL.

.. _reference-framework-assets-version_strategy:

version_strategy
................

**type**: ``string`` **default**: null

The service id of the :doc:`asset version strategy </frontend/custom_version:strategy>`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The colon in the path would be an underscore.

applied to the assets.

templating
~~~~~~~~~~

Expand Down