Skip to content

Commit

Permalink
feat: update email template docs (#1840)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas authored Aug 29, 2024
1 parent 45bc02d commit 05936e4
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 11 deletions.
19 changes: 15 additions & 4 deletions docs/kratos/emails-sms/05_custom-email-templates.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,27 @@ To read more about registration via a one-time code, read the [one-time code](..

## Using custom message templates

You can use custom templates in place of built-in ones. If you don't specify a custom template, the system automatically uses the
built-in one.
Templates can be customized to fit your own branding and requirements. If you don't customize a specific template, the system
automatically uses the built-in template.

```mdx-code-block
<Tabs>
<TabItem value="console" label="Ory Console" default>
```

1. Go to <ConsoleLink route="project.emailConfiguration" />
2. Select the email template you want to customize from the **Email Templates** section at the bottom of the page.
1. Go to <ConsoleLink route="project.emailTemplates" />
2. Select the email template you want to customize.

:::info

The recovery & verification templates only show the versions for the method (**One time code** or **link**) you have selected in
the flow configuration.

- <ConsoleLink route="project.recovery" />

- <ConsoleLink route="project.verification" />

:::

```mdx-code-block
</TabItem>
Expand Down
22 changes: 15 additions & 7 deletions src/components/ConsoleLink/console-nav-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export type Path = {
export type RootPath = Path & {
paths?: Path[]
}

export type Paths = RootPath[]

export const getStartedPaths: Path[] = [
Expand Down Expand Up @@ -68,11 +69,10 @@ export const brandingPaths: Path[] = [
title: "Email configuration",
href: routes.project.emailConfiguration.route,
},
// TODO(jonas): re-add once email configuration is fully done https://github.com/ory-corp/cloud/issues/4867
// {
// title: "Email templates",
// href: routes.project.emailTemplates.route,
// },
{
title: "Email templates",
href: routes.project.emailTemplates.route,
},
]

export const authenticationPaths: Path[] = [
Expand Down Expand Up @@ -154,13 +154,17 @@ export const projectSettingsPaths: Path[] = [
href: routes.project.developers.route,
},
{
title: "Collaborators",
title: "Members",
href: routes.project.settings.collaborators.route,
},
{
title: "Advanced",
href: routes.project.settings.advanced.route,
},
{
title: "Plans & Billing",
href: routes.project.settings.billing.route,
},
]

export const userSettingsPaths: Path[] = [
Expand Down Expand Up @@ -249,7 +253,11 @@ const workspaceSettings: Path[] = [
{ title: "Members", href: routes.workspace.settings.members.route },
{ title: "API keys", href: routes.workspace.settings.apiKeys.route },
{
title: "Plans & billing",
title: "Plans and subscription",
href: routes.workspace.settings.subscription.route,
},
{
title: "Usage and billing",
href: routes.workspace.settings.billing.route,
},
]
Expand Down

0 comments on commit 05936e4

Please sign in to comment.