Skip to content

Commit 3f7807a

Browse files
committed
Fix merge issues
1 parent d7129a8 commit 3f7807a

File tree

19 files changed

+68
-50
lines changed

19 files changed

+68
-50
lines changed

Dockerfile

+9-9
Original file line numberDiff line numberDiff line change
@@ -65,23 +65,23 @@ COPY build.sh /home/akeneo/pim-docs/build.sh
6565
RUN chmod +x /home/akeneo/pim-docs/build.sh && \
6666
#
6767
# Download curent version
68-
wget https://github.com/akeneo/pim-community-dev/archive/3.1.zip -P /home/akeneo/pim-docs/ && \
69-
unzip /home/akeneo/pim-docs/3.1.zip -d /home/akeneo/pim-docs/ && \
68+
wget https://github.com/akeneo/pim-community-dev/archive/master.zip -P /home/akeneo/pim-docs/ && \
69+
unzip /home/akeneo/pim-docs/master.zip -d /home/akeneo/pim-docs/ && \
7070
#
7171
# Install Akeneo PIM
72-
cd /home/akeneo/pim-docs/pim-community-dev-3.1/ && \
72+
cd /home/akeneo/pim-docs/pim-community-dev-master/ && \
7373
php -d memory_limit=3G /home/akeneo/pim-docs/composer.phar install --no-dev --no-suggest --ignore-platform-reqs
7474

7575
COPY docker/wait_for_mysql.sh /wait_for_mysql.sh
7676
RUN service mysql start && chmod +x /wait_for_mysql.sh && /wait_for_mysql.sh && \
7777
mysql -u root -e "CREATE DATABASE akeneo_pim" && \
7878
mysql -u root -e "GRANT ALL PRIVILEGES ON akeneo_pim.* TO akeneo_pim@localhost IDENTIFIED BY 'akeneo_pim'" && \
79-
cp /home/akeneo/pim-docs/pim-community-dev-3.1/app/config/parameters.yml.dist /home/akeneo/pim-docs/pim-community-dev-3.1/app/config/parameters.yml && \
80-
cd /home/akeneo/pim-docs/pim-community-dev-3.1/ && php bin/console doctrine:schema:create --env=prod && \
81-
cd /home/akeneo/pim-docs/pim-community-dev-3.1/ && php bin/console pim:installer:assets --env=prod && \
82-
cd /home/akeneo/pim-docs/pim-community-dev-3.1/ && sed -i "s#replace: '/bundles'#replace: '../bundles'#" frontend/build/compile-less.js && \
83-
cd /home/akeneo/pim-docs/pim-community-dev-3.1/ && yarn install && yarn less
79+
cp /home/akeneo/pim-docs/pim-community-dev-master/app/config/parameters.yml.dist /home/akeneo/pim-docs/pim-community-dev-master/app/config/parameters.yml && \
80+
cd /home/akeneo/pim-docs/pim-community-dev-master/ && php bin/console doctrine:schema:create --env=prod && \
81+
cd /home/akeneo/pim-docs/pim-community-dev-master/ && php bin/console pim:installer:assets --env=prod && \
82+
cd /home/akeneo/pim-docs/pim-community-dev-master/ && sed -i "s#replace: '/bundles'#replace: '../bundles'#" frontend/build/compile-less.js && \
83+
cd /home/akeneo/pim-docs/pim-community-dev-master/ && mkdir -p web/css && yarn install && yarn less
8484
#
8585
# Clean
8686
RUN rm -rf /root/.composer/cache && \
87-
cd /home/akeneo/pim-docs/pim-community-dev-3.1/ && ls | grep -v "vendor\|web" | xargs rm -rf
87+
cd /home/akeneo/pim-docs/pim-community-dev-master/ && ls | grep -v "vendor\|web" | xargs rm -rf

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ sed -i -e "s/^\(.*\)'versions': .*,\(.*\)$/\1'versions': ['$(git branch -l|grep
8989
From the `./pim-docs` directory, run:
9090

