feat: add missing docs links

This commit is contained in:
Arman committed 2025-05-05 18:52:19 +02:00
1 parent e865f83fb2
commit 0a17f52d2e
7 files changed
+24 -14

No files matched your search

+9 -8
View File
@@ -32,6 +32,12 @@
let responseTab: 'logs' | 'errors' | 'headers' | 'body' = $state('logs');
let href = $derived(
product === 'site'
? 'https://appwrite.io/docs/products/sites/logs#log-details'
: 'https://appwrite.io/docs/products/functions/develop#logging'
);
onMount(() => {
if (selectedLog?.errors) {
responseTab = 'errors';
@@ -128,8 +134,8 @@
<Input.Helper state="default">
<span>
Missing headers? Check the <Link variant="muted" href="#" external>docs</Link> to
see the supported data and how to log it.
Missing headers? Check the <Link variant="muted" {href} external>docs</Link> to see
the supported data and how to log it.
</span>
</Input.Helper>
{:else}
@@ -146,12 +152,7 @@
Body data is not captured by Appwrite for your user's security and privacy. To
display body data in the Logs tab, use <InlineCode
code="context.log()"
size="s" />. <Link
external
href="https://appwrite.io/docs/products/functions/develop#logging"
variant="muted">
Learn more</Link
>.
size="s" />. <Link external {href} variant="muted">Learn more</Link>.
</Typography.Text>
</Card>
{/if}
@@ -122,7 +122,9 @@
<Modal title="Create Git deployment" bind:show onSubmit={createDeployment} bind:error>
<span slot="description">
Enter a valid commit reference to create a new deployment. <Link href="#">Learn more</Link>
Enter a valid commit reference to create a new deployment. <Link
href="https://appwrite.io/docs/products/functions/deployments#create-deployment"
external>Learn more</Link>
</span>
{#if hasRepository}
{#await load()}
@@ -122,7 +122,11 @@
{#if secretVariables?.length > 0}
<Alert.Inline status="info">
{secretVariables.length} secret variables are hidden from the editor. Their values will
remain unchanged. <Link href="#" variant="muted">Learn more</Link>.
remain unchanged. <Link
href="https://appwrite.io/docs/products/sites/develop#accessing-environment-variables"
external
variant="muted">Learn more</Link
>.
</Alert.Inline>
{/if}
<Layout.Stack gap="s">
@@ -127,7 +127,9 @@
<Modal title="Create Git deployment" bind:show onSubmit={createDeployment} bind:error>
<span slot="description">
Enter a valid commit reference to create a new deployment. <Link href="#">Learn more</Link>
Enter a valid commit reference to create a new deployment. <Link
href="https://appwrite.io/docs/products/sites/deployments#create-deployment"
external>Learn more</Link>
</span>
{#if hasRepository}
{#await load()}
@@ -58,7 +58,7 @@
<svelte:fragment slot="actions">
<Button
external
href="#/"
href="https://appwrite.io/docs/products/sites/domains#add-a-custom-domain"
text
event="empty_documentation"
size="s"
@@ -54,7 +54,8 @@
<Modal title="Instant rollback" bind:show onSubmit={handleSubmit}>
<svelte:fragment slot="description">
Rollback is only available for deployments that are <b>ready and previously active</b>. <Link
href="#/">Learn more</Link
href="https://appwrite.io/docs/products/sites/deployments#instant-rollback"
external>Learn more</Link
>.
</svelte:fragment>
<Layout.Stack gap="xl">
@@ -55,7 +55,7 @@
<svelte:fragment slot="actions">
<Button
external
href="#"
href="https://appwrite.io/docs/products/sites/logs"
secondary
event="empty_documentation"
size="s"