Skip to content

Commit 525e2d9

Browse files
committed
docs: fix page links
Do not use link like "`Feature Testing tools <feature.html>`_".
1 parent 10496ff commit 525e2d9

File tree

9 files changed

+19
-15
lines changed

9 files changed

+19
-15
lines changed

user_guide_src/source/concepts/security.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ OWASP recommendations
3434
CodeIgniter provisions
3535
----------------------
3636

37-
- `HTTP library <../incoming/incomingrequest.html>`_ provides for input field filtering & content metadata
37+
- :doc:`HTTP library <../incoming/incomingrequest>` provides for input field filtering & content metadata
3838
- Form validation library
3939

4040
*********************************************
@@ -56,7 +56,7 @@ OWASP recommendations
5656
CodeIgniter provisions
5757
----------------------
5858

59-
- `Session <../libraries/sessions.html>`_ library
59+
- :doc:`Session <../libraries/sessions>` library
6060
- :doc:`Security </libraries/security>` library provides for CSRF validation
6161
- Easy to add third party authentication
6262

@@ -217,5 +217,5 @@ OWASP recommendations
217217
CodeIgniter provisions
218218
----------------------
219219

220-
- `HTTP library <../incoming/incomingrequest.html>`_ provides for ...
221-
- `Session <../libraries/sessions.html>`_ library provides flashdata
220+
- :doc:`HTTP library <../incoming/incomingrequest>` provides for ...
221+
- :doc:`Session <../libraries/sessions>` library provides flashdata

user_guide_src/source/concepts/structure.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ Modifying Directory Locations
8484
If you've relocated any of the main directories, you can change the configuration
8585
settings inside **app/Config/Paths.php**.
8686

87-
Please read `Managing your Applications <../general/managing_apps.html>`_
87+
Please read :doc:`Managing your Applications <../general/managing_apps>`.

user_guide_src/source/incoming/routing.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,15 +228,15 @@ extensive set of routes that all share the opening string, like when building an
228228

229229
This would prefix the 'users' and 'blog" URIs with "admin", handling URLs like ``/admin/users`` and ``/admin/blog``.
230230

231-
If you need to assign options to a group, like a `namespace <#assigning-namespace>`_, do it before the callback::
231+
If you need to assign options to a group, like a :ref:`assigning-namespace`, do it before the callback::
232232

233233
$routes->group('api', ['namespace' => 'App\API\v1'], function ($routes) {
234234
$routes->resource('users');
235235
});
236236

237237
This would handle a resource route to the ``App\API\v1\Users`` controller with the ``/api/users`` URI.
238238

239-
You can also use a specific `filter <filters.html>`_ for a group of routes. This will always
239+
You can also use a specific :doc:`filter <filters>` for a group of routes. This will always
240240
run the filter before or after the controller. This is especially handy during authentication or api logging::
241241