9191
```bash
92-
$ docker build . --tag pim-docs:3.1
92+
$ docker build . --tag pim-docs:master
9393
$ rm -rf pim-docs-build && mkdir pim-docs-build
9494
$ docker run --rm \
9595
-v $(pwd):/home/akeneo/pim-docs/data \
96-
pim-docs:3.1 \
97-
./build.sh 3.1 --uid $(id -u) --gid $(id -g) --no-asset-check
96+
pim-docs:master \
97+
./build.sh master --uid $(id -u) --gid $(id -g) --no-asset-check
9898
```
9999

100100
The docs will be built into `./pim-docs-build`.

_themes/akeneo/layout.html

+8
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,14 @@
9292
</div>
9393
</div>
9494

95+
<!-- Remove to deactivate development version notice -->
96+
<div class="bg-warning text-warning text-center small" style="padding: 5px 0;">
97+
<i class="fa fa-warning"></i>
98+
Caution! You are browsing the documentation for Akeneo in version <b>master</b>, which is a development
99+
version. <strong>Consider using the <a href="https://docs.akeneo.com/latest/">latest stable
100+
version</a>.</strong>
101+
</div>
102+
95103
<!-- Uncomment to activate deprecation
96104
<div class="alert alert-warning warning deprecation-notice">
97105
<div class="bg-warning text-center">

contribute_to_pim/contribution_guide.rst

+7-7
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ topic branch:
109109

110110
.. code-block:: bash
111111
112-
$ git checkout -b BRANCH_NAME 3.1
112+
$ git checkout -b BRANCH_NAME master
113113
114114
.. tip::
115115

@@ -231,11 +231,11 @@ while to finish your changes):
231231

232232
.. code-block:: bash
233233
234-
$ git checkout 3.1
234+
$ git checkout master
235235
$ git fetch upstream
236-
$ git merge upstream/3.1
236+
$ git merge upstream/master
237237
$ git checkout BRANCH_NAME
238-
$ git rebase 3.1
238+
$ git rebase master
239239
240240
When doing the ``rebase`` command, you might have to fix merge conflicts.
241241
``git status`` will show you the *unmerged* files. Resolve all the conflicts,
@@ -346,11 +346,11 @@ Rework your Patch
346346
~~~~~~~~~~~~~~~~~
347347

348348
Based on the feedback on the pull request, you might need to rework your
349-
patch. Before re-submitting the patch, rebase with ``upstream/3.1``, don't merge; and force the push to the origin:
349+
patch. Before re-submitting the patch, rebase with ``upstream/master``, don't merge; and force the push to the origin:
350350

351351
.. code-block:: bash
352352
353-
$ git rebase -f upstream/3.1
353+
$ git rebase -f upstream/master
354354
$ git push --force origin BRANCH_NAME
355355
356356
.. note::
@@ -364,7 +364,7 @@ convert many commits to one commit. To do this, use the rebase command:
364364

365365
.. code-block:: bash
366366
367-
$ git rebase -i upstream/3.1
367+
$ git rebase -i upstream/master
368368
$ git push --force origin BRANCH_NAME
369369
370370
After you type this command, an editor will popup showing a list of commits:

contribute_to_pim/documentation.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ For typo / quick fixes you can directly submit a `PullRequest`_.
2323

2424
To test the rendering of the documentation you can follow this `HowTo`_.
2525

26-
.. _HowTo: https://github.com/akeneo/pim-docs/blob/3.1/README.md
26+
.. _HowTo: https://github.com/akeneo/pim-docs/blob/master/README.md
2727

2828
Once your Pull Request is merged, don't hesitate to claim your badge "Core contributor" on `Badger platform <http://badger.akeneo.com/login/>`_!
2929

contribute_to_pim/tests/establishing_decorator_pattern.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Navigate And Change The Current Page
8686
}
8787
8888
Selenium will know which URL to go to thanks to `the protected $path attribute
89-
<https://github.com/akeneo/pim-community-dev/blob/3.1/tests/legacy/features/Context/Page/Role/Edit.php#L19>`_
89+
<https://github.com/akeneo/pim-community-dev/blob/master/tests/legacy/features/Context/Page/Role/Edit.php#L19>`_
9090
contained in *Context\\Page\\Role\\Edit*.
9191

