diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index dc1043b826..c558806fcb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -18,13 +18,25 @@ Requests for new documentation are highly encouraged, this is not limited to new This project and everyone participating in it are governed by the [Strapi Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please read the [full text](CODE_OF_CONDUCT.md) so that you can read which actions may or may not be tolerated. -## Documentation +## Bugs -Pull requests relating to fixing documentation for the latest release should be directed towards the `main` branch. +We are using [GitHub Issues](https://github.com/strapi/documentation/issues) to manage our public bugs. Before submitting an issue you need to make sure: -## Bugs +- Checked for any existing pull requests that may address the same issue +- Checked for any open issues related to your issue, if so, please provide context on that issue +- Follow the issue template and try to fill out as much information as you can + - Issues not following the templates **will be closed** + - You may update the closed issue with the required information and it will be reopened +- The issue is with the Strapi **documentation only**, code issues should be directed at the main [strapi/strapi](https://github.com/strapi/strapi) repo issues +- If you are requesting documentation, please do feel free to make a pull request + - Documentation requests will be handled when we have free room within our roadmap + - Open requests **are not handled** in a "first come, first serve" basis, they are handled on a "best-effort" depending on the time required to produce +- Do not ask technical questions about how to do something + - Questions should be directed at the following resources + - Open a Q&A thread on our [Official Forum](https://forum.strapi.io) + - Talk with other community members on our [Community Discord](https://discord.strapi.io) -We are using [GitHub Issues](https://github.com/strapi/documentation/issues) to manage our public bugs. We keep a close eye on this so before filing a new issue, try to make sure the problem does not already exist. +Please note that rude or impolite comments on issues that violate our [Code of Conduct](./CODE_OF_CONDUCT.md) will be deleted and issues that violate the COC will be closed. --- @@ -32,118 +44,96 @@ We are using [GitHub Issues](https://github.com/strapi/documentation/issues) to The core team will review your pull request and will either merge it, request changes to it, or close it. -### Contribution Prerequisites - - -- You installed the following softwares: - - [Node](https://nodejs.org/en/) at v14 only (Node v15+ are not supported) - - [Yarn](https://yarnpkg.com/en/) at v1.2.0+. **Please use yarn**, not npm, as we maintain a `yarn.lock` file instead of `package-lock.json` -- You are familiar with Git. - -### Contribution Workflow +### Setup and pull request creation -#### Setting up +Follow the procedure below to contribute to the Strapi documentation. 1. Fork the `documentation` repository. 2. Clone your forked `documentation` repository. - + ```bash - # HTTPS - git clone https://github.com/yourgithubname/documentation.git - - # SSH git clone git@github.com:yourgithubname/documentation.git ``` - -3. From the `main` branch, retrieve the latest modifications to work on an up-to-date branch. - + +3. Enter the `developer-docs` folder to contribute to the [Developer Documentation](https://strapi.io/documentation/developer-docs/latest/getting-started/introduction.html), or the `user-docs` folder to contribute to the [User Guide](https://strapi.io/documentation/user-docs/latest/getting-started/introduction.html). + ```bash - git checkout main - git pull + # developer documentation + cd documentation/docs/developer-docs + + # user documentation + cd documentation/docs/user-docs ``` - -4. Create your own branch. Make sure the name of your branch indicates both the type of documentation and the topic. - + +4. Choose the branch from which to work: either `main` for a contribution on the latest, current version or Strapi ; or `v[x]` for a contribution on a previous version of Strapi. + ```bash - #user documentation - git checkout -b - - #developer documentation - git checkout -b + #current version of Strapi (i.e. v4) + git checkout main + + #previous version of Strapi (e.g. v3) + git checkout v3 ``` - -5. Enter in the folder which contains the whole VuePress documentation project. - + + + +5. From your chosen branch, retrieve the latest modifications to work on an up-to-date branch. + ```bash - cd docs + git pull ``` - -6. Make sure all dependencies are installed - + +6. Create your own branch, based on either `main` or `v[x]` , on which you will work on your documentation contribution. Make sure the name of your branch indicates both the type of documentation and the topic. + ```bash - yarn + # developer documentation + git checkout -b + + # user documentation + git checkout -b + ``` -7. Start the documentation server - ```bash - # Launch the full documentation - yarn dev +You are now ready to contribute to the Strapi documentation! 🚀 - # Launch only the developer docs - yarn dev:dev +🤗 Make sure to follow the [12 Rules of Technical Writing](https://handbook.strapi.io/user-success-manual/12-rules-of-technical-writing) and the [Strapi Documentation Style Guide](https://handbook.strapi.io/user-success-manual/strapi-documentation-style-guide) when writing your documentation contribution. These documents are meant to help you write a contribution that fits the whole Strapi documentation and make the reviewing process easier and quicker. - # Launch only the user docs - yarn dev:user - ``` +When you are finished writing, create a pull request from your forked repository to the original `documentation` repository (see [the GitHub docs](https://docs.github.com/en/github/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork) for more information). +✋ To be able to submit your contribution, you must sign the CLA (Contributor License Agreement), directly via GitHub (see [our dedicated blog post](https://strapi.io/blog/switching-from-dco-to-cla) for more information). +### Pull request review and management -#### Writing -We can't provide you specific procedures with step-by-step instructions to write technical documentation. But our ["12 Rules of Technical Writing"](https://handbook.strapi.io/user-success-manual/12-rules-of-technical-writing) and [style guide](https://handbook.strapi.io/user-success-manual/strapi-documentation-style-guide) should help you get started. If you have any question or need help, do feel free to reach us through [our forum](https://forum.strapi.io/). +Read the information below to know how your contribution will be handled by the Strapi Documentation team until it is merged and deployed. -#### Sharing & reviewing +#### Handling -1. Create a pull request from your forked `documentation` repository to the original `documentation` repository, to share your contribution to the documentation. -2. Wait for your pull request to be reviewed by a Strapi team member. -You do not need to assign anyone. Your pull request will be handled by our team in the next 48 hours (business days). -3. *(optional)* Once the PR has been reviewed, you may have additional fixes to make before it's validated. +When a new pull request is submitted in the Strapi `documentation` repository, it is handled in the following week, meaning that the Strapi team: -Congratulations, and thank you for your contribution! -Once your PR is validated, the Strapi team takes over and make sure your new content will soon be deployed! +- acknowledges the new pull request, leaving a 👀 reaction on the description +- tags the pull request, to indicate the type of documentation that is being updated, and optionally the level of priority for the contribution +- assigns the pull request to a member of the Strapi Documentation team, who will be in charge of the reviewing and merging ---- -## Miscellaneous +#### Review -### Repository Organization +Once all of the handling steps are done by the Strapi team, you can expect your pull request to be reviewed in the next week or so. -We have various types of documentation that are maintained on their own: +Here is what the Strapi Documentation team will review in your pull request: -- `developer-docs` - is tailored for developers and administrators and provide documentation on the technical aspects of Strapi -- `user-docs` - is tailored for users and content-creators of Strapi and outline the user interface and usage of Strapi +- The accuracy and coherence of the contribution, by testing any new piece of code or action for example, +- The quality of the technical writing, to make sure it is proper technical documentation that is easy to understand (see [12 Rules of Technical Writing](https://www.notion.so/12-Rules-of-Technical-Writing-c75e080e6b19432287b3dd61c2c9fa04)) +- The fit of the contribution among the rest of the Strapi documentation (see [Strapi Documentation Style Guide](https://www.notion.so/Strapi-Documentation-Style-Guide-b9c21387732741ed8b0a3f9701612577)) -All v4 PRs should target the `main` branch. -If you wish to update Strapi v3 documentation, target the `v3`. +The pull request will be validated once the contribution ticks all the boxes. At least the validation of the Strapi Documentation team member in charge of the pull request is necessary for it to be merged. +#### Deployment -### Reporting an issue +Once your pull request is validated and merged, it will be deployed with the next batch of merged pull requests. The Strapi Documentation team only deploys the documentation on Wednesdays, but not every week. -Before submitting an issue you need to make sure: +Every documentation deployment is communicated through a message in [the "News" section of the Strapi forum](https://forum.strapi.io/c/news/5). -- Checked for any existing pull requests that may address the same issue -- Checked for any open issues related to your issue, if so, please provide context on that issue -- Follow the issue template and try to fill out as much information as you can - - Issues not following the templates **will be closed** - - You may update the closed issue with the required information and it will be reopened -- The issue is with the Strapi **documentation only**, code issues should be directed at the main [strapi/strapi](https://github.com/strapi/strapi) repo issues -- If you are requesting documentation, please do feel free to make a pull request - - Documentation requests will be handled when we have free room within our roadmap - - Open requests **are not handled** in a "first come, first serve" basis, they are handled on a "best-effort" depending on the time required to produce -- Do not ask technical questions about how to do something - - Questions should be directed at the following resources - - Open a Q&A thread on our [Official Forum](https://forum.strapi.io) - - Talk with other community members on our [Community Slack](https://slack.strapi.io) -Please note that rude or impolite comments on issues that violate our [Code of Conduct](./CODE_OF_CONDUCT.md) will be deleted and issues that violate the COC will be closed. diff --git a/docs/.vuepress/config/plugins.js b/docs/.vuepress/config/plugins.js index 58c96a2027..1b83bb42c1 100644 --- a/docs/.vuepress/config/plugins.js +++ b/docs/.vuepress/config/plugins.js @@ -21,6 +21,15 @@ const checklinksIgnoredFiles = [ const plugins = [ ['vuepress-plugin-element-tabs', {}], + ['@vuepress/last-updated', + { + transformer: (timestamp, lang) => { + const date = new Date(timestamp); + const options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }; + return date.toLocaleDateString('en-US', options) + } + } + ], [ 'check-md', { diff --git a/docs/.vuepress/config/theme-config.js b/docs/.vuepress/config/theme-config.js index 462075e614..9f1351dd97 100644 --- a/docs/.vuepress/config/theme-config.js +++ b/docs/.vuepress/config/theme-config.js @@ -1,5 +1,5 @@ const themeConfig = { - logo: '/assets/logo.png', + logo: '/assets/logo.svg', nav: [ { text: 'Resource Center', diff --git a/docs/.vuepress/public/assets/logo-2x.png b/docs/.vuepress/public/assets/logo-2x.png new file mode 100644 index 0000000000..552122a530 Binary files /dev/null and b/docs/.vuepress/public/assets/logo-2x.png differ diff --git a/docs/.vuepress/public/assets/logo.svg b/docs/.vuepress/public/assets/logo.svg new file mode 100644 index 0000000000..c7d3241966 --- /dev/null +++ b/docs/.vuepress/public/assets/logo.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/docs/developer-docs/latest/developer-resources/database-apis-reference/rest/populating-fields.md b/docs/developer-docs/latest/developer-resources/database-apis-reference/rest/populating-fields.md index df37998bf0..b466fd234b 100644 --- a/docs/developer-docs/latest/developer-resources/database-apis-reference/rest/populating-fields.md +++ b/docs/developer-docs/latest/developer-resources/database-apis-reference/rest/populating-fields.md @@ -276,7 +276,7 @@ await request(`/api/articles?${query}`); ### Component & Dynamic Zones -The `population` parameter is used to explicitly define which Dynamic zones, components, and nested components to populate. +The `populate` parameter is used to explicitly define which Dynamic zones, components, and nested components to populate. #### Deeply populate a 2 level component & media @@ -408,7 +408,7 @@ await request(`/api/articles?${query}`); ### Combining Population with other operators -By utilizing the `population` operator it is possible to combine other operators such as [field selection](/developer-docs/latest/developer-resources/database-apis-reference/rest/populating-fields.md#field-selection), [filters](/developer-docs/latest/developer-resources/database-apis-reference/rest/filtering-locale-publication.md), and [sort](/developer-docs/latest/developer-resources/database-apis-reference/rest/sort-pagination.md) in the population queries. +By utilizing the `populate` operator it is possible to combine other operators such as [field selection](/developer-docs/latest/developer-resources/database-apis-reference/rest/populating-fields.md#field-selection), [filters](/developer-docs/latest/developer-resources/database-apis-reference/rest/filtering-locale-publication.md), and [sort](/developer-docs/latest/developer-resources/database-apis-reference/rest/sort-pagination.md) in the population queries. :::caution The population and pagination operators cannot be combined. diff --git a/docs/developer-docs/latest/developer-resources/plugin-api-reference/admin-panel.md b/docs/developer-docs/latest/developer-resources/plugin-api-reference/admin-panel.md index b1ddd9270a..f44f9b6881 100644 --- a/docs/developer-docs/latest/developer-resources/plugin-api-reference/admin-panel.md +++ b/docs/developer-docs/latest/developer-resources/plugin-api-reference/admin-panel.md @@ -121,9 +121,7 @@ module.exports = () => { // ... bootstrap(app) { // execute some bootstrap code - app - .getPlugin('content-manager') - .injectContentManagerComponent('editView', 'right-links', { name: 'my-compo', Component: () => 'my-compo' }) + app.injectContentManagerComponent('editView', 'right-links', { name: 'my-compo', Component: () => 'my-compo' }) }, }; }; diff --git a/docs/developer-docs/latest/development/backend-customization/routes.md b/docs/developer-docs/latest/development/backend-customization/routes.md index fba23aae73..40e2c9b8fa 100644 --- a/docs/developer-docs/latest/development/backend-customization/routes.md +++ b/docs/developer-docs/latest/development/backend-customization/routes.md @@ -104,21 +104,28 @@ Creating custom routers consists in creating a file that exports an array of obj Dynamic routes can be created using parameters and regular expressions. These parameters will be exposed in the `ctx.params` object. For more details, please refer to the [PathToRegex](https://github.com/pillarjs/path-to-regexp) documentation. +::: caution +Routes files are loaded in alphabetical order. To load custom routes before core routes, make sure to name custom routes appropriately (e.g. `01-custom-routes.js` and `02-core-routes.js`). +::: + ::: details Example of a custom router using URL parameters and regular expressions for routes + +In the following example, the custom routes file name is prefixed with `01-` to make sure the route is reached before the core routes. + ```js -// path: ./src/api/restaurant/routes/custom-restaurant.js +// path: ./src/api/restaurant/routes/01-custom-restaurant.js module.exports = { routes: [ - { // Path defined with a URL parameter - method: 'GET', - path: '/restaurants/:category/:id', - handler: 'Restaurant.findOneByCategory', + { // Path defined with an URL parameter + method: 'POST', + path: '/restaurants/:id/review', + handler: 'restaurant.review', }, { // Path defined with a regular expression method: 'GET', - path: '/restaurants/:region(\\d{2}|\\d{3})/:id', // Only match when the first parameter contains 2 or 3 digits. - handler: 'Restaurant.findOneByRegion', + path: "/restaurants/:category([a-z]+)", // Only match when the URL parameter is composed of lowercase letters + handler: 'restaurant.findByCategory', } ] } @@ -221,7 +228,7 @@ const { createCoreRouter } = require('@strapi/strapi').factories; module.exports = createCoreRouter('api::restaurant.restaurant', { config: { find: { - middlwares: [ + middlewares: [ // point to a registered middleware 'middleware-name', diff --git a/docs/developer-docs/latest/development/backend-customization/webhooks.md b/docs/developer-docs/latest/development/backend-customization/webhooks.md index 787c8e9c44..7de8c36ce8 100644 --- a/docs/developer-docs/latest/development/backend-customization/webhooks.md +++ b/docs/developer-docs/latest/development/backend-customization/webhooks.md @@ -1,5 +1,5 @@ --- -title: Webhooks - Strapi Developer Docs +title: Webhooks - Strapi Developer Docs description: Strapi webhooks are user-defined HTTP callbacks used by an application to notify other applications that an event occurred. canonicalUrl: https://docs.strapi.io/developer-docs/latest/development/backend-customization/webhooks.html --- @@ -159,7 +159,7 @@ This event is triggered when a new entry is created. ```json { "event": "entry.create", - "created_at": "2020-01-10T08:47:36.649Z", + "createdAt": "2020-01-10T08:47:36.649Z", "model": "address", "entry": { "id": 1, @@ -168,8 +168,8 @@ This event is triggered when a new entry is created. "postal_code": null, "category": null, "full_name": "Paris", - "created_at": "2020-01-10T08:47:36.264Z", - "updated_at": "2020-01-10T08:47:36.264Z", + "createdAt": "2020-01-10T08:47:36.264Z", + "updatedAt": "2020-01-10T08:47:36.264Z", "cover": null, "images": [] } @@ -185,7 +185,7 @@ This event is triggered when an entry is updated. ```json { "event": "entry.update", - "created_at": "2020-01-10T08:58:26.563Z", + "createdAt": "2020-01-10T08:58:26.563Z", "model": "address", "entry": { "id": 1, @@ -194,8 +194,8 @@ This event is triggered when an entry is updated. "postal_code": null, "category": null, "full_name": "Paris", - "created_at": "2020-01-10T08:47:36.264Z", - "updated_at": "2020-01-10T08:58:26.210Z", + "createdAt": "2020-01-10T08:47:36.264Z", + "updatedAt": "2020-01-10T08:58:26.210Z", "cover": null, "images": [] } @@ -211,7 +211,7 @@ This event is triggered when an entry is deleted. ```json { "event": "entry.delete", - "created_at": "2020-01-10T08:59:35.796Z", + "createdAt": "2020-01-10T08:59:35.796Z", "model": "address", "entry": { "id": 1, @@ -220,8 +220,8 @@ This event is triggered when an entry is deleted. "postal_code": null, "category": null, "full_name": "Paris", - "created_at": "2020-01-10T08:47:36.264Z", - "updated_at": "2020-01-10T08:58:26.210Z", + "createdAt": "2020-01-10T08:47:36.264Z", + "updatedAt": "2020-01-10T08:58:26.210Z", "cover": null, "images": [] } @@ -237,7 +237,7 @@ This event is triggered when an entry is published. ```json { "event": "entry.publish", - "created_at": "2020-01-10T08:59:35.796Z", + "createdAt": "2020-01-10T08:59:35.796Z", "model": "address", "entry": { "id": 1, @@ -246,9 +246,9 @@ This event is triggered when an entry is published. "postal_code": null, "category": null, "full_name": "Paris", - "created_at": "2020-01-10T08:47:36.264Z", - "updated_at": "2020-01-10T08:58:26.210Z", - "published_at": "2020-08-29T14:20:12.134Z", + "createdAt": "2020-01-10T08:47:36.264Z", + "updatedAt": "2020-01-10T08:58:26.210Z", + "publishedAt": "2020-08-29T14:20:12.134Z", "cover": null, "images": [] } @@ -264,7 +264,7 @@ This event is triggered when an entry is unpublished. ```json { "event": "entry.unpublish", - "created_at": "2020-01-10T08:59:35.796Z", + "createdAt": "2020-01-10T08:59:35.796Z", "model": "address", "entry": { "id": 1, @@ -273,9 +273,9 @@ This event is triggered when an entry is unpublished. "postal_code": null, "category": null, "full_name": "Paris", - "created_at": "2020-01-10T08:47:36.264Z", - "updated_at": "2020-01-10T08:58:26.210Z", - "published_at": null, + "createdAt": "2020-01-10T08:47:36.264Z", + "updatedAt": "2020-01-10T08:58:26.210Z", + "publishedAt": null, "cover": null, "images": [] } @@ -291,7 +291,7 @@ This event is triggered when you upload a file on entry creation or through the ```json { "event": "media.create", - "created_at": "2020-01-10T10:58:41.115Z", + "createdAt": "2020-01-10T10:58:41.115Z", "media": { "id": 1, "name": "image.png", @@ -303,8 +303,8 @@ This event is triggered when you upload a file on entry creation or through the "url": "/uploads/353fc98a19e44da9acf61d71b11895f9.png", "provider": "local", "provider_metadata": null, - "created_at": "2020-01-10T10:58:41.095Z", - "updated_at": "2020-01-10T10:58:41.095Z", + "createdAt": "2020-01-10T10:58:41.095Z", + "updatedAt": "2020-01-10T10:58:41.095Z", "related": [] } } @@ -319,7 +319,7 @@ This event is triggered when you replace a media or update the metadata of a med ```json { "event": "media.update", - "created_at": "2020-01-10T10:58:41.115Z", + "createdAt": "2020-01-10T10:58:41.115Z", "media": { "id": 1, "name": "image.png", @@ -331,8 +331,8 @@ This event is triggered when you replace a media or update the metadata of a med "url": "/uploads/353fc98a19e44da9acf61d71b11895f9.png", "provider": "local", "provider_metadata": null, - "created_at": "2020-01-10T10:58:41.095Z", - "updated_at": "2020-01-10T10:58:41.095Z", + "createdAt": "2020-01-10T10:58:41.095Z", + "updatedAt": "2020-01-10T10:58:41.095Z", "related": [] } } @@ -347,7 +347,7 @@ This event is triggered only when you delete a media through the media interface ```json { "event": "media.delete", - "created_at": "2020-01-10T11:02:46.232Z", + "createdAt": "2020-01-10T11:02:46.232Z", "media": { "id": 11, "name": "photo.png", @@ -359,8 +359,8 @@ This event is triggered only when you delete a media through the media interface "url": "/uploads/43761478513a4c47a5fd4a03178cfccb.png", "provider": "local", "provider_metadata": null, - "created_at": "2020-01-07T19:34:32.168Z", - "updated_at": "2020-01-07T19:34:32.168Z", + "createdAt": "2020-01-07T19:34:32.168Z", + "updatedAt": "2020-01-07T19:34:32.168Z", "related": [] } } diff --git a/docs/developer-docs/latest/plugins/documentation.md b/docs/developer-docs/latest/plugins/documentation.md index 58a6c75158..5484b6b118 100644 --- a/docs/developer-docs/latest/plugins/documentation.md +++ b/docs/developer-docs/latest/plugins/documentation.md @@ -6,6 +6,10 @@ canonicalUrl: https://docs.strapi.io/developer-docs/latest/plugins/documentation # API Documentation +::: caution +The Documentation plugin documentation may not be fully updated for Strapi v4. The Strapi team is currently improving that plugin and documentation, which should be completed by the end of September 2022. +::: + Now that you have created your API it's really important to document its available end-points. The documentation plugin takes out most of your pain to generate your documentation. This plugin uses [SWAGGER UI](https://swagger.io/solutions/api-documentation/) to visualize your API's documentation. If installed, this plugin will scan all the routes available from your `./api` folder and will try to create the appropriate documentation, infer on the parameters needed to create data, the responses you will receive. diff --git a/docs/developer-docs/latest/update-migration-guides/migration-guides/v4/code/backend/content-type-schema.md b/docs/developer-docs/latest/update-migration-guides/migration-guides/v4/code/backend/content-type-schema.md index cb42eb3cb2..69de7d7cd4 100644 --- a/docs/developer-docs/latest/update-migration-guides/migration-guides/v4/code/backend/content-type-schema.md +++ b/docs/developer-docs/latest/update-migration-guides/migration-guides/v4/code/backend/content-type-schema.md @@ -44,6 +44,10 @@ To convert Strapi v3 models to v4 content-types: mv src/api//models/ src/api//content-types/ ``` +::: tip +[Strapi codemods](https://github.com/strapi/codemods/) can be used to convert v3 models to v4 content-types. +::: + 3. Move/rename each model's `.settings.json` file to `./src/api//content-types//schema.json` files. 4. In each `/schema.json` file, update [the `info` object](/developer-docs/latest/development/backend-customization/models.md#model-information), which now requires declaring the 3 new `singularName`, `pluralName` and `displayName` keys and respecting some case-formatting conventions: diff --git a/docs/developer-docs/latest/update-migration-guides/migration-guides/v4/code/backend/graphql.md b/docs/developer-docs/latest/update-migration-guides/migration-guides/v4/code/backend/graphql.md index ece1301a4c..98e723b599 100644 --- a/docs/developer-docs/latest/update-migration-guides/migration-guides/v4/code/backend/graphql.md +++ b/docs/developer-docs/latest/update-migration-guides/migration-guides/v4/code/backend/graphql.md @@ -208,7 +208,7 @@ module.exports = { type: nexus.nonNull('Boolean'), // Args definition - args: { ItemID: nexus.nonNull('ID'), email: nexus.nonNull('String)' }, + args: { ItemID: nexus.nonNull('ID'), email: nexus.nonNull('String') }, // Resolver definition resolve(parent, args, context) { diff --git a/docs/developer-docs/latest/update-migration-guides/migration-guides/v4/code/backend/services.md b/docs/developer-docs/latest/update-migration-guides/migration-guides/v4/code/backend/services.md index 3cf6ef1d44..b6017be319 100644 --- a/docs/developer-docs/latest/update-migration-guides/migration-guides/v4/code/backend/services.md +++ b/docs/developer-docs/latest/update-migration-guides/migration-guides/v4/code/backend/services.md @@ -62,7 +62,7 @@ To create a Strapi v4 service: const { createCoreService } = require('@strapi/strapi').factories; - module.exports = createCoreService('api::api-name.content-type-name', ({ strapi }) => { + module.exports = createCoreService('api::api-name.content-type-name', ({ strapi }) => ({ async find(...args) { const { results, pagination } = await super.find(...args); diff --git a/docs/developer-docs/latest/update-migration-guides/update-version.md b/docs/developer-docs/latest/update-migration-guides/update-version.md index b80395ee72..9d293366e0 100644 --- a/docs/developer-docs/latest/update-migration-guides/update-version.md +++ b/docs/developer-docs/latest/update-migration-guides/update-version.md @@ -6,7 +6,7 @@ canonicalUrl: https://docs.strapi.io/developer-docs/latest/update-migration-guid # Upgrade Strapi version -Strapi periodically releases code improvements through upgrades. Upgrades contain no breaking changes and are announced in both the terminal and in the administration panel. [Migration guides](/developer-docs/latest/update-migration-guides/migration-guides.md) are provided whenver a new Strapi version includes breaking changes. +Strapi periodically releases code improvements through upgrades. Upgrades contain no breaking changes and are announced in both the terminal and in the administration panel. [Migration guides](/developer-docs/latest/update-migration-guides/migration-guides.md) are provided whenever a new Strapi version includes breaking changes. :::caution [Plugins extension](/developer-docs/latest/plugins/users-permissions.md) that create custom code or modify existing code will need to be updated and compared to the changes in the repository. Not updating the plugin extensions could break the application. diff --git a/docs/package.json b/docs/package.json index 08eebb9771..0735594117 100644 --- a/docs/package.json +++ b/docs/package.json @@ -1,6 +1,6 @@ { "name": "strapi-docs", - "version": "4.0.0", + "version": "4.1.12", "main": "index.js", "scripts": { "dev": "yarn create:config-file && vuepress dev",