Skip to content

Commit 614a8dd

Browse files
authored
Merge branch '5.x' into ui-Displaying-Elements-Based-on-User-Permissions
2 parents c4cb0ae + 1ec57cc commit 614a8dd

File tree

14 files changed

+104
-80
lines changed

14 files changed

+104
-80
lines changed

.all-contributorsrc

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@
3232
"doc",
3333
"review"
3434
]
35+
},
36+
{
37+
"login": "ifeoluwafavour",
38+
"name": "Ife",
39+
"avatar_url": "https://avatars.githubusercontent.com/u/64481442?v=4",
40+
"profile": "http://ifeoluwafavour.hashnode.dev",
41+
"contributions": [
42+
"doc"
43+
]
3544
}
3645
],
3746
"contributorsPerLine": 7,
@@ -40,5 +49,6 @@
4049
"repoType": "github",
4150
"repoHost": "https://github.com",
4251
"skipCi": true,
43-
"commitConvention": "angular"
52+
"commitConvention": "angular",
53+
"commitType": "docs"
4454
}

.github/workflows/linting.yml

Lines changed: 41 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -4,48 +4,49 @@ on:
44

55
jobs:
66
prose:
7-
runs-on: ubuntu-latest
7+
runs-on: ubuntu-22.04 # See https://github.com/errata-ai/vale-action/issues/128 before upgrading
8+
permissions:
9+
contents: read
10+
pull-requests: write
811
steps:
9-
- name: Checkout
10-
uses: actions/checkout@v4
11-
with:
12-
fetch-depth: 0
13-
14-
- uses: actions/setup-python@v4
15-
with:
16-
python-version: '3.x'
17-
cache: 'pip'
18-
19-
- name: Install Python dependencies
20-
run: pip3 install -r docs/requirements.txt
21-
22-
- name: Vale
23-
uses: errata-ai/vale-action@reviewdog
24-
with:
25-
# Please keep version in sync with the version in .gitpod.Dockerfile for a consistent experience
26-
version: 2.29.2
27-
fail_on_error: true
28-
env:
29-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- uses: actions/setup-python@v4
18+
with:
19+
python-version: '3.x'
20+
cache: 'pip'
21+
22+
- name: Install Python dependencies
23+
run: pip3 install -r docs/requirements.txt
24+
25+
- name: Vale
26+
uses: errata-ai/vale-action@reviewdog
27+
with:
28+
version: 3.7.1 # Please keep version in sync with the version in .gitpod.Dockerfile for a consistent experience
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3031

3132
build:
3233
runs-on: ubuntu-latest
3334
steps:
34-
- name: Checkout
35-
uses: actions/checkout@v4
36-
37-
- uses: actions/setup-python@v4
38-
with:
39-
python-version: '3.x'
40-
cache: 'pip'
41-
42-
- name: Install Python dependencies
43-
run: pip3 install -r docs/requirements.txt
44-
45-
- name: Build docs
46-
working-directory: docs
47-
run: make html
48-
49-
- name: Check links
50-
working-directory: docs
51-
run: make checklinks
35+
- name: Checkout
36+
uses: actions/checkout@v4
37+
38+
- uses: actions/setup-python@v4
39+
with:
40+
python-version: '3.x'
41+
cache: 'pip'
42+
43+
- name: Install Python dependencies
44+
run: pip3 install -r docs/requirements.txt
45+
46+
- name: Build docs
47+
working-directory: docs
48+
run: make html
49+
50+
- name: Check links
51+
working-directory: docs
52+
run: make checklinks

.gitpod.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM python:3.11
22

33
# Don't update to a higher version until this issue has been fixed: https://github.com/errata-ai/vale/issues/528
44
# Please keep version in sync with the version in .github/workflows/linting.yml for a consistent experience
5-
ENV VALE_VERSION=2.29.2
5+
ENV VALE_VERSION=3.7.1
66

77
WORKDIR /workspace
88

.gitpod.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
# Since Gitpod doesn't support caching custom Dockerfiles yet, we temporarily
2-
# use this once which has Python 3.9 and Vale preinstalled.
3-
image: dennisameling/python-vale:latest
1+
image:
2+
file: .gitpod.Dockerfile
43

54
tasks:
65
- before: pip install -r docs/requirements.txt
@@ -9,7 +8,6 @@ tasks:
98
vscode:
109
extensions:
1110
- ms-python.python
12-
- lextudio.restructuredtext
13-
- errata-ai.vale-server
11+
- [email protected] # See https://github.com/mautic/user-documentation/pull/334#issuecomment-2405922370 before upgrading. - errata-ai.vale-server
1412
- eamodio.gitlens
1513
- trond-snekvik.simple-rst

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@
55
"esbonio.sphinx.confDir": "${workspaceFolder}/docs",
66
"restructuredtext.pythonRecommendation.disabled": true,
77
"restructuredtext.preview.name": "sphinx",
8+
"esbonio.sphinx.pythonCommand": "python3",
9+
"esbonio.sphinx.buildCommand": "sphinx-build",
10+
"esbonio.logging.level": "debug",
811
"gitlens.showWhatsNewAfterUpgrades": false
912
}

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![Documentation Status][RTD badge URL]][RTD URL]
22
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
3-
[![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors-)
3+
[![All Contributors](https://img.shields.io/badge/all_contributors-4-orange.svg?style=flat-square)](#contributors-)
44
<!-- ALL-CONTRIBUTORS-BADGE:END -->
55

66
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/mautic/developer-documentation-new)
@@ -120,9 +120,10 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
120120
<table>
121121
<tbody>
122122
<tr>
123-
<td align="center"><a href="https://robert-parker.me"><img src="https://avatars.githubusercontent.com/u/25473863?v=4?s=100" width="100px;" alt="Robert Parker"/><br /><sub><b>Robert Parker</b></sub></a><br /><a href="https://github.com/mautic/developer-documentation-new/commits?author=diaboloshogunate" title="Documentation">📖</a></td>
124-
<td align="center"><a href="https://github.com/shinde-rahul"><img src="https://avatars.githubusercontent.com/u/1046788?v=4?s=100" width="100px;" alt="Rahul Shinde"/><br /><sub><b>Rahul Shinde</b></sub></a><br /><a href="https://github.com/mautic/developer-documentation-new/commits?author=shinde-rahul" title="Documentation">📖</a></td>
125-
<td align="center"><a href="https://dennisameling.com"><img src="https://avatars.githubusercontent.com/u/17739158?v=4?s=100" width="100px;" alt="Dennis Ameling"/><br /><sub><b>Dennis Ameling</b></sub></a><br /><a href="https://github.com/mautic/developer-documentation-new/commits?author=dennisameling" title="Documentation">📖</a> <a href="https://github.com/mautic/developer-documentation-new/pulls?q=is%3Apr+reviewed-by%3Adennisameling" title="Reviewed Pull Requests">👀</a></td>
123+
<td align="center" valign="top" width="14.28%"><a href="https://robert-parker.me"><img src="https://avatars.githubusercontent.com/u/25473863?v=4?s=100" width="100px;" alt="Robert Parker"/><br /><sub><b>Robert Parker</b></sub></a><br /><a href="https://github.com/mautic/developer-documentation-new/commits?author=diaboloshogunate" title="Documentation">📖</a></td>
124+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/shinde-rahul"><img src="https://avatars.githubusercontent.com/u/1046788?v=4?s=100" width="100px;" alt="Rahul Shinde"/><br /><sub><b>Rahul Shinde</b></sub></a><br /><a href="https://github.com/mautic/developer-documentation-new/commits?author=shinde-rahul" title="Documentation">📖</a></td>
125+
<td align="center" valign="top" width="14.28%"><a href="https://dennisameling.com"><img src="https://avatars.githubusercontent.com/u/17739158?v=4?s=100" width="100px;" alt="Dennis Ameling"/><br /><sub><b>Dennis Ameling</b></sub></a><br /><a href="https://github.com/mautic/developer-documentation-new/commits?author=dennisameling" title="Documentation">📖</a> <a href="https://github.com/mautic/developer-documentation-new/pulls?q=is%3Apr+reviewed-by%3Adennisameling" title="Reviewed Pull Requests">👀</a></td>
126+
<td align="center" valign="top" width="14.28%"><a href="http://ifeoluwafavour.hashnode.dev"><img src="https://avatars.githubusercontent.com/u/64481442?v=4?s=100" width="100px;" alt="Ife"/><br /><sub><b>Ife</b></sub></a><br /><a href="https://github.com/mautic/developer-documentation-new/commits?author=ifeoluwafavour" title="Documentation">📖</a></td>
126127
</tr>
127128
</tbody>
128129
</table>

docs/components/cache.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ All you need to do now is to clear all tagged items:
4343
.. code-block:: php
4444
4545
$cache->invalidateTags(['firstTag']);
46+
4647
Pools clearing
4748
==============
4849

@@ -54,6 +55,7 @@ Cache Pools include methods to delete a cache item, some of them, or all of them
5455
.. code-block:: php
5556
5657
$isDeleted = $cache->deleteItem('user_'.$userId);
58+
5759
Use the ``Psr\\Cache\\CacheItemPoolInterface::deleteItems`` method to delete several cache items simultaneously - it returns true only if all the items have been deleted, even when any or some of them don't exist.
5860

5961
Configuration
@@ -68,6 +70,7 @@ These are the default settings:
6870
'cache_adapter' => 'mautic.cache.adapter.filesystem',
6971
'cache_prefix' => 'app',
7072
'cache_lifetime' => 86400
73+
7174
They can be overridden in ``local.php`` like this:
7275

7376
.. code-block:: php
@@ -84,6 +87,7 @@ Delivered adapters
8487
- ``mautic.cache.adapter.memcached``
8588

8689
.. code-block:: php
90+
8791
'memcached' => [
8892
'servers' => ['memcached://localhost'],
8993
'options' => [

docs/design/retriving_system_information.rst renamed to docs/design/retrieving_system_information.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Retrieving Mautic settings in Twig
2-
=============================================
2+
##################################
33

44
Mautic allows you to access configuration settings directly in Twig templates using the ``configGetParameter`` function. This feature is particularly useful for creating display conditions or showing existing data in your templates.
55

66
Basic usage
7-
-----------
7+
***********
88

99
To retrieve a setting, use the ``configGetParameter`` function with the parameter name as its argument:
1010

@@ -13,7 +13,7 @@ To retrieve a setting, use the ``configGetParameter`` function with the paramete
1313
{{ configGetParameter('parameter_name') }}
1414
1515
Display conditions
16-
------------------
16+
==================
1717

1818
Use ``configGetParameter`` in conditional statements to control the display of content based on configuration settings:
1919

@@ -24,7 +24,7 @@ Use ``configGetParameter`` in conditional statements to control the display of c
2424
{% endif %}
2525
2626
Displaying configuration values
27-
-------------------------------
27+
===============================
2828

2929
To directly display a configuration value in your template, use the following syntax:
3030

@@ -45,12 +45,12 @@ For example, to display the API OAuth2 access token lifetime:
4545
API OAuth2 Access Token Lifetime: {{ configGetParameter('api_oauth2_access_token_lifetime') }}
4646
4747
Finding available parameters
48-
----------------------------
48+
============================
4949

5050
The ``/config/local.php`` file contains available configuration parameters, once you save the global configuration form for the first time. This file contains the complete list of settings that are accessible using ``configGetParameter``.
5151

5252
Identifying parameter names
53-
---------------------------
53+
===========================
5454

5555
To find the correct parameter name for a specific setting:
5656

@@ -67,7 +67,7 @@ For example, if you see:
6767
The corresponding parameter name would be ``api_oauth2_access_token_lifetime``.
6868

6969
Additional information
70-
----------------------
70+
**********************
7171

7272
- Be cautious when displaying sensitive configuration data in templates.
7373
- Always consider providing default values when using configuration parameters to handle cases where the setting aren't defined.

docs/index.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ There are several ways to support Mautic other than contributing with code.
5656
:caption: Design and UX
5757
:hidden:
5858

59-
design/retrieving_system_settings
60-
design/displaying_elements_based_on_user_permissions
59+
design/retrieving_system_information
6160

6261
.. toctree::
6362
:maxdepth: 2

0 commit comments

Comments
 (0)