9292
You may notice that this Gherkin method still uses the old implementation of Behat in Akeneo PIM.
@@ -102,7 +102,7 @@ This organization is very helpful to quickly find the context you are looking fo
102102

103103
We are working on permissions that are localized in the system main menu. So let's see the
104104
`\\Pim\\Behat\\Context\\Domain\\System\\PermissionsContext
105-
<https://github.com/akeneo/pim-community-dev/blob/3.1/tests/legacy/features/Behat/Context/Domain/System/PermissionsContext.php>`_.
105+
<https://github.com/akeneo/pim-community-dev/blob/master/tests/legacy/features/Behat/Context/Domain/System/PermissionsContext.php>`_.
106106

107107
.. image:: images/PermissionsContext.png
108108

@@ -149,12 +149,12 @@ Pages
149149
_____
150150

151151
The current page is `Context\\Page\\Role\\Edit
152-
<https://github.com/akeneo/pim-community-dev/blob/3.1/tests/legacy/features/Context/Page/Role/Edit.php>`_.
152+
<https://github.com/akeneo/pim-community-dev/blob/master/tests/legacy/features/Context/Page/Role/Edit.php>`_.
153153

154154
When you call *Pim\\Behat\\Context\\NavigationContext->getCurrentPage()* the method will match "Role edit" to
155155
*return new Context\\Page\\Role\\Edit()*. That's why all of our pages are located in a folder named after the name of
156156
the Entity. In this folder, each action has its dedicated page such as Index.php, Creation.php, Edit.php as you can see
157-
in the `Role folder <https://github.com/akeneo/pim-community-dev/blob/3.1/tests/legacy/features/Context/Page/Role>`_ for example.
157+
in the `Role folder <https://github.com/akeneo/pim-community-dev/blob/master/tests/legacy/features/Context/Page/Role>`_ for example.
158158

159159
.. image:: images/edit.png
160160

@@ -247,7 +247,7 @@ The name of the sub-folder is only the representative name of the element, no pr
247247
have to be suffixed by "Decorator" like *DecoratedElementDecorator*.
248248

249249
The `Pim\\Behat\\Decorator\\Permission\\PermissionDecorator
250-
<https://github.com/akeneo/pim-community-dev/blob/3.1/tests/legacy/features/Behat/Context/Domain/System/PermissionsContext.php>`_
250+
<https://github.com/akeneo/pim-community-dev/blob/master/tests/legacy/features/Behat/Context/Domain/System/PermissionsContext.php>`_
251251
adds behaviors to an Element to be able to navigate between groups and grant or revoke permissions for resources or groups.
252252

253253
.. image:: images/decorator.png
@@ -303,7 +303,7 @@ The method *$this->find()* is neither in the decorator nor in the abstract class
303303
304304
That's how we can call methods from the Element class inside decorators. And obviously, that's why all decorators must
305305
extend `Pim\\Behat\\Decorator\\ElementDecorator
306-
<https://github.com/akeneo/pim-community-dev/blob/3.1/tests/legacy/features/Behat/Decorator/ElementDecorator.php>`_.
306+
<https://github.com/akeneo/pim-community-dev/blob/master/tests/legacy/features/Behat/Decorator/ElementDecorator.php>`_.
307307

308308
.. note::
309309

contribute_to_pim/tests/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ How behavior tests are architectured in the PIM?
22
================================================
33

44

5-
The PIM comes with a set of Behat scenarios: https://github.com/akeneo/pim-community-dev/blob/3.0/tests/legacy/features
5+
The PIM comes with a set of Behat scenarios: https://github.com/akeneo/pim-community-dev/blob/master/tests/legacy/features
66

77
.. warning::
88

design_pim/guides/create_a_reference_data_crud.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ How to create the UI to manage a Reference Data
44
.. note::
55
The documentation of this cookbook is available on the extension `CustomEntityBundle`_.
66

7-
.. _CustomEntityBundle: https://github.com/akeneo-labs/CustomEntityBundle/blob/3.0/docs/index.md
7+
.. _CustomEntityBundle: https://github.com/akeneo-labs/CustomEntityBundle/blob/master/docs/index.md

