@@ -87,8 +87,8 @@ your application:
8787 Introducing Assetic
8888-------------------
8989
90- Assetic combines two major ideas: :ref: `assets <cookbook- assetic-assets >` and
91- :ref: `filters <cookbook- assetic-filters >`. The assets are files such as CSS,
90+ Assetic combines two major ideas: :ref: `assets <assetic-assets >` and
91+ :ref: `filters <assetic-filters >`. The assets are files such as CSS,
9292JavaScript and image files. The filters are things that can be applied to
9393these files before they are served to the browser. This allows a separation
9494between the asset files stored in the application and the files actually presented
@@ -117,7 +117,7 @@ load them from anywhere) before serving them. This means you can:
117117
118118* Run image optimizations on your images
119119
120- .. _ cookbook-assetic -assets :
120+ .. _ assetic -assets :
121121
122122Assets
123123------
@@ -126,12 +126,12 @@ Using Assetic provides many advantages over directly serving the files.
126126The files do not need to be stored where they are served from and can be
127127drawn from various sources such as from within a bundle.
128128
129- You can use Assetic to process :ref: `CSS stylesheets <cookbook- assetic-including-css >`,
130- :ref: `JavaScript files <cookbook- assetic-including-javascript >` and
131- :ref: `images <cookbook- assetic-including-image >`. The philosophy
129+ You can use Assetic to process :ref: `CSS stylesheets <assetic-including-css >`,
130+ :ref: `JavaScript files <assetic-including-javascript >` and
131+ :ref: `images <assetic-including-image >`. The philosophy
132132behind adding either is basically the same, but with a slightly different syntax.
133133
134- .. _ cookbook-assetic -including-javascript :
134+ .. _ assetic -including-javascript :
135135
136136Including JavaScript Files
137137~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -172,7 +172,7 @@ To include JavaScript files, use the ``javascripts`` tag in any template:
172172
173173.. tip ::
174174
175- You can also include CSS stylesheets: see :ref: `cookbook- assetic-including-css `.
175+ You can also include CSS stylesheets: see :ref: `assetic-including-css `.
176176
177177In this example, all files in the ``Resources/public/js/ `` directory of the
178178AppBundle will be loaded and served from a different location. The actual
@@ -184,9 +184,9 @@ rendered tag might simply look like:
184184
185185This is a key point: once you let Assetic handle your assets, the files are
186186served from a different location. This *will * cause problems with CSS files
187- that reference images by their relative path. See :ref: `cookbook- assetic-cssrewrite `.
187+ that reference images by their relative path. See :ref: `assetic-cssrewrite `.
188188
189- .. _ cookbook-assetic -including-css :
189+ .. _ assetic -including-css :
190190
191191Including CSS Stylesheets
192192~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -229,7 +229,7 @@ except with the ``stylesheets`` tag:
229229
230230But because Assetic changes the paths to your assets, this *will * break any
231231background images (or other paths) that uses relative paths, unless you use
232- the :ref: `cssrewrite <cookbook- assetic-cssrewrite >` filter.
232+ the :ref: `cssrewrite <assetic-cssrewrite >` filter.
233233
234234.. note ::
235235
@@ -240,7 +240,7 @@ the :ref:`cssrewrite <cookbook-assetic-cssrewrite>` filter.
240240 that there is a known issue that causes the ``cssrewrite `` filter to fail
241241 when using the ``@AppBundle `` syntax for CSS stylesheets.
242242
243- .. _ cookbook-assetic -including-image :
243+ .. _ assetic -including-image :
244244
245245Including Images
246246~~~~~~~~~~~~~~~~
@@ -272,7 +272,7 @@ You can also use Assetic for image optimization. More information in
272272 `LiipImagineBundle `_ community bundle, which allows to compress and
273273 manipulate images (rotate, resize, watermark, etc.) before serving them.
274274
275- .. _ cookbook-assetic -cssrewrite :
275+ .. _ assetic -cssrewrite :
276276
277277Fixing CSS Paths with the ``cssrewrite `` Filter
278278~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -333,7 +333,7 @@ the JavaScript files.
333333 If you're new to Assetic and try to use your application in the ``prod ``
334334 environment (by using the ``app.php `` controller), you'll likely see
335335 that all of your CSS and JS breaks. Don't worry! This is on purpose.
336- For details on using Assetic in the ``prod `` environment, see :ref: `cookbook- assetic-dumping `.
336+ For details on using Assetic in the ``prod `` environment, see :ref: `assetic-dumping `.
337337
338338And combining files doesn't only apply to *your * files. You can also use Assetic to
339339combine third party assets, such as jQuery, with your own into a single file:
@@ -437,7 +437,7 @@ with the ``@named_asset`` notation:
437437 <script src="<?php echo $view->escape($url) ?>"></script>
438438 <?php endforeach ?>
439439
440- .. _ cookbook-assetic -filters :
440+ .. _ assetic -filters :
441441
442442Filters
443443-------
@@ -557,7 +557,7 @@ done from the template and is relative to the public document root:
557557 via configuration on each deployment. For more information, see the
558558 :ref: `reference-framework-assets-version ` configuration option.
559559
560- .. _ cookbook-assetic -dumping :
560+ .. _ assetic -dumping :
561561
562562Dumping Asset Files
563563-------------------
@@ -591,7 +591,7 @@ by Symfony (as the asset files are in the ``dev`` environment). This is on
591591purpose - letting Symfony generate these files dynamically in a production
592592environment is just too slow.
593593
594- .. _ cookbook-assetic -dump-prod :
594+ .. _ assetic -dump-prod :
595595
596596Instead, each time you use your application in the ``prod `` environment (and therefore,
597597each time you deploy), you should run the following command:
0 commit comments