UI: Fix remaining DocLink paths (#20070)

* fix remaining doclinks

* add changelog

* Apply suggestions from code review

fix links
This commit is contained in:
claire bontempo 2023-04-10 17:26:50 -06:00 committed by GitHub
parent 194ce13a95
commit 45737ddd3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 22 additions and 19 deletions

3
changelog/20070.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
ui: fixes remaining doc links to include /vault in path
```

View File

@ -20,7 +20,7 @@
<AlertInline @paddingTop={{true}} @sizeSmall={{true}} @type="danger" data-test-keymgmt-error="key">
{{this.validMatchError.key}}
To check compatibility,
<DocLink class="doc-link-subtle" @path="/docs/secrets/key-management#compatibility">refer to this table</DocLink>.
<DocLink class="doc-link-subtle" @path="/vault/docs/secrets/key-management#compatibility">refer to this table</DocLink>.
</AlertInline>
{{/if}}
</SearchSelect>
@ -54,7 +54,7 @@
<AlertInline @paddingTop={{true}} @sizeSmall={{true}} @type="danger" data-test-keymgmt-error="new-key">
{{this.validMatchError.key}}
To check compatibility,
<DocLink class="doc-link-subtle" @path="/docs/secrets/key-management#compatibility">refer to this table</DocLink>.
<DocLink class="doc-link-subtle" @path="/vault/docs/secrets/key-management#compatibility">refer to this table</DocLink>.
</AlertInline>
{{/if}}
</div>
@ -81,7 +81,7 @@
<AlertInline @paddingTop={{true}} @sizeSmall={{true}} @type="danger" data-test-keymgmt-error="provider">
{{this.validMatchError.provider}}
To check compatibility,
<DocLink class="doc-link-subtle" @path="/docs/secrets/key-management#compatibility">refer to this table</DocLink>.
<DocLink class="doc-link-subtle" @path="/vault/docs/secrets/key-management#compatibility">refer to this table</DocLink>.
</AlertInline>
{{/if}}
</SearchSelect>

View File

@ -31,7 +31,7 @@
An enforcement will define which auth types, auth mounts, groups, and/or entities will require this MFA method. Keep in
mind that only one of these conditions needs to be satisfied. For example, if an authentication method is added here,
all entities and groups which make use of that authentication method will be subject to an MFA request.
<DocLink @path="/docs/auth/login-mfa">Learn more here.</DocLink>
<DocLink @path="/vault/docs/auth/login-mfa">Learn more here.</DocLink>
{{/if}}
</p>
{{#if @isInline}}

View File

@ -100,7 +100,7 @@
{{/if}}
<p class="has-top-margin-m">
The full list of template parameters can be found
<DocLink @path="/docs/concepts/oidc-provider#scopes">
<DocLink @path="/vault/docs/concepts/oidc-provider#scopes">
here.
</DocLink>
</p>

View File

@ -252,7 +252,7 @@
<T.Content @defaultClass="tool-tip smaller-font">
<div class="box" data-test-hover-copy-tooltip-text>
Deleting a CA is only available via the CLI and API.
<DocLink @path="/api-docs/secret/pki#delete-issuer" class="doc-link-subtle">
<DocLink @path="/vault/api-docs/secret/pki#delete-issuer" class="doc-link-subtle">
Learn more
</DocLink>
</div>

View File

@ -3,7 +3,7 @@
@title="Version {{@modelForData.version}} of this secret has been permanently destroyed"
@message="A version that has been permanently deleted cannot be restored. You can see other versions of this secret in the History menu."
>
<DocLink @path="/docs/secrets/kv/kv-v2.html">
<DocLink @path="/vault/docs/secrets/kv/kv-v2">
Learn more
</DocLink>
</EmptyState>
@ -13,7 +13,7 @@
@message="A version that has been deleted but can be undeleted using the Version {{@modelForData.version}} menu above.
You can also see other versions of this secret in the History menu."
>
<DocLink @path="/docs/secrets/kv/kv-v2.html">
<DocLink @path="/vault/docs/secrets/kv/kv-v2">
Learn more
</DocLink>
</EmptyState>

View File

@ -20,7 +20,7 @@
</span>
{{/if}}
<span>
<DocLink @path="/docs/index.html" class="has-text-grey">
<DocLink @path="/vault" class="has-text-grey">
Documentation
</DocLink>
</span>

View File

@ -21,7 +21,7 @@
{{#if (not (includes this.model.type (supported-managed-auth-backends)))}}
<div class="has-text-grey has-top-bottom-margin" data-test-doc-link>
The Vault UI only supports configuration for this authentication method. For management, the
<DocLink @path="/api/auth">API or CLI</DocLink>
<DocLink @path="/vault/api-docs">API or CLI</DocLink>
should be used.
</div>
{{/if}}

View File

@ -28,7 +28,7 @@
<h3 class="is-size-4 has-text-semibold">Settings</h3>
<p class="has-border-top-light has-top-padding-l">
{{this.description}}
<DocLink @path={{concat "/api-docs/secret/identity/mfa/" this.type}}>Learn more.</DocLink>
<DocLink @path={{concat "/vault/api-docs/secret/identity/mfa/" this.type}}>Learn more.</DocLink>
</p>
<Mfa::MethodForm @model={{this.method}} @validations={{this.methodErrors}} class="is-box-shadowless" />
<Mfa::MfaLoginEnforcementHeader
@ -49,7 +49,7 @@
<p>
Multi-factor authentication (MFA) allows you to set up another layer of security on top of existing authentication
methods. Vault has four available methods.
<DocLink @path="/api-docs/secret/identity/mfa">Learn more.</DocLink>
<DocLink @path="/vault/api-docs/secret/identity/mfa">Learn more.</DocLink>
</p>
<div class="is-flex-row has-top-margin-xl">
{{#each this.methodNames as |methodName|}}
@ -77,7 +77,7 @@
{{#if this.type}}
<p class="has-top-margin-l">
{{this.description}}
<DocLink @path={{concat "/api-docs/secret/identity/mfa/" this.type}}>Learn more.</DocLink>
<DocLink @path={{concat "/vault/api-docs/secret/identity/mfa/" this.type}}>Learn more.</DocLink>
</p>
{{! in a future release cards may be displayed to choose from either template or custom config for TOTP }}
{{! if template is selected a user could choose a predefined config for common authenticators and the values would be populated on the model }}

View File

@ -23,7 +23,7 @@
{{#if (eq model.name "allow_all")}}
<div class="is-size-8">
This is a built-in assignment that cannot be modified or deleted.
<DocLink @path="/docs/concepts/oidc-provider#assignments">
<DocLink @path="/vault/docs/concepts/oidc-provider#assignments">
Learn more
</DocLink>
</div>

View File

@ -59,7 +59,7 @@
<EmptyState @title="No scopes yet" data-test-oidc-scope-empty-state>
<div>
<p>Use scope to define identity information about the authenticated user.
<DocLink @path="/docs/concepts/oidc-provider#scopes">
<DocLink @path="/vault/docs/concepts/oidc-provider#scopes">
Learn more.
</DocLink>
</p>

View File

@ -15,6 +15,6 @@
<LinkTo @route="vault.cluster.secrets.backend.metadata" @model={{this.model.id}} class="link">
View Metadata
</LinkTo>
<DocLink @path="/api/secret/kv/kv-v2#create-update-metadata">More here</DocLink>
<DocLink @path="/vault/api-docs/secret/kv/kv-v2#create-update-metadata">More here</DocLink>
</EmptyState>
{{/if}}

View File

@ -11,7 +11,7 @@ import ExternalLink from './external-link';
*
* @example
* ```js
<DocLink @path="/docs/secrets/kv/kv-v2.html">Learn about KV v2</DocLink>
<DocLink @path="/vault/docs/secrets/kv/kv-v2.html">Learn about KV v2</DocLink>
* ```
*
* @param {string} path="/" - The path to documentation on developer.hashicorp.com that the component should link to.

View File

@ -31,7 +31,7 @@
<code>X-Vault-Namespace: {{R.namespace.path}}</code>. You can also use
<code>{{R.namespace.path}}</code>
as an API prefix. See
<DocLink @path="/api-docs#namespaces">docs</DocLink>
<DocLink @path="/vault/api-docs#namespaces">docs</DocLink>
for examples.
</NamespaceReminder>
<div id="{{this.elementId}}-swagger" class="swagger-ember"></div>

View File

@ -71,7 +71,7 @@
Add secondary
</LinkTo>
{{/if}}
<DocLink @path="/docs/internals/replication.html">
<DocLink @path="/vault/docs/internals/replication">
Learn more
</DocLink>
</EmptyState>