Skip to content

use valid XML in code block #6183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 27, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion book/service_container.rst
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ parameter and uses it in the service definition.

.. code-block:: xml

<argument type="string">http://symfony.com/?foo=%%s&bar=%%d</argument>
<argument type="string">http://symfony.com/?foo=%%s&amp;bar=%%d</argument>

.. caution::

Expand Down
2 changes: 1 addition & 1 deletion components/dependency_injection/parameters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ the parameter value in one place if needed.

.. code-block:: xml

<argument>http://symfony.com/?foo=%%s&bar=%%d</argument>
<argument>http://symfony.com/?foo=%%s&amp;bar=%%d</argument>

.. code-block:: php

Expand Down
6 changes: 4 additions & 2 deletions components/intl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,10 @@ code::

.. code-block:: json

"require: {
"symfony/icu": "1.1.*"
{
"require": {
"symfony/icu": "1.1.*"
}
}

Set the version to
Expand Down
2 changes: 1 addition & 1 deletion cookbook/assetic/apply_to_option.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions cookbook/configuration/override_dir_structure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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``::
Expand Down
2 changes: 1 addition & 1 deletion cookbook/deployment/heroku.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion cookbook/doctrine/mongodb_session_storage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Member

Choose a reason for hiding this comment

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

that's weird, SQL should be available.

Copy link
Member

Choose a reason for hiding this comment

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

Sorry, my bad, it isn't sql.

Copy link
Member

Choose a reason for hiding this comment

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

as it's shell code, shouldn't we use bash + $ though?

Copy link
Member Author

Choose a reason for hiding this comment

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

It even isn't shell code, is it? I mean it's the MongoDB shell, but I am not sure if the bash highligher will handle that properly. Let's try it (see #6192).

use session_db
db.session.ensureIndex( { "expires_at": 1 }, { expireAfterSeconds: 0 } )
Expand Down
1 change: 0 additions & 1 deletion cookbook/install/unstable_versions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ dependency as follows:

{
"require": {
// ...
"symfony/symfony" : "2.7.*@dev"
}
}
Expand Down
15 changes: 10 additions & 5 deletions cookbook/logging/monolog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -252,17 +252,22 @@ option of your handler to ``rotating_file``:
.. code-block:: xml

<!-- app/config/config_dev.xml -->
<?xml version="1.0" charset="UTF-8" ?>
<container xmlns=''http://symfony.com/schema/dic/services"
xmlns:monolog="http://symfony.com/schema/dic/monolog">
<?xml version="1.0" encoding="UTF-8" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:monolog="http://symfony.com/schema/dic/monolog"
xsi:schemaLocation="http://symfony.com/schema/dic/services
http://symfony.com/schema/dic/services/services-1.0.xsd
http://symfony.com/schema/dic/monolog
http://symfony.com/schema/dic/monolog/monolog-1.0.xsd">

<monolog:config>
<!-- "max_files": max number of log files to keep
defaults to zero, which means infinite files -->
<monolog:handler name="main"
type="rotating_file"
path="%kernel.logs_dir%/%kernel.environment%.log"
level="debug"
<!-- max number of log files to keep
defaults to zero, which means infinite files -->
max_files="10"
/>
</monolog:config>
Expand Down
13 changes: 7 additions & 6 deletions cookbook/logging/monolog_email.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,25 @@ it is broken down.
.. code-block:: xml

<!-- app/config/config_prod.xml -->
<?xml version="1.0" encoding="UTF-8" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:monolog="http://symfony.com/schema/dic/monolog"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
http://symfony.com/schema/dic/monolog http://symfony.com/schema/dic/monolog/monolog-1.0.xsd">

<monolog:config>
<!--
To also log 400 level errors (but not 404's):
action-level="error"
And add this child inside this monolog:handler
<monolog:excluded-404>^/</monolog:excluded-404>
-->
<monolog:handler
name="mail"
type="fingers_crossed"
action-level="critical"
handler="buffered"
<!--
To also log 400 level errors (but not 404's):
action-level="error"
And add this child inside this monolog:handler
<monolog:excluded-404>^/</monolog:excluded-404>
-->
/>
<monolog:handler
name="buffered"
Expand Down
6 changes: 4 additions & 2 deletions cookbook/symfony1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,10 @@ from specific directories without defining a dependency:

.. code-block:: json

"autoload": {
"psr-0": { "": "src/" }
{
"autoload": {
"psr-0": { "": "src/" }
}
}

This means that if a class is not found in the ``vendor`` directory, Composer
Expand Down
1 change: 0 additions & 1 deletion cookbook/testing/bootstrap.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ with ``tests.bootstrap.php``:

<!-- ... -->
<phpunit
...
bootstrap = "tests.bootstrap.php"
>

Expand Down