From fc25117d78c0633d50376fe19ea5ca13f9213760 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Fri, 6 Jun 2025 11:17:44 +0200 Subject: [PATCH] fix(docs): enterprise image zoom (#10081) Co-authored-by: melindafekete --- .../docs/how-to/how-to-create-feature-toggles.md | 14 ++------------ .../api/legacy/unleash/admin/features-v2.mdx | 4 ++-- website/docs/reference/rbac.md | 8 ++++---- website/docusaurus.config.ts | 1 + 4 files changed, 9 insertions(+), 18 deletions(-) diff --git a/website/docs/how-to/how-to-create-feature-toggles.md b/website/docs/how-to/how-to-create-feature-toggles.md index 86215723b5..62d34d5a3f 100644 --- a/website/docs/how-to/how-to-create-feature-toggles.md +++ b/website/docs/how-to/how-to-create-feature-toggles.md @@ -127,18 +127,8 @@ In the strategy configuration screen for the strategy that you want to configure :::info -This can be done at any point after you've created your flag. +This can be done at any point, during or after the creation of your flag. ::: -:::tip API: add variants - -Use the [create variants endpoint](/reference/api/unleash/overwrite-feature-variants) to create or overwrite existing variants in all environments. The payload should be your desired variant configuration. - -::: - -[Variants](../reference/feature-toggle-variants) give you the ability to further target your users and split them into groups of your choosing, such as for A/B testing. On the flag overview page, select the variants tab. Use the "new variant" button to add the variants that you want. - -![](/img/create-toggle-add-variants.png) - -[^1]: Prior to Unleash 4.21, "create/edit variants" was a project-level permission instead of an environment-level permission. +[Variants](../reference/strategy-variants) give you the ability to further target your users and split them into groups of your choosing, such as for A/B testing. On the flag overview page, select the variants tab. Use the "new variant" button to add the variants that you want. diff --git a/website/docs/reference/api/legacy/unleash/admin/features-v2.mdx b/website/docs/reference/api/legacy/unleash/admin/features-v2.mdx index a0b9e5cd9d..749eaf34e5 100644 --- a/website/docs/reference/api/legacy/unleash/admin/features-v2.mdx +++ b/website/docs/reference/api/legacy/unleash/admin/features-v2.mdx @@ -707,9 +707,9 @@ Content-Type: application/json; charset=utf-8 :::caution -This API documentation is no longer maintained. You should use the [OpenAPI docs for this endpoint](/docs/reference/api/unleash/overwrite-feature-variants.api.mdx) instead. +This API documentation is no longer maintained. Use [OpenAPI docs for this endpoint](/reference/api/unleash/overwrite-feature-variants-on-environments) instead. -This endpoint affects all environments at once. If you only want to update a single environment, use the [operation for updating variants per environment](/docs/reference/api/unleash/overwrite-feature-variants-on-environments.api.mdx) instead. +This endpoint affects all environments at once. If you only want to update a single environment, use the [operation for updating variants per environment](/reference/api/unleash/overwrite-feature-variants-on-environments) instead. ::: diff --git a/website/docs/reference/rbac.md b/website/docs/reference/rbac.md index dbe69985b4..7b2f70f584 100644 --- a/website/docs/reference/rbac.md +++ b/website/docs/reference/rbac.md @@ -352,8 +352,8 @@ group. This can be done by navigating to the Unleash group you want to enable sy the "SSO group ID/name" property. [^1]: The project-level permission is still required for the [**create/overwrite variants -** (PUT)](/docs/reference/api/unleash/overwrite-feature-variants.api.mdx) and [**update variants -** (PATCH)](/docs/reference/api/unleash/patch-feature-variants.api.mdx) API endpoints, but it is not used for anything +** (PUT)](/reference/api/unleash/overwrite-feature-variants) and [**update variants +** (PATCH)](/reference/api/unleash/patch-feature-variants) API endpoints, but it is not used for anything within the admin UI. The API endpoints have been superseded by the [**create/overwrite environment variants -** (PUT)](/docs/reference/api/unleash/overwrite-feature-variants-on-environments.api.mdx) and [**update environment -variants** (PATCH)](/docs/reference/api/unleash/patch-environments-feature-variants.api.mdx) endpoints, respectively. +** (PUT)](/reference/api/unleash/overwrite-feature-variants-on-environments) and [**update environment +variants** (PATCH)](/reference/api/unleash/patch-environments-feature-variants) endpoints, respectively. diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index cbe4541a27..15da86264d 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -403,6 +403,7 @@ class="header-github-link" imageZoom: { // Optional medium-zoom options at // https://www.npmjs.com/package/medium-zoom#options + selector: '.markdown :not(p) > img', options: { background: 'var(--ifm-background-color)', },