Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
0592d1c
Use beta logo
pwizla Mar 15, 2022
a09b7f2
Merge branch 'main' into next
derrickmehaffy Mar 15, 2022
f34d15c
[beta] Add TS command (#800)
soupette Mar 16, 2022
a1073a7
[beta] Dark mode: Updates user guide + dev docs (#795)
pwizla Mar 16, 2022
744d54a
Slightly update wording for TS flag
pwizla Mar 16, 2022
97b5f52
Update core store migration
pwizla Mar 16, 2022
0b5cea3
Added APP_KEYS to environmental variables table + fixed spelling error
stb13579 Mar 18, 2022
b5849fe
added link to middlewares documentation
stb13579 Mar 18, 2022
825fbe2
(WIP) Add permissions mapping tables
pwizla Mar 22, 2022
9b5f373
Fix typo
dsiddy Apr 3, 2022
893fbc6
Merge pull request #827 from dsiddy/patch-1
stb13579 Apr 4, 2022
861aa15
Added caution call out
stb13579 Apr 5, 2022
9efaeae
Updated the telemetry opt-out method
stb13579 Apr 5, 2022
1ad52cf
Update amazon-aws.md: Wrong package mentioned (#830)
spreadcharm Apr 5, 2022
9d662c5
Missing information for plugin creation #834
DimitriGilbert Apr 6, 2022
2d9e138
Include APP_KEYS in Heroku Deployment Guide
dsfaccini Apr 6, 2022
4ec63fc
Added caution callout and small text + formatting revisions
stb13579 Apr 8, 2022
906fb5d
Apply suggestions from code review
DimitriGilbert Apr 8, 2022
929c019
Merge pull request #831 from strapi/dev/telemetry-opt-out
stb13579 Apr 8, 2022
0c33ecd
Merge pull request #838 from dsfaccini/patch-1
stb13579 Apr 8, 2022
f2876ff
docs: improve the Laravel Documentation
Apr 8, 2022
12b3105
Merge pull request #836 from DimitriGilbert/patch-1
stb13579 Apr 8, 2022
e5651f5
docs: fix typo in code section
Apr 8, 2022
04c356b
Update azure.md
kulahad Apr 11, 2022
3b71421
Merge pull request #846 from kulahad/patch-1
stb13579 Apr 11, 2022
9f3c8ec
Merge pull request #843 from danielsum/patch-1
stb13579 Apr 11, 2022
58d8eb6
Finish adding permission mapping tables
pwizla Apr 12, 2022
a36afe7
Merge branch 'dev/next-sql-migration-updates'
pwizla Apr 12, 2022
4bf83e3
Merge branch 'production' into main
derrickmehaffy Apr 13, 2022
c5eb7e4
Remove typescript from production release
derrickmehaffy Apr 13, 2022
87a7001
Added migration guide
stb13579 Apr 19, 2022
f37dc7d
Added link to 4.1.8 migration guide
stb13579 Apr 19, 2022
208830a
add comments for Shaun
derrickmehaffy Apr 20, 2022
9e1198a
updated with Derrick's suggestions
stb13579 Apr 21, 2022
f949b2f
fixed spelling and phrasing
stb13579 Apr 21, 2022
1fea391
add JWT_SECRET code snippet
stb13579 Apr 21, 2022
b10d121
Fixed code for config/plugins
stb13579 Apr 21, 2022
48e9617
Update docs/developer-docs/latest/update-migration-guides/migration-g…
stb13579 Apr 21, 2022
ca702d0
Update docs/developer-docs/latest/update-migration-guides/migration-g…
stb13579 Apr 21, 2022
751757b
docs: fix typo (#853)
inc-ali Apr 21, 2022
8eeb915
Merge pull request #851 from strapi/dev/v4.1.8-migration
stb13579 Apr 21, 2022
44ea262
make render.com hosting guide work with strapi version >= v4.0.6 (#832)
NicoHof Apr 21, 2022
463e820
Add additional commands for Heroku environment variables config (#850)
derrickmehaffy Apr 21, 2022
491c601
Merge branch 'production' into main
derrickmehaffy Apr 21, 2022
5ce6da8
Fixed config object example code
mancku Apr 25, 2022
5d56315
remove API_TOKEN_SALT and APP_KEYS from env table
stb13579 Apr 25, 2022
f43441d
Merge pull request #805 from strapi/dev/env-update
stb13579 Apr 25, 2022
e9706ea
Merge pull request #859 from mancku/patch-1
stb13579 Apr 25, 2022
ed55fb6
Update routes.md
eliasleyton Apr 25, 2022
650cf1d
Merge pull request #860 from eliasleyton/patch-1
stb13579 Apr 25, 2022
bb43b7c
update link style
stb13579 Apr 26, 2022
6095196
updated migration guide to match template.
stb13579 Apr 27, 2022
c232bcd
Update docs/developer-docs/latest/update-migration-guides/migration-g…
stb13579 Apr 27, 2022
a9bd54d
Merge pull request #866 from strapi/dev/v4.1.8-migration
stb13579 Apr 27, 2022
c6a6a6d
[v4 migration] MongoDB additions to data migration guide (#818)
pwizla Apr 27, 2022
7a5149e
Lack one s in the file name middleware.js
slamer59 Apr 27, 2022
65f113b
Merge pull request #868 from slamer59/patch-1
stb13579 Apr 27, 2022
0def274
Merge pull request #828 from strapi/dev/Docker-update
stb13579 Apr 27, 2022
c63a2b1
Merge branch 'production' into main
derrickmehaffy Apr 27, 2022
bc3427e
Changed time based fields from snake case to camel case
kasonde May 3, 2022
a982168
docs: fixed command to start strapi (#870)
waznico May 3, 2022
e78f4cd
Update plugins-extension.md (#876)
rtalwar26 May 4, 2022
a1b31c8
fix: use correct key parameter for azure deploy (#874)
tefkah May 4, 2022
5af8275
Upload: improve code examples (#806)
gu-stav May 4, 2022
5935ad6
Update services.md (#880)
rtalwar26 May 6, 2022
a6a5cbd
Remove useless callout (#888)
pwizla May 10, 2022
e485b51
Force node 14 (#890)
derrickmehaffy May 10, 2022
53c5333
Update latest supported versions & expand docs (#883)
andrevitalb May 11, 2022
596e55b
Fix wrong wording in model information (#887)
pwizla May 11, 2022
cfaae3e
Add migration guide to 4.1.10 (#885)
petersg83 May 11, 2022
d76d4d0
Fix predefined hook's name. (#884)
kentarohorie May 11, 2022
cdf86b8
Strapi-maintained plugins descriptions (#833)
stb13579 May 11, 2022
cd4f8cb
Remove populateCreatorFields from models (#881)
stb13579 May 11, 2022
1c86ab9
Add NodeJS link to NODE_ENV=production (#879)
stb13579 May 11, 2022
fcffcd3
Fix the example code for registering hooks (#877)
pascalvaccaro May 11, 2022
7759647
Merge branch 'main' into production
pwizla May 11, 2022
59e173d
Update update-version.md
magnus-trent May 11, 2022
d3bf26d
typo
jbcrestot May 13, 2022
d22c018
Update services.md (#896)
alejandro-llanes May 16, 2022
4a9ad7f
Merge pull request #895 from jbcrestot/patch-1
stb13579 May 17, 2022
85f4798
Merge pull request #893 from TheGrimSilence/patch-1
stb13579 May 17, 2022
93ee4ec
Removed the getPlugin part for content-manager
kevinvugts May 17, 2022
6c50b59
Merge pull request #873 from strapi/fix/webhook_example
stb13579 May 17, 2022
d52bb20
Merge pull request #899 from kevinvugts/patch-1
stb13579 May 17, 2022
5eb3abf
Add caution call out to documentation plugin
stb13579 May 18, 2022
6b3e63b
Update docs/developer-docs/latest/plugins/documentation.md
stb13579 May 18, 2022
26d9014
Merge pull request #900 from strapi/dev/api-doc-plugin
stb13579 May 18, 2022
b2b24bd
Add caution callout above custom routes config (#901)
fdel-car May 20, 2022
0008937
docs typo (#871)
soldatovsh May 25, 2022
0751244
Configure last-updated plugin output (#905)
pwizla May 25, 2022
ff3c527
Replace logo with SVG version
pwizla May 30, 2022
306d572
Add 2x PNG logo
pwizla May 30, 2022
92c5932
Add a tip to content type schema migration page and link to Codemods …
tonoli May 30, 2022
8027bdd
Fix missing closing tip markup + improve wording
pwizla May 30, 2022
7c07de1
Improve wording further for codemods tip
pwizla May 30, 2022
7a14543
Update populating-fields.md (#913)
Benbinbin Jun 1, 2022
8cae88e
Update CONTRIBUTING.md
pwizla Jun 1, 2022
0bc1d3d
Update CONTRIBUTING.md
pwizla Jun 1, 2022
482e068
Update CONTRIBUTING.md
pwizla Jun 1, 2022
37fcaa4
Update CONTRIBUTING.md
pwizla Jun 1, 2022
888673e
Update CONTRIBUTING.md
pwizla Jun 1, 2022
5bceef4
Update CONTRIBUTING.md
pwizla Jun 1, 2022
48bf45b
Update CONTRIBUTING.md
pwizla Jun 1, 2022
c42b470
Merge branch 'production' of github.com:strapi/documentation into pro…
pwizla Jun 1, 2022
982c644
Bump version number
pwizla Jun 1, 2022
7ba4935
Merge branch 'production' into release/4-1-12
pwizla Jun 1, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
158 changes: 74 additions & 84 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,132 +18,122 @@ 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.

---

## Submitting a Pull Request

The core team will review your pull request and will either merge it, request changes to it, or close it.

### Contribution Prerequisites

<!-- TODO Update warning about using yarn when npm v7 is out since it will support yarn.lock files — see https://blog.npmjs.org/post/621733939456933888/npm-v7-series-why-keep-package-lockjson.html -->
- 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 <user/branch-name>

#developer documentation
git checkout -b <dev/branch-name>
#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.


<aside>
✋ Previous, non-current versions of the Strapi documentation are only maintained for 6 months after the release of the latest, current version.

</aside>

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 <dev/branch-name>

# user documentation
git checkout -b <user/branch-name>

```

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.
9 changes: 9 additions & 0 deletions docs/.vuepress/config/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
{
Expand Down
2 changes: 1 addition & 1 deletion docs/.vuepress/config/theme-config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const themeConfig = {
logo: '/assets/logo.png',
logo: '/assets/logo.svg',
nav: [
{
text: 'Resource Center',
Expand Down
Binary file added docs/.vuepress/public/assets/logo-2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading