Skip to content

Commit

Permalink
branding docs improvements (#333)
Browse files Browse the repository at this point in the history
Co-authored-by: Rita Zerrizuela <[email protected]>
  • Loading branch information
aaguiarz and Widcket authored Jul 12, 2021
1 parent 27afbb7 commit 25196bd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
Binary file added docs/images/templates-storybook.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/templates-vs-code.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 16 additions & 1 deletion internal/cli/branding.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,22 @@ func templateCmd(cli *cli) *cobra.Command {
cmd := &cobra.Command{
Use: "templates",
Short: "Manage custom page templates",
Long: "Manage custom page templates. This requires at least one custom domain to be configured for the tenant.",
Long: `Manage custom [page templates](https://auth0.com/docs/universal-login/new-experience/universal-login-page-templates). This requires a custom domain to be configured for the tenant.
This command will open two windows:
* A browser window with a [Storybook](https://storybook.js.org/) that shows the login page with the page template applied:
![storybook](images/templates-storybook.png)
* The default terminal editor, with the page template code:
![storybook](images/templates-vs-code.png)
You now change the page template code, and the changes will be reflected in the browser window.
Once you close the window, you’ll be asked if you want to save the template. If you answer Yes, the template will be uploaded to your tenant.
`,
}

cmd.SetUsageTemplate(resourceUsageTemplate())
Expand Down

0 comments on commit 25196bd

Please sign in to comment.