Skip to content

Commit

Permalink
[skip ci] add composer part (doc)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcheron committed Jun 7, 2020
1 parent e1b83a4 commit 110b9af
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 7 deletions.
Binary file added docs/_static/images/composer/composer-add-1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/images/composer/composer-add-2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/images/composer/composer-elm.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 40 additions & 3 deletions docs/extra/libraries.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,42 @@
External libraries
==================
Composer management
===================
.. |br| raw:: html

<br />
<br />

.. note:: This part is accessible from the **webtools**, so if you created your project with the **-a** option or with the **create-project** command..

Access
------

From the webtools, activate the **composer** part,

.. image:: /_static/images/composer/composer-elm.png
:class: bordered

or go directly to ``http://127.0.0.1:8090/Admin/composer``.

Dependencies list
-----------------
The interface displays the list of already installed dependencies, and those that are directly installable.

.. image:: /_static/images/composer/composer-dependencies.png
:class: bordered


Dependency installation
-----------------------
Among the listed dependencies:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Click on the add button of the dependencies you want to add.

.. image:: /_static/images/composer/composer-add-1.png
:class: bordered

Then click on the **Generate composer update** button:

.. image:: /_static/images/composer/composer-add-2.png
:class: bordered

The validation generates the update.
8 changes: 4 additions & 4 deletions docs/view/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -452,17 +452,17 @@ Installing MobileDetect:
It is generally easier to create different views per device.

Create a specific theme for the mobile part (by creating a folder `views/themes/mobile` and putting the views specific to mobile devices in it). |br|
Create a specific theme for the mobile part (by creating a folder ``views/themes/mobile`` and putting the views specific to mobile devices in it). |br|
It is important in this case to use the same file names for the mobile and non-mobile part.

It is also advisable in this case that all view loadings use the **@activeTheme**:
It is also advisable in this case that all view loadings use the **@activeTheme** namespace:

.. code-block:: php
$this->loadView("@activeTheme/index.html");
**index.html** must be available in this case in the folders `views` and `views/themes/mobile`.
**index.html** must be available in this case in the folders ``views`` and ``views/themes/mobile``.

Global mobile detection (from services.php)
+++++++++++++++++++++++++++++++++++++++++++
Expand All @@ -483,7 +483,7 @@ Global mobile detection (from services.php)
});
Locale detection (From a controller)
Locale detection (from a controller)
++++++++++++++++++++++++++++++++++++

.. code-block:: php
Expand Down

0 comments on commit 110b9af

Please sign in to comment.