Skip to content

Commit

Permalink
Add .md extension to links
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Aug 2, 2024
1 parent 20cbc19 commit a8d14ad
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
16 changes: 8 additions & 8 deletions docs/api/acs/systems/list.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
description: "Returns a list of all [access control systems](../../../capability-guides/access-systems).
description: "Returns a list of all [access control systems](../../../capability-guides/access-systems.md).
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 @@ -8,7 +8,7 @@ response includes all access control systems connected to your workspace."

# List ACS Systems

Returns a list of all [access control systems](../../../capability-guides/access-systems).
Returns a list of all [access control systems](../../../capability-guides/access-systems.md).

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 Down Expand Up @@ -48,23 +48,23 @@ response includes all access control systems connected to your workspace.
</tr>
<tr>
<td><code>can_add_acs_users_to_acs_access_groups</code></td>
<td>Indicates whether the `acs_system` supports [adding users to access groups](../../../capability-guides/access-systems/assigning-users-to-access-groups#add-an-acs-user-to-an-access-group). See also [Access Group-based Access Control Systems](../../../capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems).</td>
<td>Indicates whether the `acs_system` supports [adding users to access groups](../../../capability-guides/access-systems/assigning-users-to-access-groups#add-an-acs-user-to-an-access-group.md). See also [Access Group-based Access Control Systems](../../../capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems.md).</td>
</tr>
<tr>
<td><code>can_automate_enrollment</code></td>
<td>Indicates whether it is possible to [launch enrollment automations](../../../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) for the `acs_system`.</td>
<td>Indicates whether it is possible to [launch enrollment automations](../../../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.md) for the `acs_system`.</td>
</tr>
<tr>
<td><code>can_create_acs_access_groups</code></td>
<td>Indicates whether the `acs_system` supports creating [access groups](../../../capability-guides/access-systems/assigning-users-to-access-groups). See also [Access Group-based Access Control Systems](../../../capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems).</td>
<td>Indicates whether the `acs_system` supports creating [access groups](../../../capability-guides/access-systems/assigning-users-to-access-groups.md). See also [Access Group-based Access Control Systems](../../../capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems.md).</td>
</tr>
<tr>
<td><code>can_remove_acs_users_from_acs_access_groups</code></td>
<td>Indicates whether the `acs_system` supports [removing users from access groups](../../../capability-guides/access-systems/assigning-users-to-access-groups#remove-an-acs-user-from-an-access-group). See also [Access Group-based Access Control Systems](../../../capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems).</td>
<td>Indicates whether the `acs_system` supports [removing users from access groups](../../../capability-guides/access-systems/assigning-users-to-access-groups#remove-an-acs-user-from-an-access-group.md). See also [Access Group-based Access Control Systems](../../../capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems.md).</td>
</tr>
<tr>
<td><code>connected_account_ids</code></td>
<td>IDs of the [connected accounts](../../../core-concepts/connected-accounts) associated with the `acs_system`.</td>
<td>IDs of the [connected accounts](../../../core-concepts/connected-accounts.md) associated with the `acs_system`.</td>
</tr>
<tr>
<td><code>created_at</code></td>
Expand Down Expand Up @@ -112,7 +112,7 @@ response includes all access control systems connected to your workspace.
</tr>
<tr>
<td><code>workspace_id</code></td>
<td>ID of the [workspace](../../../core-concepts/workspaces) that contains the `acs_system`.</td>
<td>ID of the [workspace](../../../core-concepts/workspaces.md) that contains the `acs_system`.</td>
</tr>
</tbody>
</table>
Expand Down
12 changes: 8 additions & 4 deletions src/lib/reference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import {

const sdks = ['javascript']

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

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

type File = EndpointTemplateContext & { layout: string }
Expand Down Expand Up @@ -53,10 +55,12 @@ export const postprocess = (
for (const [name, file] of Object.entries(files)) {
const contents = file.contents.toString('utf-8')
file.contents = Buffer.from(
contents.replaceAll(
'https://docs.seam.co/latest/',
new Array(name.split('/').length).fill('').join('../'),
),
contents
.replaceAll(new RegExp(`(${baseUrl}[^)]+)`, 'g'), '$1.md')
.replaceAll(
baseUrl,
new Array(name.split('/').length).fill('').join('../'),
),
)
}
}

0 comments on commit a8d14ad

Please sign in to comment.