242242
$routes->group('api', ['filter' => 'api-auth'], function ($routes) {
@@ -338,7 +338,7 @@ available from the command line::
338338
Global Options
339339
==============
340340

341-
All of the methods for creating a route (add, get, post, `resource <restful.html>`_ etc) can take an array of options that
341+
All of the methods for creating a route (add, get, post, :doc:`resource <restful>` etc) can take an array of options that
342342
can modify the generated routes, or further restrict them. The ``$options`` array is always the last parameter::
343343

344344
$routes->add('from', 'to', $options);
@@ -363,7 +363,7 @@ The value for the filter can be a string or an array of strings:
363363
* matching the aliases defined in **app/Config/Filters.php**.
364364
* filter classnames
365365

366-
See `Controller filters <filters.html>`_ for more information on setting up filters.
366+
See :doc:`Controller filters <filters>` for more information on setting up filters.
367367

368368
.. Warning:: If you set filters to routes in **app/Config/Routes.php**
369369
(not in **app/Config/Filters.php**), it is recommended to disable auto-routing.
@@ -396,6 +396,8 @@ You specify an array for the filter value::
396396

397397
$routes->add('admin',' AdminController::index', ['filter' => ['admin-auth', \App\Filters\SomeFilter::class]]);
398398

399+
.. _assigning-namespace:
400+
399401
Assigning Namespace
400402
-------------------
401403

user_guide_src/source/installation/upgrade_415.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ CURLRequest header change
5959
In the previous version, if you didn't provide your own headers, ``CURLRequest`` would send the request-headers from the browser.
6060
The bug was fixed. If your requests depend on the headers, your requests might fail after upgrading.
6161
In this case, add the necessary headers manually.
62-
See `CURLRequest Class <../libraries/curlrequest.html#headers>`_ for how to add.
62+
See :ref:`CURLRequest Class <curlrequest-request-options-headers>` for how to add.
6363

6464
Query Builder changes
6565
---------------------

user_guide_src/source/libraries/curlrequest.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ if it's not already set::
299299
Use ``form_params`` for ``application/x-www-form-urlencoded`` request, and ``multipart`` for ``multipart/form-data``
300300
requests.
301301

302+
.. _curlrequest-request-options-headers:
303+
302304
headers
303305
=======
304306

user_guide_src/source/testing/controllers.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Testing Controllers
44

55
Testing your controllers is made convenient with a couple of new helper classes and traits. When testing controllers,
66
you can execute the code within a controller, without first running through the entire application bootstrap process.
7-
Often times, using the `Feature Testing tools <feature.html>`_ will be simpler, but this functionality is here in
7+
Often times, using the :doc:`Feature Testing tools <feature>` will be simpler, but this functionality is here in
88
case you need it.
99

1010
.. note:: Because the entire framework has not been bootstrapped, there will be times when you cannot test a controller
@@ -161,7 +161,7 @@ you need to set a JSON value as the body. The only parameter is a string that re
161161
Checking the Response
162162
=====================
163163

164-
``ControllerTestTrait::execute()`` returns an instance of a ``TestResponse``. See `Testing Responses <response.html>`_ on
164+
``ControllerTestTrait::execute()`` returns an instance of a ``TestResponse``. See :doc:`Testing Responses <response>` on
165165
how to use this class to perform additional assertions and verification in your test cases.
166166

167167
Filter Testing

user_guide_src/source/testing/feature.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,5 +157,5 @@ the Content-Type header for you so if you need that, you can set it with the ``w
157157
Checking the Response
158158
=====================
159159

160-
``FeatureTestTrait::call()`` returns an instance of a ``TestResponse``. See `Testing Responses <response.html>`_ on
160+
``FeatureTestTrait::call()`` returns an instance of a ``TestResponse``. See :doc:`Testing Responses <response>` on
161161
how to use this class to perform additional assertions and verification in your test cases.

user_guide_src/source/testing/overview.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ have the correct namespace relative to ``App``.
103103

104104
.. note:: Namespaces are not strictly required for test classes, but they are helpful to ensure no class names collide.
105105

106-
When testing database results, you must use the `DatabaseTestTrait <database.html>`_ in your class.
106+
When testing database results, you must use the :doc:`DatabaseTestTrait <database>` in your class.
107107

108108
Staging
109109
-------

user_guide_src/source/testing/response.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Testing Responses
44

55
The ``TestResponse`` class provides a number of helpful functions for parsing and testing responses
66
from your test cases. Usually a ``TestResponse`` will be provided for you as a result of your
7-
`Controller Tests <controllers.html>`_ or `HTTP Feature Tests <feature.html>`_, but you can always
7+
:doc:`Controller Tests <controllers>` or :doc:`HTTP Feature Tests <feature>`, but you can always
88
create your own directly using any ``ResponseInterface``::
99

1010
$result = new \CodeIgniter\Test\TestResponse($response);

0 commit comments

Comments
 (0)