Skip to content
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
4 changes: 2 additions & 2 deletions docs/development-environment/environments.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Real environment variables win over ``.env`` files.

.. warning:: Don't define secrets in this file, or any other committed files. Set secrets via environment variables, or through other secret management tools.

Run ``composer dump-env prod`` to compile .env files for production use (``requires symfony/flex >=1.2``).
Read more about best practices at :xref:`Symfony 4 best practices environment variables`
Run ``composer dump-env prod`` to compile .env files for production use (``requires symfony/flex >=1.2``). Read more about
:xref:`Symfony 4 best practices environment variables`.

By default the structure come with 3 environments
``.env``
Expand Down
7 changes: 5 additions & 2 deletions docs/development-environment/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ Development environment

Introduction
============
Mautic is a system based on Symfony and Doctrine.
Mautic follow the Symfony coding standards and best practices and use the Symfony framework as a foundation for the app
Mautic is a system based on the :xref:`Symfony framework` and :xref:`Doctrine`.

Mautic uses the :xref:`Symfony framework` as a foundation for the app.

It follows the :xref:`Symfony coding standards` and :xref:`Symfony best practices`.

15 changes: 0 additions & 15 deletions docs/development-environment/how_to_install.rst

This file was deleted.

12 changes: 7 additions & 5 deletions docs/development-environment/how_to_install_with_ddev.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
How to install Mautic with DDEV
###############################

.. note::
If you get stuck, join the lively Mautic Community on :xref:`Mautic Slack` or the :xref:`Developer Forum` for support and answers. **Please first post in the forum**, then share the link in Slack, so others can learn from your question.

Pre-requisites with DDEV
========================
1. You should have DDEV installed on your machine. If not, please follow the instructions here: https://ddev.readthedocs.io/en/stable/#installation
1. You should have DDEV and Docker or Colima installed on your machine. If not, please follow the instructions here: :xref:`ddev install`

Installing Mautic is a simple two-step process:
===============================================
Installing Mautic is a two-step process:
========================================
1. Clone this repository

.. code-block:: bash
Expand All @@ -16,13 +19,12 @@ Installing Mautic is a simple two-step process:
.. Note:: Clone the repository in the directory where you want to install Mautic.

1. Install Mautic running DDEV.

.. code-block:: bash

cd mautic
ddev start

.. Note:: When asked if you want to install Mautic, choose yes.

.. list-table:: Users and passwords
:header-rows: 1

Expand Down
20 changes: 12 additions & 8 deletions docs/development-environment/setup.rst
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
Setup
######
How to install Mautic manually
##############################

Pre-requisites to setup
=======================

Mautic assumed that the system already has ``composer`` and ``git`` installed and configured.

.. note::
If you get stuck, join the lively Mautic Community on :xref:`Mautic Slack` or the :xref:`Developer Forum` for support and answers. **Please first post in the forum**, then share the link in Slack, so others can learn from your question.

Steps
=====
1. To setup the developer environment, simply fork and clone the source from GitHub. Then Run ``composer install`` on the source.
1. To setup the developer environment, fork and clone the source from GitHub as outlined in :doc:`/development-environment/how_to_install_with_ddev`.
2. Run ``composer install`` on the source.
3. Open your browser and complete the installation through the Mautic installer.

2. Open your browser and complete the installation through the Mautic installer.
You can also execute the install process from command line:
You can also run the install process from command line:

* Add a ``local.php`` file in ``app/config``
* Edit the ``local.php`` file using the following template (Mautic adapt to new local settings):
* Edit the ``local.php`` file using the following template (Mautic adapts to new local settings):

.. code-block:: php

Expand All @@ -31,8 +35,8 @@ You can also execute the install process from command line:
'db_backup_prefix' => 'bak_',
);

* Execute the following command and add your own options:
* Run the following command and add your own options:

.. code-block:: bash

php bin/console mautic:install http://your.mautic.instance
php bin/console mautic:install https://mautic.example.com
3 changes: 1 addition & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ This is a work in progress. More to come soon. In the meantime, go to :xref:`Leg
:hidden:

development-environment/getting_started
development-environment/setup
development-environment/how_to_install
development-environment/how_to_install_with_ddev
development-environment/setup
development-environment/environments

.. toctree::
Expand Down
7 changes: 7 additions & 0 deletions docs/links/composer.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from . import link

link_name = "composer"
link_text = "Composer"
link_url = "https://getcomposer.org"

link.xref_links.update({link_name: (link_text, link_url)})
7 changes: 7 additions & 0 deletions docs/links/ddev_install.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from . import link

link_name = "ddev install"
link_text = "Install DDEV"
link_url = "https://ddev.readthedocs.io/en/stable/#installation"

link.xref_links.update({link_name: (link_text, link_url)})
7 changes: 7 additions & 0 deletions docs/links/doctrine.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from . import link

link_name = "Doctrine"
link_text = "Doctrine"
link_url = "https://www.doctrine-project.org/"

link.xref_links.update({link_name: (link_text, link_url)})
7 changes: 7 additions & 0 deletions docs/links/mautic_dev_forum.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from . import link

link_name = "Developer Forum"
link_text = "Developer Forum"
link_url = "https://forum.mautic.org/c/development"

link.xref_links.update({link_name: (link_text, link_url)})
7 changes: 7 additions & 0 deletions docs/links/mautic_github.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from . import link

link_name = "Mautic's GitHub Repo"
link_text = "Mautic's GitHub repository"
link_url = "https://github.com/mautic/mautic"

link.xref_links.update({link_name: (link_text, link_url)})
7 changes: 7 additions & 0 deletions docs/links/mautic_slack.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from . import link

link_name = "Mautic Slack"
link_text = "Slack"
link_url = "https://mau.tc/slack-invite"

link.xref_links.update({link_name: (link_text, link_url)})
7 changes: 7 additions & 0 deletions docs/links/symfony_best_practices.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from . import link

link_name = "Symfony best practices"
link_text = "Symfony best practices"
link_url = "https://symfony.com/doc/current/best_practices.html"

link.xref_links.update({link_name: (link_text, link_url)})
7 changes: 7 additions & 0 deletions docs/links/symfony_coding_standards.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from . import link

link_name = "Symfony coding standards"
link_text = "Symfony coding standards"
link_url = "https://symfony.com/doc/current/contributing/code/standards.html"

link.xref_links.update({link_name: (link_text, link_url)})
2 changes: 1 addition & 1 deletion docs/links/symfony_docs_best_pratice_environments.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from . import link

link_name = "Symfony 4 best practices environment variables"
link_text = "Read more about best practices at:"
link_text = "best practices"
link_url = "https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration"

link.xref_links.update({link_name: (link_text, link_url)})
7 changes: 7 additions & 0 deletions docs/links/symfony_framework.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from . import link

link_name = "Symfony framework"
link_text = "Symfony framework"
link_url = "https://symfony.com/"

link.xref_links.update({link_name: (link_text, link_url)})