Skip to content

Commit

Permalink
Add data-internal-link attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-balitskyi committed Aug 9, 2024
1 parent 928f9ea commit a50bc42
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
12 changes: 6 additions & 6 deletions docs/api-clients/access-control-systems/systems/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<h3>can_add_acs_users_to_acs_access_groups</h3>
</header>
<div>
<p>Indicates whether the `acs_system` supports <a href="https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups#add-an-acs-user-to-an-access-group">adding users to access groups</a>. See also <a href="https://docs.seam.co/latest/capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems">Access Group-based Access Control Systems</a>.</p>
<p>Indicates whether the `acs_system` supports <a href="../../../capability-guides/access-systems/assigning-users-to-access-groups#add-an-acs-user-to-an-access-group" data-internal-link>adding users to access groups</a>. See also <a href="../../../capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems" data-internal-link>Access Group-based Access Control Systems</a>.</p>
<div>
<span>Format:</span>
<span>boolean</span>
Expand All @@ -32,7 +32,7 @@
<h3>can_automate_enrollment</h3>
</header>
<div>
<p>Indicates whether it is possible to <a href="https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut">launch enrollment automations</a> for the `acs_system`.</p>
<p>Indicates whether it is possible to <a href="../../../capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut" data-internal-link>launch enrollment automations</a> for the `acs_system`.</p>
<div>
<span>Format:</span>
<span>boolean</span>
Expand All @@ -44,7 +44,7 @@
<h3>can_create_acs_access_groups</h3>
</header>
<div>
<p>Indicates whether the `acs_system` supports creating <a href="https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups">access groups</a>. See also <a href="https://docs.seam.co/latest/capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems">Access Group-based Access Control Systems</a>.</p>
<p>Indicates whether the `acs_system` supports creating <a href="../../../capability-guides/access-systems/assigning-users-to-access-groups" data-internal-link>access groups</a>. See also <a href="../../../capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems" data-internal-link>Access Group-based Access Control Systems</a>.</p>
<div>
<span>Format:</span>
<span>boolean</span>
Expand All @@ -56,7 +56,7 @@
<h3>can_remove_acs_users_from_acs_access_groups</h3>
</header>
<div>
<p>Indicates whether the `acs_system` supports <a href="https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups#remove-an-acs-user-from-an-access-group">removing users from access groups</a>. See also <a href="https://docs.seam.co/latest/capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems">Access Group-based Access Control Systems</a>.</p>
<p>Indicates whether the `acs_system` supports <a href="../../../capability-guides/access-systems/assigning-users-to-access-groups#remove-an-acs-user-from-an-access-group" data-internal-link>removing users from access groups</a>. See also <a href="../../../capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems" data-internal-link>Access Group-based Access Control Systems</a>.</p>
<div>
<span>Format:</span>
<span>boolean</span>
Expand All @@ -68,7 +68,7 @@
<h3>connected_account_ids</h3>
</header>
<div>
<p>IDs of the <a href="https://docs.seam.co/latest/core-concepts/connected-accounts">connected accounts</a> associated with the `acs_system`.</p>
<p>IDs of the <a href="../../../core-concepts/connected-accounts" data-internal-link>connected accounts</a> associated with the `acs_system`.</p>
<div>
<span>Format:</span>
<span>list</span>
Expand Down Expand Up @@ -214,7 +214,7 @@
<h3>workspace_id</h3>
</header>
<div>
<p>ID of the <a href="https://docs.seam.co/latest/core-concepts/workspaces">workspace</a> that contains the `acs_system`.</p>
<p>ID of the <a href="../../../core-concepts/workspaces" data-internal-link>workspace</a> that contains the `acs_system`.</p>
<div>
<span>Format:</span>
<span>string</span>
Expand Down
14 changes: 7 additions & 7 deletions docs/api/acs/systems/list.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# List ACS Systems

Returns a list of all <a href="https://docs.seam.co/latest/capability-guides/access-systems">access control systems</a>.
Returns a list of all <a href="../../../capability-guides/access-systems" data-internal-link>access control systems</a>.

