-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add strapi:generate template command #308
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/strapijs/documentation/DBCdJvhgguwNmvSZbK7H5P7v7hXE |
182c383
to
eac4c4c
Compare
I think we should also update the docs on how to create a template, especially the step-by-step guide |
Thanks @remidej I'll do that now. |
@markkaylor can you sign the CLA please 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
strapi generate:template <path> | ||
``` | ||
|
||
- **strapi generate:template <path>**<br/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
You can create this file structure by hand or generate it via the [CLI](/documentation/developer-docs/latest/developer-resources/cli/CLI.html#strapi-generate-template) | ||
|
||
:::: tabs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a FYI (please don't change your PR content for now):
We will switch to more compact/prettier tabs. This is going to be experimented with the upcoming rewritten Quick Start Guide.
We'll use VuePress code groups for a end result like this:
Just so you know for upcoming PRs :-) Thank you!
@@ -133,9 155,7 @@ After reading the above rules, follow these steps to create your template: | |||
|
|||
1. Create a standard Strapi app with `create-strapi-app`, using the `--quickstart` option. | |||
2. Customize your app to match the needs of your use case. | |||
3. Outside of Strapi, create a new directory for your template. | |||
4. Create a `template.json` file in your template directory. | |||
3. Generate your template by running `strapi generate:template <path>` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add a link to the the corresponding section in the CLI guide here
(the other file you updated in this PR)
Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for the contribution @markkaylor
I've just added a few comments to update to minor things.
And then it will be OK for me. Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks Mark!
38baa70
to
2dfe696
Compare
What does it do?
Documentation for strapi generate:template
Related issue(s)/PR(s)
strapi/strapi#10331