From 674becd10ccc1062d5305e88b411d53b0a0908e8 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Mon, 25 Jan 2016 16:40:26 +0100 Subject: [PATCH] use valid XML in code block --- book/service_container.rst | 2 +- components/dependency_injection/parameters.rst | 2 +- components/intl.rst | 6 ++++-- cookbook/assetic/apply_to_option.rst | 2 +- cookbook/configuration/override_dir_structure.rst | 2 -- cookbook/deployment/heroku.rst | 2 +- cookbook/doctrine/mongodb_session_storage.rst | 2 +- cookbook/install/unstable_versions.rst | 1 - cookbook/logging/monolog.rst | 15 ++++++++++----- cookbook/logging/monolog_email.rst | 13 +++++++------ cookbook/symfony1.rst | 6 ++++-- cookbook/testing/bootstrap.rst | 1 - 12 files changed, 30 insertions(+), 24 deletions(-) diff --git a/book/service_container.rst b/book/service_container.rst index da165ceae4b..1482d6223d3 100644 --- a/book/service_container.rst +++ b/book/service_container.rst @@ -269,7 +269,7 @@ parameter and uses it in the service definition. .. code-block:: xml - http://symfony.com/?foo=%%s&bar=%%d + http://symfony.com/?foo=%%s&bar=%%d .. caution:: diff --git a/components/dependency_injection/parameters.rst b/components/dependency_injection/parameters.rst index fd2e8f99f9d..e38fd0efd1d 100644 --- a/components/dependency_injection/parameters.rst +++ b/components/dependency_injection/parameters.rst @@ -155,7 +155,7 @@ the parameter value in one place if needed. .. code-block:: xml - http://symfony.com/?foo=%%s&bar=%%d + http://symfony.com/?foo=%%s&bar=%%d .. code-block:: php diff --git a/components/intl.rst b/components/intl.rst index dda3830e4d2..b8047db0cd0 100644 --- a/components/intl.rst +++ b/components/intl.rst @@ -126,8 +126,10 @@ code:: .. code-block:: json - "require: { - "symfony/icu": "1.1.*" + { + "require": { + "symfony/icu": "1.1.*" + } } Set the version to diff --git a/cookbook/assetic/apply_to_option.rst b/cookbook/assetic/apply_to_option.rst index 0e329087506..8f5776c7fe0 100644 --- a/cookbook/assetic/apply_to_option.rst +++ b/cookbook/assetic/apply_to_option.rst @@ -142,7 +142,7 @@ In this case you can specify that the ``coffee`` filter is applied to all bin: /usr/bin/coffee node: /usr/bin/node node_paths: [/usr/lib/node_modules/] - apply_to: "\.coffee$" + apply_to: '\.coffee$' .. code-block:: xml diff --git a/cookbook/configuration/override_dir_structure.rst b/cookbook/configuration/override_dir_structure.rst index d6032b9ce38..a17185e0730 100644 --- a/cookbook/configuration/override_dir_structure.rst +++ b/cookbook/configuration/override_dir_structure.rst @@ -177,12 +177,10 @@ The change in the ``composer.json`` will look like this: .. code-block:: json { - ... "config": { "bin-dir": "bin", "vendor-dir": "/some/dir/vendor" }, - ... } Then, update the path to the ``autoload.php`` file in ``app/autoload.php``:: diff --git a/cookbook/deployment/heroku.rst b/cookbook/deployment/heroku.rst index 92feaabe329..0bb743fada1 100644 --- a/cookbook/deployment/heroku.rst +++ b/cookbook/deployment/heroku.rst @@ -167,7 +167,7 @@ variables, you can issue a single command to prepare your app for a deployment: Next up, it's finally time to deploy your application to Heroku. If you are doing this for the very first time, you may see a message such as the following: -.. code-block:: bash +.. code-block:: text The authenticity of host 'heroku.com (50.19.85.132)' can't be established. RSA key fingerprint is 8b:48:5e:67:0e:c9:16:47:32:f2:87:0c:1f:c8:60:ad. diff --git a/cookbook/doctrine/mongodb_session_storage.rst b/cookbook/doctrine/mongodb_session_storage.rst index 7a2277cb2cc..f4669e936a3 100644 --- a/cookbook/doctrine/mongodb_session_storage.rst +++ b/cookbook/doctrine/mongodb_session_storage.rst @@ -162,7 +162,7 @@ Because MongoDB uses dynamic collection schemas, you do not need to do anything session collection. However, you may want to add an index to improve garbage collection performance. From the `MongoDB shell`_: -.. code-block:: sql +.. code-block:: text use session_db db.session.ensureIndex( { "expires_at": 1 }, { expireAfterSeconds: 0 } ) diff --git a/cookbook/install/unstable_versions.rst b/cookbook/install/unstable_versions.rst index b1d2b9abc77..6d8464c9489 100644 --- a/cookbook/install/unstable_versions.rst +++ b/cookbook/install/unstable_versions.rst @@ -41,7 +41,6 @@ dependency as follows: { "require": { - // ... "symfony/symfony" : "2.7.*@dev" } } diff --git a/cookbook/logging/monolog.rst b/cookbook/logging/monolog.rst index e6d66b9469e..376bf5affba 100644 --- a/cookbook/logging/monolog.rst +++ b/cookbook/logging/monolog.rst @@ -252,17 +252,22 @@ option of your handler to ``rotating_file``: .. code-block:: xml - - + + + max_files="10" /> diff --git a/cookbook/logging/monolog_email.rst b/cookbook/logging/monolog_email.rst index cf801de561b..f23f0510cc6 100644 --- a/cookbook/logging/monolog_email.rst +++ b/cookbook/logging/monolog_email.rst @@ -41,6 +41,7 @@ it is broken down. .. code-block:: xml + + ^/ - --> />