Skip to content

Commit 92a1dfd

Browse files
committed
Fix repo/source references
1 parent 2d427cf commit 92a1dfd

File tree

12 files changed

+19
-19
lines changed

12 files changed

+19
-19
lines changed

docs/3.x/extend/extending-system-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ updatedVersion: 4.x/extend/topics.md
88

99
You can add your own custom validation rules to elements and other system components using the [EVENT_DEFINE_RULES](craft3:craft\base\Model#event-define-rules) event.
1010

11-
Additional rules can use any of [Yii’s core validators](https://www.yiiframework.com/doc/guide/2.0/en/tutorial-core-validators), [Craft’s validators](https://github.com/craftcms/cms/tree/develop/src/validators), or an [inline validation method](https://www.yiiframework.com/doc/guide/2.0/en/input-validation#inline-validators).
11+
Additional rules can use any of [Yii’s core validators](https://www.yiiframework.com/doc/guide/2.0/en/tutorial-core-validators), [Craft’s validators](repo:craftcms/cms/tree/3.x/src/validators), or an [inline validation method](https://www.yiiframework.com/doc/guide/2.0/en/input-validation#inline-validators).
1212

1313
In this example, we’re adding a 5-item maximum for custom entry fields in a “News” section. It uses Craft’s `ArrayValidator` to easily validate based on the size of an array or element query result (like the Tags field):
1414

docs/3.x/extend/graphql.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ Craft relies on the [webonyx/graphql-php](https://github.com/webonyx/graphql-php
2323
Be mindful of Craft vs. GraphQL terminology, because there are overlapping terms that can be confusing. It helps to pay careful attention to namespacing when looking at code examples.
2424
:::
2525

26-
The rest of this page will cover each of the main things you may need to work with. If you’d like some concrete examples, have a look at Craft’s own pieces in the [`src/gql/` directory](https://github.com/craftcms/cms/tree/main/src/gql).
26+
The rest of this page will cover each of the main things you may need to work with. If you’d like some concrete examples, have a look at Craft’s own pieces in the [`src/gql/` directory](repo:craftcms/cms/tree/3.x/src/gql).
2727

2828
### Limitations
2929

3030
If you’re planning advanced or elaborate GraphQL features, please be aware of the following limitations with Craft’s GraphQL implementation:
3131

3232
- GraphQL subscriptions aren’t currently supported.
33-
- Advanced query builder functions [are not exposed for GraphQL](https://github.com/craftcms/cms/issues/7842).
33+
- Advanced query builder functions [are not exposed for GraphQL](repo:craftcms/cms/issues/7842).
3434

3535
## Folder Structure
3636

37-
Here’s a high-level look at the folder structure we’ll explore in our example adding a “Widget” element. You can structure things however you want, we’re just following [Craft’s organization](https://github.com/craftcms/cms/tree/main/src/gql):
37+
Here’s a high-level look at the folder structure we’ll explore in our example adding a “Widget” element. You can structure things however you want, we’re just following [Craft’s organization](repo:craftcms/cms/tree/3.x/src/gql):
3838

3939
```treeview
4040
src/gql/

docs/3.x/extend/module-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Before you begin working on a module, you need to decide on a couple things:
88
- **Module ID** – Something that uniquely identifies your plugin within your project. (Module IDs must begin with a letter and contain only lowercase letters, numbers, and dashes. They should be `kebab-cased`.)
99

1010
::: warning
11-
When choosing a module ID, try to avoid names that will conflict with Craft’s core [controllers](https://github.com/craftcms/cms/tree/develop/src/controllers) (e.g. `app` would conflict with `AppController.php`), as well as any installed plugin handles. Otherwise bad things will happen.
11+
When choosing a module ID, try to avoid names that will conflict with Craft’s core [controllers](repo:craftcms/cms/tree/3.x/src/controllers) (e.g. `app` would conflict with `AppController.php`), as well as any installed plugin handles. Otherwise bad things will happen.
1212
:::
1313

1414
## Set up the basic file structure

docs/4.x/config/app.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Craft’s entire [application configuration](https://www.yiiframework.com/doc/gu
55
You can further customize the application configuration for only web requests or console requests from `config/app.web.php` and `config/app.console.php`.
66

77
::: warning
8-
New [Craft projects](https://github.com/craftcms/craft/tree/4.x) include a stub of `app.php` that exists solely to set an app ID, which affects how caches and sessions are stored. Most applications will _not_ require additional application config.
8+
New [Craft projects](repo:craftcms/craft/tree/4.x) include a stub of `app.php` that exists solely to set an app ID, which affects how caches and sessions are stored. Most applications will _not_ require additional application config.
99
:::
1010

1111
## Approach
@@ -444,7 +444,7 @@ return [
444444
];
445445
```
446446

447-
Available drivers are listed in the [Yii2 Queue Extension documentation](https://github.com/yiisoft/yii2-queue/tree/master/docs/guide).
447+
Available drivers are listed in the [Yii2 Queue Extension documentation](repo:yiisoft/yii2-queue/tree/master/docs/guide).
448448

449449
::: warning
450450
Only drivers that implement <craft4:craft\queue\QueueInterface> will be visible within the control panel.

docs/4.x/control-panel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Keep in mind that any user marked as an “Admin” implicitly has access to _al
121121

122122
#### Disabling Utilities
123123

124-
You can disable a utility for all users with the [`disabledUtilities` config setting](config4:disabledUtilities). <Since ver="4.6.0" feature="Disabling utilities" /> Refer to each [utility class](repo:craftcms/cms/tree/main/src/utilities)’s `id()` method for their handles—including those provided by plugins.
124+
You can disable a utility for all users with the [`disabledUtilities` config setting](config4:disabledUtilities). <Since ver="4.6.0" feature="Disabling utilities" /> Refer to each [utility class](repo:craftcms/cms/tree/4.x/src/utilities)’s `id()` method for their handles—including those provided by plugins.
125125

126126
### Settings
127127

docs/4.x/dev/controller-actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ The value of `modelName` in a JSON response is the same as the variable name Cra
460460

461461
## Available Actions
462462

463-
This is not a comprehensive list! We have selected a few actions to illustrate fundamentals that many projects can benefit from—and to get you prepared to explore the rest of Craft’s [HTTP API](https://github.com/craftcms/cms/tree/main/src/controllers).
463+
This is not a comprehensive list! We have selected a few actions to illustrate fundamentals that many projects can benefit from—and to get you prepared to explore the rest of Craft’s [HTTP API](repo:craftcms/cms/tree/4.x/src/controllers).
464464

465465
Action | Description
466466
------ | -----------

docs/4.x/extend/element-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ Event::on(
456456
);
457457
```
458458

459-
`mandatory` here means that the layout element _must_ be present in the field layout, not that a value is required. Take a look at the existing [field layout element types](repo:craftcms/cms/tree/main/src/fieldlayoutelements) to see which makes the most sense for your attribute.
459+
`mandatory` here means that the layout element _must_ be present in the field layout, not that a value is required. Take a look at the existing [field layout element types](repo:craftcms/cms/tree/4.x/src/fieldlayoutelements) to see which makes the most sense for your attribute.
460460

461461
::: tip
462462
Despite basing our `price` layout element on <craft4:craft\fieldlayoutelements\TextField>, the class is deceptively well-suited for customization. Here, we’ve begun to transform it into a `number` input.

docs/4.x/extend/extending-twig.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,5 +147,5 @@ public function init()
147147
The `getIsSiteRequest()` check is optional. If your extension provides features that will be useful in system emails (commonly triggered from the control panel), or will be used when rendering templates from console requests (less common, but still valid), you may want to register it in all contexts.
148148

149149
::: tip
150-
We’ve only covered the simplest means of extending the Twig environment—you can also provide custom _tags_ or _operators_. Craft’s own [Twig extension](https://github.com/craftcms/cms/tree/main/src/web/twig) is a great place to look for examples of advanced features.
150+
We’ve only covered the simplest means of extending the Twig environment—you can also provide custom _tags_ or _operators_. Craft’s own [Twig extension](repo:craftcms/cms/tree/4.x/src/web/twig) is a great place to look for examples of advanced features.
151151
:::

docs/4.x/extend/graphql.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ Craft relies on the [webonyx/graphql-php](https://github.com/webonyx/graphql-php
2323
Be mindful of Craft vs. GraphQL terminology, because there are overlapping terms that can be confusing. It helps to pay careful attention to namespacing when looking at code examples.
2424
:::
2525

26-
The rest of this page will cover each of the main things you may need to work with. If you’d like some concrete examples, have a look at Craft’s own pieces in the [`src/gql/` directory](https://github.com/craftcms/cms/tree/main/src/gql).
26+
The rest of this page will cover each of the main things you may need to work with. If you’d like some concrete examples, have a look at Craft’s own pieces in the [`src/gql/` directory](repo:craftcms/cms/tree/4.x/src/gql).
2727

2828
### Limitations
2929

3030
If you’re planning advanced or elaborate GraphQL features, please be aware of the following limitations with Craft’s GraphQL implementation:
3131

3232
- GraphQL subscriptions aren’t currently supported.
33-
- Advanced query builder functions [are not exposed for GraphQL](https://github.com/craftcms/cms/issues/7842).
33+
- Advanced query builder functions [are not exposed for GraphQL](repo:craftcms/cms/issues/7842).
3434

3535
## Folder Structure
3636

37-
Here’s a high-level look at the folder structure we’ll explore in our example adding a “Widget” element. You can structure things however you want, we’re just following [Craft’s organization](https://github.com/craftcms/cms/tree/main/src/gql):
37+
Here’s a high-level look at the folder structure we’ll explore in our example adding a “Widget” element. You can structure things however you want, we’re just following [Craft’s organization](repo:craftcms/cms/tree/4.x/src/gql):
3838

3939
```treeview
4040
src/gql/

docs/4.x/extend/module-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Namespace
1414

1515
Module ID
1616
: Something that uniquely identifies the module within your project. IDs must begin with a letter and contain only lowercase letters, numbers, and dashes, and should be `kebab-cased`.
17-
: The module ID will become the first segment in [controller action](./controllers.md) paths. Avoid names that will conflict with Craft’s core [controllers](repo:craftcms/cms/tree/develop/src/controllers) or the handles of any installed plugins (e.g. `app` would conflict with <craft4:craft\controllers\AppController>, and `commerce` would collide with [Commerce](../../commerce/4.x/README.md)).
17+
: The module ID will become the first segment in [controller action](./controllers.md) paths. Avoid names that will conflict with Craft’s core [controllers](repo:craftcms/cms/tree/4.x/src/controllers) or the handles of any installed plugins (e.g. `app` would conflict with <craft4:craft\controllers\AppController>, and `commerce` would collide with [Commerce](../../commerce/4.x/README.md)).
1818

1919

2020
As an alternative to modules, private [plugins](plugin-guide.md) <Since ver="4.4.0" feature="Private plugins" /> provide all the functionality of a regular plugin, but are intended to be tracked as part of a project rather than distributed.

0 commit comments

Comments
 (0)