Skip to content

Commit 1090ea9

Browse files
committed
Use TerminalLexer for console examples
1 parent d65df64 commit 1090ea9

File tree

82 files changed

+227
-223
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+227
-223
lines changed

assetic/asset_management.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ environment is just too slow.
513513
Instead, each time you use your application in the ``prod`` environment (and therefore,
514514
each time you deploy), you should run the following command:
515515

516-
.. code-block:: bash
516+
.. code-block:: terminal
517517
518518
$ php app/console assetic:dump --env=prod --no-debug
519519
@@ -565,7 +565,7 @@ the following change in your ``config_dev.yml`` file:
565565
Next, since Symfony is no longer generating these assets for you, you'll
566566
need to dump them manually. To do so, run the following command:
567567

568-
.. code-block:: bash
568+
.. code-block:: terminal
569569
570570
$ php app/console assetic:dump
571571
@@ -574,7 +574,7 @@ environment. The big disadvantage is that you need to run this each time
574574
you update an asset. Fortunately, by using the ``assetic:watch`` command,
575575
assets will be regenerated automatically *as they change*:
576576

577-
.. code-block:: bash
577+
.. code-block:: terminal
578578
579579
$ php app/console assetic:watch
580580

assetic/php.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ associated libraries. Therefore, before enabling the filters used in this articl
2828
you must install two libraries. Open a command console, browse to your project
2929
directory and execute the following commands:
3030

31-
.. code-block:: bash
31+
.. code-block:: terminal
3232
3333
$ composer require leafo/scssphp
3434
$ composer require patchwork/jsqueeze

assetic/uglifyjs.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ The global installation method makes all your projects use the very same UglifyJ
2626
version, which simplifies its maintenance. Open your command console and execute
2727
the following command (you may need to run it as a root user):
2828

29-
.. code-block:: bash
29+
.. code-block:: terminal
3030
3131
$ npm install -g uglify-js
3232
3333
Now you can execute the global ``uglifyjs`` command anywhere on your system:
3434

35-
.. code-block:: bash
35+
.. code-block:: terminal
3636
3737
$ uglifyjs --help
3838
@@ -43,7 +43,7 @@ It's also possible to install UglifyJS inside your project only, which is useful
4343
when your project requires a specific UglifyJS version. To do this, install it
4444
without the ``-g`` option and specify the path where to put the module:
4545

46-
.. code-block:: bash
46+
.. code-block:: terminal
4747
4848
$ cd /path/to/your/symfony/project
4949
$ npm install uglify-js --prefix app/Resources
@@ -55,7 +55,7 @@ an npm `package.json`_ file and specify your dependencies there.
5555
Now you can execute the ``uglifyjs`` command that lives in the ``node_modules``
5656
directory:
5757

58-
.. code-block:: bash
58+
.. code-block:: terminal
5959
6060
$ "./app/Resources/node_modules/.bin/uglifyjs" --help
6161
@@ -113,7 +113,7 @@ your JavaScripts:
113113
The path where UglifyJS is installed may vary depending on your system.
114114
To find out where npm stores the ``bin`` folder, execute the following command:
115115

116-
.. code-block:: bash
116+
.. code-block:: terminal
117117
118118
$ npm bin -g
119119
@@ -249,7 +249,7 @@ Install, Configure and Use UglifyCSS
249249
The usage of UglifyCSS works the same way as UglifyJS. First, make sure
250250
the node package is installed:
251251

252-
.. code-block:: bash
252+
.. code-block:: terminal
253253
254254
# global installation
255255
$ npm install -g uglifycss

best_practices/business-logic.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ Data Fixtures
279279
As fixtures support is not enabled by default in Symfony, you should execute
280280
the following command to install the Doctrine fixtures bundle:
281281

282-
.. code-block:: bash
282+
.. code-block:: terminal
283283
284284
$ composer require "doctrine/doctrine-fixtures-bundle"
285285
@@ -316,7 +316,7 @@ Assuming you have at least one fixtures class and that the database access
316316
is configured properly, you can load your fixtures by executing the following
317317
command:
318318