To filter the list of returned access control systems by a specific connected account ID, include the
`connected_account_id` in the request body. If you omit the `connected_account_id` parameter, the
Expand All @@ -20,15 +20,15 @@ ID of the connected account by which to filter the list of returned access contr
**acs_system_id**
ID of the `acs_system`.
**can_add_acs_users_to_acs_access_groups**
Indicates whether the `acs_system` supports <a href="https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups#add-an-acs-user-to-an-access-group">adding users to access groups</a>. See also <a href="https://docs.seam.co/latest/capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems">Access Group-based Access Control Systems</a>.
Indicates whether the `acs_system` supports <a href="../../../capability-guides/access-systems/assigning-users-to-access-groups#add-an-acs-user-to-an-access-group" data-internal-link>adding users to access groups</a>. See also <a href="../../../capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems" data-internal-link>Access Group-based Access Control Systems</a>.
**can_automate_enrollment**
Indicates whether it is possible to <a href="https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut">launch enrollment automations</a> for the `acs_system`.
Indicates whether it is possible to <a href="../../../capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut" data-internal-link>launch enrollment automations</a> for the `acs_system`.
**can_create_acs_access_groups**
Indicates whether the `acs_system` supports creating <a href="https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups">access groups</a>. See also <a href="https://docs.seam.co/latest/capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems">Access Group-based Access Control Systems</a>.
Indicates whether the `acs_system` supports creating <a href="../../../capability-guides/access-systems/assigning-users-to-access-groups" data-internal-link>access groups</a>. See also <a href="../../../capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems" data-internal-link>Access Group-based Access Control Systems</a>.
**can_remove_acs_users_from_acs_access_groups**
Indicates whether the `acs_system` supports <a href="https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups#remove-an-acs-user-from-an-access-group">removing users from access groups</a>. See also <a href="https://docs.seam.co/latest/capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems">Access Group-based Access Control Systems</a>.
Indicates whether the `acs_system` supports <a href="../../../capability-guides/access-systems/assigning-users-to-access-groups#remove-an-acs-user-from-an-access-group" data-internal-link>removing users from access groups</a>. See also <a href="../../../capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems" data-internal-link>Access Group-based Access Control Systems</a>.
**connected_account_ids**
IDs of the <a href="https://docs.seam.co/latest/core-concepts/connected-accounts">connected accounts</a> associated with the `acs_system`.
IDs of the <a href="../../../core-concepts/connected-accounts" data-internal-link>connected accounts</a> associated with the `acs_system`.
**created_at**
Date and time at which the `acs_system` was created.
**errors**
Expand All @@ -52,7 +52,7 @@ Name of the `acs_system`.
**warnings**

**workspace_id**
ID of the <a href="https://docs.seam.co/latest/core-concepts/workspaces">workspace</a> that contains the `acs_system`.
ID of the <a href="../../../core-concepts/workspaces" data-internal-link>workspace</a> that contains the `acs_system`.

## Samples

Expand Down
14 changes: 7 additions & 7 deletions src/lib/reference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {

const sdks = ['javascript']

// const baseUrl = 'https://docs.seam.co/latest/'
const baseUrl = 'https://docs.seam.co/latest/'

type Metadata = Partial<Pick<Blueprint, 'routes' | 'resources'>>

Expand Down Expand Up @@ -63,17 +63,17 @@ export const postprocess = (
files: Metalsmith.Files,
_metalsmith: Metalsmith,
): void => {
for (const [_, file] of Object.entries(files)) {
for (const [name, file] of Object.entries(files)) {
const contents = file.contents.toString('utf-8')
file.contents = Buffer.from(
contents
// .replaceAll(
// baseUrl,
// new Array(name.split('/').length).fill('').join('../'),
// )
.replaceAll(
baseUrl,
new Array(name.split('/').length).fill('').join('../'),
)
.replace(
/\[([^\]]+)\]\(([^)]+)\)/g,
(_, text, link) => `<a href="${link}">${text}</a>`,
(_, text, link) => `<a href="${link}" data-internal-link>${text}</a>`,
),
)
}
Expand Down

0 comments on commit a50bc42

Please sign in to comment.