Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: tweak links

Johnnycf29684882ec
diff --git a/web/src/components/CreateShortcutDialog.tsx b/web/src/components/CreateShortcutDialog.tsx
index f169662a4..179885c74 100644
--- a/web/src/components/CreateShortcutDialog.tsx
+++ b/web/src/components/CreateShortcutDialog.tsx
@@ -117,7 +117,7 @@ function CreateShortcutDialog({ open, onOpenChange, shortcut: initialShortcut, o
<li>
<a
className="text-primary hover:underline"
- href="https://www.usememos.com/docs/getting-started/shortcuts"
+ href="https://www.usememos.com/docs/guides/shortcuts"
target="_blank"
rel="noopener noreferrer"
>
@@ -127,7 +127,7 @@ function CreateShortcutDialog({ open, onOpenChange, shortcut: initialShortcut, o
<li>
<a
className="text-primary hover:underline"
- href="https://www.usememos.com/docs/getting-started/shortcuts#how-to-write-a-filter"
+ href="https://www.usememos.com/docs/guides/shortcuts#how-to-write-a-filter"
target="_blank"
rel="noopener noreferrer"
>
diff --git a/web/src/components/MemoEditor/ActionButton/MarkdownMenu.tsx b/web/src/components/MemoEditor/ActionButton/MarkdownMenu.tsx
index 7b4fcd49a..d8bd801e3 100644
--- a/web/src/components/MemoEditor/ActionButton/MarkdownMenu.tsx
+++ b/web/src/components/MemoEditor/ActionButton/MarkdownMenu.tsx
@@ -88,7 +88,7 @@ const MarkdownMenu = (props: Props) => {
<div className="px-2 -mt-1">
<a
className="text-xs text-primary hover:underline"
- href="https://www.usememos.com/docs/getting-started/content-syntax"
+ href="https://www.usememos.com/docs/guides/content-syntax"
target="_blank"
rel="noopener noreferrer"
>
diff --git a/web/src/components/Settings/AccessTokenSection.tsx b/web/src/components/Settings/AccessTokenSection.tsx
index 5b1905764..8954e7060 100644
--- a/web/src/components/Settings/AccessTokenSection.tsx
+++ b/web/src/components/Settings/AccessTokenSection.tsx
@@ -62,7 +62,6 @@ const AccessTokenSection = () => {
<div className="sm:flex-auto space-y-1">
<p className="flex flex-row justify-start items-center font-medium text-muted-foreground">
{t("setting.access-token-section.title")}
- <LearnMore className="ml-2" url="https://usememos.com/docs/security/access-tokens" />
</p>
<p className="text-sm text-muted-foreground">{t("setting.access-token-section.description")}</p>
</div>
diff --git a/web/src/components/Settings/SSOSection.tsx b/web/src/components/Settings/SSOSection.tsx
index 834776fd6..5a2735b9e 100644
--- a/web/src/components/Settings/SSOSection.tsx
+++ b/web/src/components/Settings/SSOSection.tsx
@@ -1,7 +1,6 @@
import { MoreVerticalIcon } from "lucide-react";
import { useEffect, useState } from "react";
import { toast } from "react-hot-toast";
-import { Link } from "react-router-dom";
import { Button } from "@/components/ui/button";
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "@/components/ui/dropdown-menu";
import { Separator } from "@/components/ui/separator";
@@ -60,7 +59,7 @@ const SSOSection = () => {
<div className="w-full flex flex-row justify-between items-center gap-1">
<div className="flex flex-row items-center gap-1">
<span className="font-mono text-muted-foreground">{t("setting.sso-section.sso-list")}</span>
- <LearnMore url="https://www.usememos.com/docs/advanced-settings/sso" />
+ <LearnMore url="https://www.usememos.com/docs/configuration/authentication" />
</div>
<Button color="primary" onClick={handleCreateIdentityProvider}>
{t("common.create")}
@@ -99,16 +98,6 @@ const SSOSection = () => {
</div>
)}
- <div className="w-full mt-4">
- <p className="text-sm">{t("common.learn-more")}:</p>
- <ul className="list-disc list-inside text-sm ml-4">
- <li>
- <Link className="text-sm text-primary hover:underline" to="https://www.usememos.com/docs/advanced-settings/sso" target="_blank">
- {t("setting.sso-section.single-sign-on")}
- </Link>
- </li>
- </ul>
- </div>
<CreateIdentityProviderDialog
open={isCreateDialogOpen}
onOpenChange={setIsCreateDialogOpen}
diff --git a/web/src/components/Settings/StorageSection.tsx b/web/src/components/Settings/StorageSection.tsx
index fdfbb184e..8216cb8b1 100644
--- a/web/src/components/Settings/StorageSection.tsx
+++ b/web/src/components/Settings/StorageSection.tsx
@@ -3,12 +3,10 @@ import { HelpCircleIcon } from "lucide-react";
import { observer } from "mobx-react-lite";
import React, { useEffect, useMemo, useState } from "react";
import { toast } from "react-hot-toast";
-import { Link } from "react-router-dom";
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group";
-import { Separator } from "@/components/ui/separator";
import { Switch } from "@/components/ui/switch";
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";
import { workspaceStore } from "@/store";
@@ -247,30 +245,6 @@ const StorageSection = observer(() => {
{t("common.save")}
</Button>
</div>
- <Separator className="my-2" />
- <div className="w-full mt-4">
- <p className="text-sm">{t("common.learn-more")}:</p>
- <ul className="text-sm list-disc ml-4 space-y-1">
- <li>
- <Link
- className="text-sm text-primary hover:underline"
- to="https://www.usememos.com/docs/advanced-settings/local-storage"
- target="_blank"
- >
- Docs - Local storage
- </Link>
- </li>
- <li>
- <Link
- className="text-sm text-primary hover:underline"
- to="https://www.usememos.com/blog/choosing-a-storage-for-your-resource"
- target="_blank"
- >
- Choosing a Storage for Your Resource: Database, S3 or Local Storage?
- </Link>
- </li>
- </ul>
- </div>
</div>
);
});
diff --git a/web/src/components/Settings/UserSessionsSection.tsx b/web/src/components/Settings/UserSessionsSection.tsx
index 9d6e47a03..af085f83d 100644
--- a/web/src/components/Settings/UserSessionsSection.tsx
+++ b/web/src/components/Settings/UserSessionsSection.tsx
@@ -74,7 +74,6 @@ const UserSessionsSection = () => {
<div className="sm:flex-auto space-y-1">
<p className="flex flex-row justify-start items-center font-medium text-muted-foreground">
{t("setting.user-sessions-section.title")}
- <LearnMore className="ml-2" url="https://usememos.com/docs/security/sessions" />
</p>
<p className="text-sm text-muted-foreground">{t("setting.user-sessions-section.description")}</p>
</div>
diff --git a/web/src/components/Settings/WebhookSection.tsx b/web/src/components/Settings/WebhookSection.tsx
index 8ce8a0a42..78e22a148 100644
--- a/web/src/components/Settings/WebhookSection.tsx
+++ b/web/src/components/Settings/WebhookSection.tsx
@@ -106,7 +106,7 @@ const WebhookSection = () => {
<div className="w-full mt-2">
<Link
className="text-muted-foreground text-sm inline-flex flex-row justify-start items-center hover:underline hover:text-primary"
- to="https://usememos.com/docs/advanced-settings/webhook"
+ to="https://www.usememos.com/docs/integrations/webhooks"
target="_blank"
>
{t("common.learn-more")}
diff --git a/web/src/components/Settings/WorkspaceSection.tsx b/web/src/components/Settings/WorkspaceSection.tsx
index 1a090af0e..4f324dc02 100644
--- a/web/src/components/Settings/WorkspaceSection.tsx
+++ b/web/src/components/Settings/WorkspaceSection.tsx
@@ -110,16 +110,6 @@ const WorkspaceSection = observer(() => {
value={workspaceGeneralSetting.additionalScript}
onChange={(event) => updatePartialSetting({ additionalScript: event.target.value })}
/>
- <div className="w-full">
- <Link
- className="text-muted-foreground text-sm flex flex-row justify-start items-center hover:underline hover:text-primary"
- to="https://usememos.com/docs/advanced-settings/custom-style-and-script"
- target="_blank"
- >
- {t("common.learn-more")}
- <ExternalLinkIcon className="inline w-4 h-auto ml-1" />
- </Link>
- </div>
<div className="w-full flex flex-row justify-between items-center">
<span>{t("setting.workspace-section.disallow-user-registration")}</span>
<Switch