Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
878dd7c
auth route v4 (#553)
azulkipli Dec 3, 2021
8331eb0
fix: typo in backend-customization/middlewares.md (#557)
alexkainzinger Dec 6, 2021
4015bbf
Update i18n.md (#564)
GeoFro Dec 6, 2021
671e77f
Added API suffix (#556)
bigpreshy Dec 6, 2021
26eca70
fix wrong uid (#558)
iicdii Dec 6, 2021
fe1643f
default route user register in v4 (#554)
azulkipli Dec 6, 2021
3af2e51
Fix remaining localhost links (#568)
pwizla Dec 6, 2021
e3c97f2
Fix wrong syntax in GraphQL plugin docs (#537)
iicdii Dec 7, 2021
b3e5f5b
Fix wrong parameter name in connection.connection (#559)
AmiralBl3ndic Dec 8, 2021
245b063
Fix broken links in GraphQL & i18n (#583)
pwizla Dec 9, 2021
cfbdc8a
Update default MySQL Port (#575)
armgitaar Dec 9, 2021
2ac992f
Add closing parenthesis to predefined hook code example (#589)
pwizla Dec 14, 2021
2725357
:book: :arrow_up: bump Mysql/MariaDB minimum verison (#593)
YoRolling Dec 15, 2021
8a40c8b
Update controllers.md (#586)
thezeeshantariq Dec 15, 2021
ce9d14d
Fix config example for GraphQL (#591)
derrickmehaffy Dec 15, 2021
cb078c9
docs: One-to-One should use singular in example (#570)
smoothdvd Dec 15, 2021
de5c909
Remaining auth v4 changes (#565)
arielbk Dec 15, 2021
aec7f15
lifecycles.js file is not generated automatically (#566)
adielbm Dec 15, 2021
77a8122
Rewrite REST examples to use QS + Misc fixes (#541)
derrickmehaffy Dec 20, 2021
ba03adc
Corrected: Database.js Structure and key variable (#603)
sbmvirdi Dec 20, 2021
3200136
Change strapi.api example from function to array (#539)
bidoubiwa Dec 20, 2021
717d9c3
Add information about uid and remove model name for upload ref (#614)
kasonde Dec 22, 2021
9cbac74
Update server.md (#598)
stefanosusini Dec 27, 2021
1bf7f3d
Update i18n docs, fix locale filter typo + autoformat (#609)
Convly Dec 27, 2021
4778be0
Update email.md (#611)
FbPalmabit Dec 27, 2021
2e7f24d
Fix wrong strapi module name for server.js (#615)
iicdii Dec 27, 2021
529ad33
easy syntax corrections in entity-service/crud (#620)
adielbm Dec 27, 2021
4688f61
fix some of the broken links (#626)
derrickmehaffy Dec 28, 2021
86cf72d
Fix typo in configuration options (#619)
Sharsie Dec 28, 2021
e87a6e9
entityService/populate updates to v4 (#621)
adielbm Dec 28, 2021
702a685
typos (#628)
sunnysonx Dec 28, 2021
92213eb
Update upload.md (#616)
JozefCulen Dec 28, 2021
0146671
Merge branch 'production' into main
derrickmehaffy Dec 28, 2021
febdfe0
Fixed content type export object & missing commas (#627)
YegorShtonda Dec 28, 2021
633403e
fix(dev/docs): typo `intLabel` to `intlLabel` (#625)
GauravRajSharma Jan 3, 2022
5ecbca5
Update services.md (#632)
umair-me Jan 3, 2022
110f266
Fix link formatting in v4 REST API
pwizla Jan 3, 2022
ea9f1a1
remove clean flag from build commands (#623)
derrickmehaffy Jan 5, 2022
69bd766
Update docs/developer-docs/latest/concepts/draft-and-publish.md
derrickmehaffy Jan 5, 2022
7dfdc46
Merge branch 'production' into main
derrickmehaffy Jan 5, 2022
dd5f510
Small typo in Quick Start Guide, word "Next" occurs twice unnecessari…
MichalKotowski Jan 5, 2022
b174724
Add warning to email doc to use full provider name (#636)
derrickmehaffy Jan 5, 2022
35f9193
fix: _locale params renamed to locale (#641)
Stun3R Jan 6, 2022
3de4f98
fix(docs): Change wording error in tab Twitch (#604)
matthieu-gll Jan 7, 2022
9e3cc64
Fix locale customisation (#645)
soupette Jan 7, 2022
5e13b42
Improve dev experience (#577)
soupette Jan 10, 2022
859b8db
Quality-of-life improvements for new build scripts (#651)
pwizla Jan 12, 2022
94d4cd2
Fix folder structure for plugin server files
pwizla Jan 13, 2022
daafff3
[unrelated to migration] Restore missing REST API items in sidebar
pwizla Jan 13, 2022
36234b0
Update Google Cloud Platform deployment documentation for strapi v4 (…
techhtml Jan 13, 2022
0740d2f
Update AWS deployment documentation (#653)
chao-y7 Jan 14, 2022
0247f2f
Fix JWT using wrong file and structure (#649)
derrickmehaffy Jan 18, 2022
79fd3ad
Update vue-js.md code example to list the restaurants (#654)
jdirand Jan 19, 2022
599d683
Fix broken links to iso-locales.json (#670)
tpimh Jan 24, 2022
8510de8
Product Copy - Wording updates in User Guide + Dev Docs (#658)
meganelacheny Jan 26, 2022
d7b0789
Update graphql.md (#633)
stafyniaksacha Jan 26, 2022
8c4cf83
Fix typos (#673)
Gonzalo8642 Jan 26, 2022
d2e11ee
Add admin jwt expire config (#659)
derrickmehaffy Jan 26, 2022
8435432
Guide Register field in admin panel (#610)
ronronscelestes Jan 26, 2022
c79dff2
Remove not-updated warning (#668)
rowild Jan 26, 2022
2d09942
Fix headings in Heroku guide
pwizla Jan 26, 2022
1102ce1
Merge branch 'main' of github.com:strapi/documentation
pwizla Jan 26, 2022
fc707a2
Mention the required use of node prefixes (#669)
rowild Jan 26, 2022
63bd90f
Reword CLI note to be a bit more neutral
pwizla Jan 26, 2022
9ae5447
Update v4 logo (#677)
pwizla Jan 26, 2022
0855a8b
Plugin migration guide (#663)
pwizla Jan 26, 2022
c491c6f
Merge branch 'production' into main
derrickmehaffy Jan 26, 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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,7 @@ dist
# IDE
.idea
.vscode


# Auto generated files
docs/.vuepress/config.js
19 changes: 17 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,26 @@ The core team will review your pull request and will either merge it, request ch
cd docs
```

6. Make sure all dependencies are installed, then run the server:
6. Make sure all dependencies are installed

```bash
yarn && yarn dev
yarn
```

7. Start the documentation server

```bash
# Launch the full documentation
yarn dev

# Launch only the developer docs
yarn dev:developer

# Launch only the user docs
yarn dev:user
```



#### 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/).
Expand Down
25 changes: 15 additions & 10 deletions docs/.vuepress/config.js → docs/.vuepress/config-backup.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* This file is the backyup the old config.js one.
* @Piwi & @DerrickMehaffy I'll let you decide if you want to keep it.
*/

const sidebar = {
developer: [
{
Expand Down Expand Up @@ -449,10 +454,10 @@ const sidebar = {
['/developer-docs/latest/guides/scheduled-publication', 'Scheduled publication'],
// ['/developer-docs/latest/guides/secure-your-app', 'Secure your application'],
// ['/developer-docs/latest/guides/send-email', 'Send email programmatically'],
// [
// '/developer-docs/latest/guides/registering-a-field-in-admin',
// 'Registering a new field in the admin panel',
// ],
[
'/developer-docs/latest/guides/registering-a-field-in-admin',
'Registering a new field in the admin panel',
],
// ['/developer-docs/latest/guides/client', 'Setup a third party client'],
['/developer-docs/latest/guides/unit-testing', 'Unit testing'],
],
Expand Down Expand Up @@ -492,11 +497,11 @@ const sidebar = {
},
{
collapsable: false,
title: 'Content-Type Builder',
title: 'Content-type Builder',
children: [
[
'/user-docs/latest/content-types-builder/introduction-to-content-types-builder',
'Introduction to the Content-Type Builder',
'Introduction to the Content-type Builder',
],
[
'/user-docs/latest/content-types-builder/creating-new-content-type',
Expand Down Expand Up @@ -693,7 +698,6 @@ module.exports = {
port: 8080,
description: 'The headless CMS developers love.',
base: '/',
plugins: plugins,
head: [
[
'link',
Expand Down Expand Up @@ -844,7 +848,7 @@ module.exports = {
link: '/user-docs/latest/content-manager/introduction-to-content-manager.html',
},
{
text: 'Content-Type Builder',
text: 'Content-type Builder',
link:
'/user-docs/latest/content-types-builder/introduction-to-content-types-builder.html',
},
Expand Down Expand Up @@ -874,8 +878,8 @@ module.exports = {
],
},
{
text: 'v3 Documentation',
link: 'https://docs-v3.strapi.io'
text: 'v3 documentation',
link: 'https://docs-v3.strapi.io',
},
{
text: 'Ecosystem',
Expand Down Expand Up @@ -958,4 +962,5 @@ module.exports = {
md.use(require('markdown-it-include'));
},
},
plugins: plugins,
};
6 changes: 6 additions & 0 deletions docs/.vuepress/config/markdown.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const markdown = {
extendMarkdown: md => {
// use more markdown-it plugins!
md.use(require('markdown-it-include'));
},
};
108 changes: 108 additions & 0 deletions docs/.vuepress/config/metas.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
const metas = {
title: '',
port: 8080,
description: 'The headless CMS developers love.',
base: '/',
head: [
[
'link',
{
rel: 'icon',
href: 'https://strapi.io/assets/favicon-32x32.png',
},
],
[
'meta',
{
property: 'og:title',
content: 'Strapi Documentation',
},
],
[
'meta',
{
property: 'og:type',
content: 'article',
},
],
[
'meta',
{
property: 'og:url',
content: 'https://strapi.io/documentation/',
},
],
[
'meta',
{
property: 'og:description',
content: 'The headless CMS developers love.',
},
],
[
'meta',
{
property: 'og:image',
content: 'https://strapi.io/documentation/assets/meta.png',
},
],
[
'meta',
{
property: 'og:article:author',
content: 'strapi',
},
],
[
'meta',
{
property: 'twitter:card',
content: 'summary_large_image',
},
],
[
'meta',
{
property: 'twitter:url',
content: 'https://strapi.io/documentation/',
},
],
[
'meta',
{
property: 'twitter:site',
content: '@strapijs',
},
],
[
'meta',
{
property: 'twitter:title',
content: 'Strapi Documentation',
},
],
[
'meta',
{
property: 'twitter:description',
content: 'The headless CMS developers love.',
},
],
[
'meta',
{
property: 'twitter:image',
content: 'http://strapi.io/assets/images/strapi-website-preview.png',
},
],
[
'script',
{},
`(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-KN9JRWG');`,
],
],
extraWatchFiles: [
'.vuepress/config/sidebar-developer.js',
'.vuepress/config/sidebar-user.js',
]
};
1 change: 1 addition & 0 deletions docs/.vuepress/config/patterns-developer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
const patterns = ['**/*.md', '!**/user-docs/**/*.md', '!node_modules'];
8 changes: 8 additions & 0 deletions docs/.vuepress/config/patterns-user.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const patterns = [
'**/*.md',
'!**/developer-docs/**/*.md',
// We import the homepage of the documentation from the developer documentation,
// without this when launching the doc it redirects to the 404 page.
'**/developer-docs/latest/getting-started/introduction.md',
'!node_modules',
];
124 changes: 124 additions & 0 deletions docs/.vuepress/config/plugins.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
const checklinksIgnoredFiles = [
'**/node_modules', // please never remove this one
/**
* Caution: Adding an individual file to this section
* will prevent the _whole_ file from being scanned for broken links.
*
* Currently, there is no easy way to ignore a specific link inside a file.
*/

/**
* Files below give false positives
*/
'./developer-docs/latest/developer-resources/plugin-api-reference/admin-panel.md',
'./developer-docs/latest/developer-resources/database-apis-reference/entity-service/filter.md',
'./developer-docs/latest/development/backend-customization/models.md',
'./developer-docs/latest/guides/count-graphql.md', // might be removed once GraphQL customization is ready
'./developer-docs/latest/setup-deployment-guides/configurations.md', // the script thinks filename[]() at line 977 is a real link
'./developer-docs/latest/development/backend-customization/webhooks.md', // 'missing" links are in commented part of file
];

const plugins = [
['vuepress-plugin-element-tabs', {}],
[
'check-md',
{
ignore: checklinksIgnoredFiles,
},
],
[
'seo',
{
siteTitle: (_, $site) => $site.title,
title: $page => $page.title,
},
],
['@vuepress/medium-zoom'],
[
'vuepress-plugin-code-copy',
{
color: '#ffffff',
successText: 'Copied to clipboard!',
},
],
['@vuepress/back-to-top', {}],
[
'vuepress-plugin-container',
{
type: 'callout',
defaultTitle: '',
},
],
[
'vuepress-plugin-container',
{
type: 'strapi',
defaultTitle: '',
before: info =>
`<div class="custom-block strapi"><p class="custom-block-title">🤓 ${info}</p>`,
after: '</div>',
},
],
[
'vuepress-plugin-container',
{
type: 'tip',
before: info => `<div class="custom-block tip"><p class="custom-block-title">💡 ${info}</p>`,
after: '</div>',
},
],
[
'vuepress-plugin-container',
{
type: 'note',
before: info => `<div class="custom-block note"><p class="custom-block-title">✏️ ${info}</p>`,
after: '</div>',
},
],
[
'vuepress-plugin-container',
{
type: 'caution',
before: info =>
`<div class="custom-block caution"><p class="custom-block-title">✋ ${info}</p>`,
after: '</div>',
},
],
[
'vuepress-plugin-container',
{
type: 'warning',
before: info =>
`<div class="custom-block warning"><p class="custom-block-title">️❗️ ${info}</p>`,
after: '</div>',
},
],
[
'vuepress-plugin-container',
{
type: 'prerequisites',
defaultTitle: 'PREREQUISITES',
},
],
[
'vuepress-plugin-container',
{
type: 'api-call',
defaultTitle: '',
},
],
[
'vuepress-plugin-container',
{
type: 'request',
defaultTitle: 'Request',
},
],
[
'vuepress-plugin-container',
{
type: 'response',
defaultTitle: 'Response',
},
],
];
Loading