Skip to content

Commit f992c27

Browse files
authored
docs: fix RST markup errors in the user guide (#10668)
1 parent e3806de commit f992c27

8 files changed

Lines changed: 7 additions & 8 deletions

File tree

‎user_guide_src/source/changelogs/v4.7.0.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ Libraries
294294
- **Encryption:** Added ``Config\Encryption::$previousKeys`` configuration option to support encryption key rotation. When decryption with the current key fails, the system automatically falls back to previous keys, allowing you to rotate encryption keys without losing access to old encrypted data.
295295
- **Image:** The ``ImageMagickHandler`` has been rewritten to rely solely on the PHP ``imagick`` extension.
296296
- **Image:** Added ``ImageMagickHandler::clearMetadata()`` method to remove image metadata for privacy protection.
297-
- **ResponseTrait:** Added ``paginate``` method to simplify paginated API responses. See :ref:`ResponseTrait::paginate() <api_response_trait_paginate>` for details.
297+
- **ResponseTrait:** Added ``paginate()`` method to simplify paginated API responses. See :ref:`ResponseTrait::paginate() <api_response_trait_paginate>` for details.
298298
- **Session:** Added ``persistent`` config item to ``RedisHandler``.
299299
- **Session:** Added connection persistence for Redis and Memcached session handlers via ``PersistsConnection`` trait, improving performance in worker mode by reusing connections across requests.
300300
- **Time:** added methods ``Time::addCalendarMonths()`` and ``Time::subCalendarMonths()``

‎user_guide_src/source/general/common_functions.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Service Accessors
135135
136136
:param string $key: The name of the old form data to check for.
137137
:param string|null $default: The default value to return if $key doesn't exist.
138-
:param false|string $escape: An `escape <#esc>`_ context or false to disable it.
138+
:param false|string $escape: An :php:func:`esc()` context or false to disable it.
139139
:returns: The value of the defined key, or the default value.
140140
:rtype: array|string|null
141141

‎user_guide_src/source/general/urls.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ data can be passed to your application. URIs may only contain the following:
8282
- Colon: ``:``
8383
- Underscore: ``_``
8484
- Dash: ``-``
85-
- Space: `` ``
85+
- Space character
8686

8787
.. note::
8888
This check is performed by the ``Router``. The Router takes the URL-encoded

‎user_guide_src/source/guides/first-app/news_section.rst‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ Create **app/Views/news/index.php** and add the next piece of code.
184184
Here, each news item is looped and displayed to the user. You can see we
185185
wrote our template in PHP mixed with HTML. If you prefer to use a template
186186
language, you can use CodeIgniter's :doc:`View Parser </outgoing/view_parser>` or a third party parser.
187-
Parser </outgoing/view_parser>` or a third party parser.
188187

189188
Complete News::show() Method
190189
============================

‎user_guide_src/source/installation/upgrade_450.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ If you wish to maintain the same execution order as in previous versions, set
143143
Now: route → filters → globals
144144

145145
2. The After Filters in *Route* filters and *Filters* filters execution order is now
146-
reversed.
146+
reversed.
147147

148148
When you have the following configuration:
149149

‎user_guide_src/source/installation/upgrade_4xx.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ Helpers
163163
in CI3 are included in :doc:`../helpers/text_helper` in CI4.
164164
- In CI4, ``redirect()`` is completely changed from CI3's.
165165
- `redirect() Documentation CodeIgniter 3.x <https://codeigniter.com/userguide3/helpers/url_helper.html#redirect>`_
166-
- `redirect() Documentation CodeIgniter 4.x <../general/common_functions.html#redirect>`_
166+
- :php:func:`redirect() Documentation CodeIgniter 4.x <redirect>`
167167
- In CI4, :php:func:`redirect()` returns a ``RedirectResponse`` instance instead of
168168
redirecting and terminating script execution. You must return it from Controllers
169169
or Controller Filters.

‎user_guide_src/source/installation/upgrade_sessions.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Upgrade Guide
2424
- To access session data use the syntax ``$session->item`` or ``$session->get('item')`` instead of the CI3 syntax ``$this->session->name``.
2525
- To set data use ``$session->set($array);`` instead of ``$this->session->set_userdata($array);``.
2626
- To remove data use ``unset($_SESSION['some_name']);`` or ``$session->remove('some_name');`` instead of ``$this->session->unset_userdata('some_name');``.
27-
- To mark session data as flashdata, which will only be available for the next request, use ``$session->markAsFlashdata('item');`` instead of ``$this->session->mark_as_flash('item');```
27+
- To mark session data as flashdata, which will only be available for the next request, use ``$session->markAsFlashdata('item');`` instead of ``$this->session->mark_as_flash('item');``
2828
3. If you use Database Driver, you need to recreate the session table. See :ref:`sessions-databasehandler-driver`.
2929

3030
Code Example

‎user_guide_src/source/libraries/email.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ Class Reference
201201
:rtype: CodeIgniter\\Email\\Email
202202

203203
Sets the reply-to address. If the information is not provided the
204-
information in the `setFrom <#setFrom>`_ method is used. Example:
204+
information in the :php:meth:`setFrom()` method is used. Example:
205205

206206
.. literalinclude:: email/005.php
207207

0 commit comments

Comments
 (0)