Skip to content

Commit 12177fb

Browse files
committed
Remove 72 redundant anchor tags where heading auto-generates same ID.
Remove <a id="..."></a> tags that duplicate the anchor ID already auto-generated by the markdown processor from the heading text. For example, <a id="saving-entities"></a> before ## Saving Entities is redundant since the heading produces the same #saving-entities anchor. Anchors with IDs that differ from the heading's auto-generated ID are preserved as they provide legacy link compatibility.
1 parent cc5617d commit 12177fb

33 files changed

+3
-147
lines changed

docs/en/console-commands/completion.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ Save the file, then restart your console.
7272
> The target directory for the **cake** file will be
7373
> **/usr/local/etc/bash_completion.d/**.
7474
75-
<a id="bash-completion-file-content"></a>
76-
7775
### Bash Completion file content
7876

7977
This is the code you need to put inside the **cake** file in the correct location

docs/en/console-commands/input-output.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
CakePHP provides the `ConsoleIo` object to commands so that they can
66
interactively read user input and output information to the user.
77

8-
<a id="command-helpers"></a>
9-
108
## Command Helpers
119

1210
Formatting console output can be tedious and lead to maintenance issues. To

docs/en/contributing/backwards-compatibility.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,6 @@ value:
283283

284284
Will disable runtime deprecation warnings.
285285

286-
<a id="experimental-features"></a>
287-
288286
## Experimental Features
289287

290288
Experimental features are **not included** in the above backwards compatibility

docs/en/controllers/components.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ chapter for each component:
1515
- [Form Protection Component](../controllers/components/form-protection)
1616
- [Checking HTTP Cache](../controllers/components/check-http-cache)
1717

18-
<a id="configuring-components"></a>
19-
2018
## Configuring Components
2119

2220
Many of the core components require configuration. One example would be
@@ -152,8 +150,6 @@ class PostsController extends AppController
152150
Components are able to use [Dependency Injection](../development/dependency-injection) to receive services.
153151
:::
154152

155-
<a id="creating-a-component"></a>
156-
157153
## Creating a Component
158154

159155
Suppose our application needs to perform a complex mathematical operation in

docs/en/controllers/middleware.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ CakePHP provides several middleware to handle common tasks in web applications:
5959
provides configurable rate limiting to protect against abuse and ensure fair
6060
usage of resources.
6161

62-
<a id="using-middleware"></a>
63-
6462
## Using Middleware
6563

6664
Middleware can be applied to your application globally, to individual
@@ -234,8 +232,6 @@ class Application
234232
}
235233
```
236234

237-
<a id="routing-middleware"></a>
238-
239235
## Routing Middleware
240236

241237
Routing middleware is responsible for applying your application's routes and
@@ -250,8 +246,6 @@ public function middleware(MiddlewareQueue $middlewareQueue): MiddlewareQueue
250246
}
251247
```
252248

253-
<a id="encrypted-cookie-middleware"></a>
254-
255249
## Encrypted Cookie Middleware
256250

257251
If your application has cookies that contain data you want to obfuscate and
@@ -278,8 +272,6 @@ $middlewareQueue->add($cookies);
278272
The encryption algorithms and padding style used by the cookie middleware are
279273
backwards compatible with `CookieComponent` from earlier versions of CakePHP.
280274

281-
<a id="body-parser-middleware"></a>
282-
283275
## Body Parser Middleware
284276

285277
If your application accepts JSON, XML or other encoded request bodies, the

docs/en/controllers/pagination.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,6 @@ class ArticlesController extends AppController
141141
When using the `SimplePaginator` you will not be able to generate page
142142
numbers, counter data, links to the last page, or total record count controls.
143143

144-
<a id="paginating-multiple-queries"></a>
145-
146144
## Paginating Multiple Queries
147145

148146
You can paginate multiple models in a single controller action, using the
@@ -213,8 +211,6 @@ $unpublishedArticles = $this->paginate(
213211
);
214212
```
215213

216-
<a id="control-which-fields-used-for-ordering"></a>
217-
218214
## Control which Fields Used for Ordering
219215

220216
By default, sorting can be done on any non-virtual column a table has. This is

docs/en/controllers/request-response.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ CakePHP's request object implements the [PSR-7
3737
ServerRequestInterface](https://www.php-fig.org/psr/psr-7/) making it easier to
3838
use libraries from outside of CakePHP.
3939

40-
<a id="request-parameters"></a>
41-
4240
### Request Parameters
4341

4442
The request exposes routing parameters through the `getParam()` method:
@@ -1353,8 +1351,6 @@ $this->response = $this->response->withHeader('X-CakePHP', 'yes!');
13531351
They let you interact with groups of cookies using immutable patterns, which
13541352
allow the immutability of the request and response to be preserved.
13551353

1356-
<a id="creating-cookies"></a>
1357-
13581354
### Creating Cookies
13591355

13601356
`class` Cake\\Http\\Cookie\\**Cookie**

docs/en/core-libraries/caching.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,8 +686,6 @@ The required API for a CacheEngine is
686686

687687
`method` Cake\\Cache\\CacheEngine::**increment**($key, $offset = 1): int|false
688688

689-
<a id="cache-events"></a>
690-
691689
## Cache Events
692690

693691
::: info Added in version 5.3.0

docs/en/core-libraries/events.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,6 @@ object along. The listeners will handle all the extra logic around the
124124
possibly in separate objects and even delegating it to offline tasks if you have
125125
the need.
126126

127-
<a id="tracking-events"></a>
128-
129127
### Tracking Events
130128

131129
To keep a list of events that are fired on a particular `EventManager`, you
@@ -527,8 +525,6 @@ be an argument of any type, we recommend passing an associative array.
527525
The `Cake\Event\EventManager::dispatch()` method accepts an event
528526
object as an argument and notifies all subscribed listeners.
529527

530-
<a id="stopping-events"></a>
531-
532528
### Stopping Events
533529

534530
Much like DOM events, you may want to stop an event to prevent additional

docs/en/core-libraries/hash.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ to do just that.
1010
CakePHP's Hash class can be called from any model or controller in
1111
the same way Inflector is called. Example: `Hash::combine()`.
1212

13-
<a id="hash-path-syntax"></a>
14-
1513
## Hash Path Syntax
1614

1715
The path syntax described below is used by all the methods in `Hash`. Not all

0 commit comments

Comments
 (0)