import_and_export_data/formats/attribute.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The import/export file follows this data structure:
1010
:file: examples/attribute_properties.csv
1111
:delim: ;
1212

13-
.. _MeasureBundle measures: https://github.com/akeneo/pim-community-dev/blob/3.1/src/Akeneo/Tool/Bundle/MeasureBundle/Resources/config/measure.yml
13+
.. _MeasureBundle measures: https://github.com/akeneo/pim-community-dev/blob/master/src/Akeneo/Tool/Bundle/MeasureBundle/Resources/config/measure.yml
1414

1515
.. note::
1616

import_and_export_data/simple-import.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
How import works
22
================
33

4-
.. _minimal: https://github.com/akeneo/pim-community-dev/tree/3.1/src/Akeneo/Platform/Bundle/InstallerBundle/Resources/fixtures/minimal
5-
.. _icecat: https://github.com/akeneo/pim-community-dev/tree/3.1/src/Akeneo/Platform/Bundle/InstallerBundle/Resources/fixtures/icecat_demo_dev
4+
.. _minimal: https://github.com/akeneo/pim-community-dev/tree/master/src/Akeneo/Platform/Bundle/InstallerBundle/Resources/fixtures/minimal
5+
.. _icecat: https://github.com/akeneo/pim-community-dev/tree/master/src/Akeneo/Platform/Bundle/InstallerBundle/Resources/fixtures/icecat_demo_dev
66

77
At any time, a set of data can be imported: products, attributes, users, etc.
88

install_pim/docker/installation_docker.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ This is achieved by `bind mounting <https://docs.docker.com/storage/bind-mounts/
4848
.. note::
4949

5050
The following compose file example is intentionally incomplete, focusing on cache directories only.
51-
Check the complete file directly `in the PIM <https://github.com/akeneo/pim-community-dev/blob/3.1/docker-compose.yml>`_.
51+
Check the complete file directly `in the PIM <https://github.com/akeneo/pim-community-dev/blob/master/docker-compose.yml>`_.
5252

5353
.. code-block:: yaml
5454
@@ -134,7 +134,7 @@ Here is a ``docker-compose.override.yml`` example:
134134
135135
Be aware that it is currently not possible to replace array values in the override. You can read more here: https://docs.docker.com/compose/extends/#adding-and-overriding-configuration.
136136

137-
This is why the mapping of the Apache port is already present in `docker-compose.yml <https://github.com/akeneo/pim-community-dev/blob/3.1/docker-compose.yml#L46>`_, as this mapping is mandatory to access the PIM from a web browser.
137+
This is why the mapping of the Apache port is already present in `docker-compose.yml <https://github.com/akeneo/pim-community-dev/blob/master/docker-compose.yml#L46>`_, as this mapping is mandatory to access the PIM from a web browser.
138138
It is configurable through an environment variable, wo you will not have any conflicts having several PIM running in parallel. Just copy the file ```.env.dist``` as ```.env``` and set the port you want to access Apache on.
139139

140140
If you intend to run behat tests, create on your host a folder ``/tmp/behat/screenshots`` (or anywhere else according to your compose file) with full read/write access to your user.

install_pim/manual/daemon_queue.rst

+10
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ You can also run the daemon to execute only one job and then exit. This is usefu
3030
3131
$ /path/to/php /path/to/your/pim/bin/console akeneo:batch:job-queue-consumer-daemon --env=prod --run-once
3232
33+
Another possibility is to launch several daemons that will consume different jobs. This could be useful if you want a specific job to be consumed sooner.
34+
Here is an example with a few bulk actions:
35+
36+
37+
.. code-block:: bash
38+
:linenos:
39+
40+
$ /path/to/php /path/to/your/pim/bin/console akeneo:batch:job-queue-consumer-daemon --env=prod -j update_product_value -p add_product_value -p remove_product_value
41+
42+
3343
Logs
3444
----
3545