319-
.. code-block:: bash
319+
.. code-block:: terminal
320320
321321
$ php app/console doctrine:fixtures:load
322322

best_practices/creating-the-project.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Now that everything is correctly set up, you can create a new project based on
2525
Symfony. In your command console, browse to a directory where you have permission
2626
to create files and execute the following commands:
2727

28-
.. code-block:: bash
28+
.. code-block:: terminal
2929
3030
# Linux, Mac OS X
3131
$ cd projects/
@@ -145,7 +145,7 @@ that follows these best practices:
145145
If your Symfony installation doesn't come with a pre-generated AppBundle,
146146
you can generate it by hand executing this command:
147147

148-
.. code-block:: bash
148+
.. code-block:: terminal
149149
150150
$ php app/console generate:bundle --namespace=AppBundle --dir=src --format=annotation --no-interaction
151151

best_practices/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ best practices in mind. This project, called the Symfony Demo application, can
7474
be obtained through the Symfony Installer. First, `download and install`_ the
7575
installer and then execute this command to download the demo application:
7676

77-
.. code-block:: bash
77+
.. code-block:: terminal
7878
7979
# Linux and Mac OS X
8080
$ symfony demo

best_practices/templates.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ the Markdown contents of each post into HTML.
6969
To do this, first, install the excellent `Parsedown`_ Markdown parser as
7070
a new dependency of the project:
7171

72-
.. code-block:: bash
72+
.. code-block:: terminal
7373
7474
$ composer require erusev/parsedown
7575

bundles.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ And while it doesn't do anything yet, AcmeTestBundle is now ready to be used.
120120
And as easy as this is, Symfony also provides a command-line interface for
121121
generating a basic bundle skeleton:
122122

123-
.. code-block:: bash
123+
.. code-block:: terminal
124124
125125
$ php app/console generate:bundle --namespace=Acme/TestBundle
126126

bundles/best_practices.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ following standardized instructions in your ``README.md`` file.
207207
Open a command console, enter your project directory and execute the
208208
following command to download the latest stable version of this bundle:
209209
210-
```bash
210+
```console
211211
$ composer require <package-name> "~1"
212212
```
213213
@@ -254,7 +254,7 @@ following standardized instructions in your ``README.md`` file.
254254
Open a command console, enter your project directory and execute the
255255
following command to download the latest stable version of this bundle:
256256
257-
.. code-block:: bash
257+
.. code-block:: terminal
258258
259259
$ composer require <package-name> "~1"
260260

bundles/installation.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ the bundle on the `Packagist.org`_ site.
3434

3535
Now that you know the package name, you can install it via Composer:
3636

37-
.. code-block:: bash
37+
.. code-block:: terminal
3838
3939
$ composer require friendsofsymfony/user-bundle
4040
4141
This will choose the best version for your project, add it to ``composer.json``
4242
and download its code into the ``vendor/`` directory. If you need a specific
4343
version, include it as the second argument of the `composer require`_ command:
4444

45-
.. code-block:: bash
45+
.. code-block:: terminal
4646
4747
$ composer require friendsofsymfony/user-bundle "~2.0"
4848
@@ -106,14 +106,14 @@ in ``app/config/config.yml``. The bundle's documentation will tell you about
106106
the configuration, but you can also get a reference of the bundle's configuration
107107
via the ``config:dump-reference`` command:
108108

109-
.. code-block:: bash
109+
.. code-block:: terminal
110110
111111
$ app/console config:dump-reference AsseticBundle
112112
113113
Instead of the full bundle name, you can also pass the short name used as the root
114114
of the bundle's configuration:
115115

116-
.. code-block:: bash
116+
.. code-block:: terminal
117117
118118
$ app/console config:dump-reference assetic
119119

0 commit comments

Comments
 (0)