Skip to content

Commit af88303

Browse files
committed
minor #101 Update some screenshots to wrap them with a browser window (javiereguiluz)
This PR was squashed before being merged into the 2.7 branch (closes #101). Discussion ---------- Update some screenshots to wrap them with a browser window This change just adds a CSS class to the generated `<div>` element that wraps images. Commits ------- 38bb120 Update some screenshots to wrap them with a browser window
2 parents cc06c99 + 38bb120 commit af88303

File tree

6 files changed

+19
-6
lines changed

6 files changed

+19
-6
lines changed

_images/quick_tour/welcome.png

11.4 KB
Loading

contributing/documentation/overview.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ while you're reading the Symfony documentation.
3939
and you'll be redirected to GitHub:
4040

4141
.. image:: /_images/contributing/docs-github-edit-page.png
42+
:align: center
43+
:class: with-browser
4244

4345
**Step 2.** Edit the contents, describe your changes and click on the
4446
**Propose file change** button.
@@ -48,6 +50,8 @@ and you'll be redirected to GitHub:
4850
also display a preview of your changes:
4951

5052
.. image:: /_images/contributing/docs-github-create-pr.png
53+
:align: center
54+
:class: with-browser
5155

5256
If everything is correct, click on the **Create pull request** button.
5357

controller/error_pages.rst

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,17 @@ with lots of debug information to help you quickly discover the root problem:
1515

1616
.. image:: /_images/controller/error_pages/exceptions-in-dev-environment.png
1717
:alt: A typical exception page in the development environment
18+
:align: center
19+
:class: with-browser
1820

1921
Since these pages contain a lot of sensitive internal information, Symfony won't
2022
display them in the production environment. Instead, it'll show a simple and
2123
generic **error page**:
2224

2325
.. image:: /_images/controller/error_pages/errors-in-prod-environment.png
2426
:alt: A typical error page in the production environment
27+
:align: center
28+
:class: with-browser
2529

2630
Error pages for the production environment can be customized in different ways
2731
depending on your needs:
@@ -273,19 +277,19 @@ will be passed two parameters:
273277
Instead of creating a new exception controller from scratch you can, of course,
274278
also extend the default :class:`Symfony\\Bundle\\TwigBundle\\Controller\\ExceptionController`.
275279
In that case, you might want to override one or both of the ``showAction()`` and
276-
``findTemplate()`` methods. The latter one locates the template to be used.
280+
``findTemplate()`` methods. The latter one locates the template to be used.
277281

278282
.. note::
279-
283+
280284
In case of extending the
281285
:class:`Symfony\\Bundle\\TwigBundle\\Controller\\ExceptionController` you
282286
may configure a service to pass the Twig environment and the ``debug`` flag
283-
to the constructor.
284-
287+
to the constructor.
288+
285289
.. configuration-block::
286-
290+
287291
.. code-block:: yaml
288-
292+
289293
# app/config/services.yml
290294
services:
291295
app.exception_controller:

quick_tour/the_big_picture.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,15 @@ developer's best friend!
175175

176176
.. image:: /_images/quick_tour/web_debug_toolbar.png
177177
:align: center
178+
:class: with-browser
178179

179180
But what you see initially is only the tip of the iceberg; click on any
180181
of the bar sections to open the profiler and get much more detailed information
181182
about the request, the query parameters, security details and database queries:
182183

183184
.. image:: /_images/quick_tour/profiler.png
184185
:align: center
186+
: class: with-browser
185187

186188
This tool provides so much internal information about your application that
187189
you may be worried about your visitors accessing sensible information. Symfony

setup.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ Welcome Page of Symfony:
137137
.. image:: /_images/quick_tour/welcome.png
138138
:align: center
139139
:alt: Symfony Welcome Page
140+
:class: with-browser
140141

141142
If you see a blank page or an error page instead of the Welcome Page, there is
142143
a directory permission misconfiguration. The solution to this problem is

setup/upgrade_major.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ using a deprecated feature. When visiting your application in the
4141
in your browser, these notices are shown in the web dev toolbar:
4242

4343
.. image:: /_images/install/deprecations-in-profiler.png
44+
:align: center
45+
:class: with-browser
4446

4547
Of course ultimately, you want to stop using the deprecated functionality.
4648
Sometimes, this is easy: the warning might tell you exactly what to change.

0 commit comments

Comments
 (0)