manipulate_pim_data/mass_edition/register_a_new_mass_edit_action.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on selected products.
88
Prerequisite
99
------------
1010
The mass edit action uses the `BatchBundle
11-
<https://github.com/akeneo/pim-community-dev/blob/3.1/src/Akeneo/Tool/Bundle/BatchBundle>`_ in order to run mass edit in the background. Readers and Writers are already
11+
<https://github.com/akeneo/pim-community-dev/blob/master/src/Akeneo/Tool/Bundle/BatchBundle>`_ in order to run mass edit in the background. Readers and Writers are already
1212
created so in this cookbook we will focus on how to create a Mass Edit Action and create a Processor.
1313
For more information on how to create Jobs, Readers, Processors, or Writers please see :doc:`/import_and_export_data/index`.
1414

manipulate_pim_data/non-product/create.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
How to Create Non-Product Objects
22
=================================
33

4-
.. _SimpleFactoryInterface: https://github.com/akeneo/pim-community-dev/blob/3.1/src/Akeneo/Tool/Component/StorageUtils/Factory/SimpleFactoryInterface.php
4+
.. _SimpleFactoryInterface: https://github.com/akeneo/pim-community-dev/blob/master/src/Akeneo/Tool/Component/StorageUtils/Factory/SimpleFactoryInterface.php
55

66
To create common objects, we rely on different methods depending on the complexity of the object. There are some examples on how to use these services.
77

technical_architecture/best_practices/core/behat.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Setup Behat
22
===========
33

4-
The PIM comes with a set of Behat scenarios: https://github.com/akeneo/pim-community-dev/blob/3.1/tests/legacy/features
4+
The PIM comes with a set of Behat scenarios: https://github.com/akeneo/pim-community-dev/blob/master/tests/legacy/features
55

66
These scenarios allow to:
77

technical_architecture/best_practices/core/standards.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ When contributing code to Akeneo PIM, you must follow its coding standards (very
55

66
Akeneo follows the standards defined in the `PSR-0`_, `PSR-1`_ and `PSR-2`_ documents.
77

8-
We use few extra rules defined in our configuration of php-cs-fixer https://github.com/akeneo/pim-community-dev/blob/3.1/.php_cs.php.
8+
We use few extra rules defined in our configuration of php-cs-fixer https://github.com/akeneo/pim-community-dev/blob/master/.php_cs.php.
99

1010
Example
1111
-------

technical_architecture/best_practices/reusable_bundle.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ You can find some configuration examples on our `Akeneo-Labs`_ projects (`scruti
5555
.. _Travis: https://travis-ci.org/
5656
.. _Scrutinizer: https://scrutinizer-ci.com/
5757
.. _Akeneo-Labs: https://github.com/akeneo-labs
58-
.. _scrutinizer.yml: https://github.com/akeneo-labs/CustomEntityBundle/blob/3.0/.scrutinizer.yml
59-
.. _travis.yml: https://github.com/akeneo-labs/CustomEntityBundle/blob/3.0/.travis.yml
58+
.. _scrutinizer.yml: https://github.com/akeneo-labs/CustomEntityBundle/blob/master/.scrutinizer.yml
59+
.. _travis.yml: https://github.com/akeneo-labs/CustomEntityBundle/blob/master/.travis.yml
6060

6161

6262
Another important point about maintainability is to rely on interfaces instead of concrete classes.
@@ -134,7 +134,7 @@ For your own model classes, create your class and its interface.
134134
Then you can rely on your interface and use the `Akeneo target resolver`_ which is based on the `Doctrine target entity resolver`_.
135135

136136
.. _oneToOne unidirectional association: https://www.doctrine-project.org/projects/doctrine-orm/en/2.5/reference/association-mapping.html#one-to-one-unidirectional
137-
.. _Akeneo target resolver: https://github.com/akeneo/pim-community-dev/blob/3.1/src/Akeneo/Tool/Bundle/StorageUtilsBundle/DependencyInjection/Compiler/AbstractResolveDoctrineTargetModelPass.php
137+
.. _Akeneo target resolver: https://github.com/akeneo/pim-community-dev/blob/master/src/Akeneo/Tool/Bundle/StorageUtilsBundle/DependencyInjection/Compiler/AbstractResolveDoctrineTargetModelPass.php
138138
.. _Doctrine target entity resolver: https://symfony.com/doc/3.4/doctrine/resolve_target_entity.html
139139

140140

0 commit comments

Comments
 (0)