diff --git a/frontend/src/component/admin/apiToken/CreateApiToken/CreateApiToken.tsx b/frontend/src/component/admin/apiToken/CreateApiToken/CreateApiToken.tsx index 6c1318847f..cfa908bf8e 100644 --- a/frontend/src/component/admin/apiToken/CreateApiToken/CreateApiToken.tsx +++ b/frontend/src/component/admin/apiToken/CreateApiToken/CreateApiToken.tsx @@ -78,7 +78,8 @@ export const CreateApiToken = () => { loading={loading} title="Create Api Token" description="In order to connect to Unleash clients will need an API token to grant access. A client SDK will need to token with 'client privileges', which allows them to fetch feature toggle configuration and post usage metrics back." - documentationLink="https://docs.getunleash.io/user_guide/api-token" + documentationLink="https://docs.getunleash.io/reference/api-tokens-and-client-keys" + documentationLinkLabel="API tokens documentation" formatApiCode={formatApiCode} > { description="A project role can be customised to limit access to resources within a project" - documentationLink="https://docs.getunleash.io/how-to/how-to-create-and-assign-custom-project-roles" + documentationLink="https://docs.getunleash.io/user_guide/rbac#custom-project-roles" + documentationLinkLabel="Project roles documentation" formatApiCode={formatApiCode} > { description="A project role can be customised to limit access to resources within a project" - documentationLink="https://docs.getunleash.io/how-to/how-to-create-and-assign-custom-project-roles" + documentationLink="https://docs.getunleash.io/user_guide/rbac#custom-project-roles" + documentationLinkLabel="Project roles documentation" formatApiCode={formatApiCode} > { title="Create Unleash user" description="In order to get access to Unleash needs to have an Unleash root role as Admin, Editor or Viewer. You can also add the user to projects as member or owner in the specific projects." - documentationLink="https://docs.getunleash.io/user_guide/user-management" + documentationLink="https://docs.getunleash.io/user_guide/rbac#standard-roles" + documentationLinkLabel="User management documentation" formatApiCode={formatApiCode} > { title="Edit user" description="In order to get access to Unleash needs to have an Unleash root role as Admin, Editor or Viewer. You can also add the user to projects as member or owner in the specific projects." - documentationLink="https://docs.getunleash.io/user_guide/user-management" + documentationLink="https://docs.getunleash.io/user_guide/rbac#standard-roles" + documentationLinkLabel="User management documentation" formatApiCode={formatApiCode} > string; diff --git a/frontend/src/component/context/CreateUnleashContext/CreateUnleashContext.tsx b/frontend/src/component/context/CreateUnleashContext/CreateUnleashContext.tsx index 4d7c017d9d..91df0464f9 100644 --- a/frontend/src/component/context/CreateUnleashContext/CreateUnleashContext.tsx +++ b/frontend/src/component/context/CreateUnleashContext/CreateUnleashContext.tsx @@ -77,7 +77,8 @@ export const CreateUnleashContext = ({ title="Create context" description="Context fields are a basic building block used in Unleash to control roll-out. They can be used together with strategy constraints as part of the activation strategy evaluation." - documentationLink="https://docs.getunleash.io/how-to/how-to-define-custom-context-fields" + documentationLink="https://docs.getunleash.io/user_guide/unleash_context#custom-context-fields" + documentationLinkLabel="Context fields documentation" formatApiCode={formatApiCode} modal={modal} > diff --git a/frontend/src/component/context/EditContext/EditContext.tsx b/frontend/src/component/context/EditContext/EditContext.tsx index 7675f0fe51..4b72e0dffd 100644 --- a/frontend/src/component/context/EditContext/EditContext.tsx +++ b/frontend/src/component/context/EditContext/EditContext.tsx @@ -79,7 +79,8 @@ export const EditContext = () => { title="Edit context" description="Context fields are a basic building block used in Unleash to control roll-out. They can be used together with strategy constraints as part of the activation strategy evaluation." - documentationLink="https://docs.getunleash.io/how-to/how-to-define-custom-context-fields" + documentationLink="https://docs.getunleash.io/user_guide/unleash_context#custom-context-fields" + documentationLinkLabel="Context fields documentation" formatApiCode={formatApiCode} > { enabling the feature toggle in the production environment." documentationLink="https://docs.getunleash.io/user_guide/environments" + documentationLinkLabel="Environments documentation" formatApiCode={formatApiCode} > { enabling the feature toggle in the production environment." documentationLink="https://docs.getunleash.io/user_guide/environments" + documentationLinkLabel="Environments documentation" formatApiCode={formatApiCode} > { description="Feature toggles support different use cases, each with their own specific needs such as simple static routing or more complex routing. The feature toggle is disabled when created and you decide when to enable" documentationLink="https://docs.getunleash.io/advanced/feature_toggle_types" + documentationLinkLabel="Feature toggle types documentation" formatApiCode={formatApiCode} > { description="Feature toggles support different use cases, each with their own specific needs such as simple static routing or more complex routing. The feature toggle is disabled when created and you decide when to enable" documentationLink="https://docs.getunleash.io/advanced/feature_toggle_types" + documentationLinkLabel="Feature toggle types documentation" formatApiCode={formatApiCode} > { title={formatStrategyName(strategyName)} description={featureStrategyHelp} documentationLink={featureStrategyDocsLink} + documentationLinkLabel={featureStrategyDocsLinkLabel} formatApiCode={() => formatAddStrategyApiCode( projectId, diff --git a/frontend/src/component/feature/FeatureStrategy/FeatureStrategyEdit/FeatureStrategyEdit.tsx b/frontend/src/component/feature/FeatureStrategy/FeatureStrategyEdit/FeatureStrategyEdit.tsx index 0166731c6b..dc37a1823f 100644 --- a/frontend/src/component/feature/FeatureStrategy/FeatureStrategyEdit/FeatureStrategyEdit.tsx +++ b/frontend/src/component/feature/FeatureStrategy/FeatureStrategyEdit/FeatureStrategyEdit.tsx @@ -90,6 +90,7 @@ export const FeatureStrategyEdit = () => { title={formatStrategyName(strategy.name ?? '')} description={featureStrategyHelp} documentationLink={featureStrategyDocsLink} + documentationLinkLabel={featureStrategyDocsLinkLabel} formatApiCode={() => formatUpdateStrategyApiCode( projectId, @@ -170,3 +171,5 @@ export const featureStrategyHelp = ` export const featureStrategyDocsLink = 'https://docs.getunleash.io/user_guide/activation_strategy'; + +export const featureStrategyDocsLinkLabel = 'Strategies documentation'; diff --git a/frontend/src/component/project/Project/CreateProject/CreateProject.tsx b/frontend/src/component/project/Project/CreateProject/CreateProject.tsx index 6384fa6291..9d8e34fa53 100644 --- a/frontend/src/component/project/Project/CreateProject/CreateProject.tsx +++ b/frontend/src/component/project/Project/CreateProject/CreateProject.tsx @@ -74,6 +74,7 @@ const CreateProject = () => { title="Create project" description="Projects allows you to group feature toggles together in the management UI." documentationLink="https://docs.getunleash.io/user_guide/projects" + documentationLinkLabel="Projects documentation" formatApiCode={formatApiCode} > { title="Edit project" description="Projects allows you to group feature toggles together in the management UI." documentationLink="https://docs.getunleash.io/user_guide/projects" + documentationLinkLabel="Projects documentation" formatApiCode={formatApiCode} > { title="Create segment" description={segmentsFormDescription} documentationLink={segmentsDocsLink} - documentationLinkLabel="More about segments" + documentationLinkLabel="Segments documentation" formatApiCode={formatApiCode} > { title="Edit segment" description={segmentsFormDescription} documentationLink={segmentsDocsLink} - documentationLinkLabel="More about segments" + documentationLinkLabel="Segments documentation" formatApiCode={formatApiCode} > { description="The strategy type and the parameters will be selectable when adding an activation strategy to a toggle in the environments. The parameter defines the type of activation strategy. E.g. you can create a type 'Teams' and add a parameter 'List'. Then it's easy to add team names to the activation strategy" documentationLink="https://docs.getunleash.io/advanced/custom_activation_strategy" + documentationLinkLabel="Custom strategies documentation" formatApiCode={formatApiCode} > { description="The strategy type and the parameters will be selectable when adding an activation strategy to a toggle in the environments. The parameter defines the type of activation strategy. E.g. you can create a type 'Teams' and add a parameter 'List'. Then it's easy to add team names to the activation strategy" documentationLink="https://docs.getunleash.io/advanced/custom_activation_strategy" + documentationLinkLabel="Custom strategies documentation" formatApiCode={formatApiCode} > { title="Create tag type" description="Tag types allow you to group tags together in the management UI" documentationLink="https://docs.getunleash.io/advanced/tags" + documentationLinkLabel="Tags documentation" formatApiCode={formatApiCode} > { title="Edit tag type" description="Tag types allow you to group tags together in the management UI" documentationLink="https://docs.getunleash.io/" + documentationLinkLabel="Tags documentation" formatApiCode={formatApiCode} >