Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: check and update doc links (#30849)
Stephen Zhou061feebd8709
diff --git a/web/README.md b/web/README.mdindex 13780eec6c9..9c731a081ac 100644--- a/web/README.md+++ b/web/README.md@@ -138,7 +138,7 @@ This will help you determine the testing strategy. See [web/testing/testing.md](## Documentation-Visit <https://docs.dify.ai/getting-started/readme> to view the full documentation.+Visit <https://docs.dify.ai> to view the full documentation.## Communitydiff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/card-view.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/card-view.tsxindex 81b4f2474e3..f07b2932c90 100644--- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/card-view.tsx+++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/card-view.tsx@@ -5,7 +5,6 @@ import type { BlockEnum } from '@/app/components/workflow/types'import type { UpdateAppSiteCodeResponse } from '@/models/app'import type { App } from '@/types/app'import type { I18nKeysByPrefix } from '@/types/i18n'-import * as React from 'react'import { useCallback, useMemo } from 'react'import { useTranslation } from 'react-i18next'import { useContext } from 'use-context-selector'@@ -17,7 +16,6 @@ import { ToastContext } from '@/app/components/base/toast'import MCPServiceCard from '@/app/components/tools/mcp/mcp-service-card'import { isTriggerNode } from '@/app/components/workflow/types'import { NEED_REFRESH_APP_LIST_KEY } from '@/config'-import { useDocLink } from '@/context/i18n'import {fetchAppDetail,updateAppSiteAccessToken,@@ -36,7 +34,6 @@ export type ICardViewProps = {const CardView: FC<ICardViewProps> = ({ appId, isInPanel, className }) => {const { t } = useTranslation()- const docLink = useDocLink()const { notify } = useContext(ToastContext)const appDetail = useAppStore(state => state.appDetail)const setAppDetail = useAppStore(state => state.setAppDetail)@@ -59,25 +56,13 @@ const CardView: FC<ICardViewProps> = ({ appId, isInPanel, className }) => {const shouldRenderAppCards = !isWorkflowApp || hasTriggerNode === falseconst disableAppCards = !shouldRenderAppCards- const triggerDocUrl = docLink('/guides/workflow/node/start')const buildTriggerModeMessage = useCallback((featureName: string) => (<div className="flex flex-col gap-1"><div className="text-xs text-text-secondary">{t('overview.disableTooltip.triggerMode', { ns: 'appOverview', feature: featureName })}</div>- <a- href={triggerDocUrl}- target="_blank"- rel="noopener noreferrer"- className="block cursor-pointer text-xs font-medium text-text-accent hover:underline"- onClick={(event) => {- event.stopPropagation()- }}- >- {t('overview.appInfo.enableTooltip.learnMore', { ns: 'appOverview' })}- </a></div>- ), [t, triggerDocUrl])+ ), [t])const disableWebAppTooltip = disableAppCards? buildTriggerModeMessage(t('overview.appInfo.title', { ns: 'appOverview' }))diff --git a/web/app/components/app/configuration/config-prompt/conversation-history/history-panel.tsx b/web/app/components/app/configuration/config-prompt/conversation-history/history-panel.tsxindex b0b042b2a5b..44c4fc8f462 100644--- a/web/app/components/app/configuration/config-prompt/conversation-history/history-panel.tsx+++ b/web/app/components/app/configuration/config-prompt/conversation-history/history-panel.tsx@@ -5,7 +5,6 @@ import { useTranslation } from 'react-i18next'import Panel from '@/app/components/app/configuration/base/feature-panel'import OperationBtn from '@/app/components/app/configuration/base/operation-btn'import { MessageClockCircle } from '@/app/components/base/icons/src/vender/solid/general'-import { useDocLink } from '@/context/i18n'type Props = {showWarning: boolean@@ -17,8 +16,6 @@ const HistoryPanel: FC<Props> = ({onShowEditModal,}) => {const { t } = useTranslation()- const docLink = useDocLink()-return (<PanelclassName="mt-2"@@ -45,14 +42,6 @@ const HistoryPanel: FC<Props> = ({<div className="flex justify-between rounded-b-xl bg-background-section-burn px-3 py-2 text-xs text-text-secondary"><div>{t('feature.conversationHistory.tip', { ns: 'appDebug' })}- <a- href={docLink('/learn-more/extended-reading/what-is-llmops', { 'zh-Hans': '/learn-more/extended-reading/prompt-engineering/README' })}- target="_blank"- rel="noopener noreferrer"- className="text-[#155EEF]"- >- {t('feature.conversationHistory.learnMore', { ns: 'appDebug' })}- </a></div></div>)}diff --git a/web/app/components/app/configuration/dataset-config/settings-modal/retrieval-section.spec.tsx b/web/app/components/app/configuration/dataset-config/settings-modal/retrieval-section.spec.tsxindex 0d7b705d9e3..2140afe1dd2 100644--- a/web/app/components/app/configuration/dataset-config/settings-modal/retrieval-section.spec.tsx+++ b/web/app/components/app/configuration/dataset-config/settings-modal/retrieval-section.spec.tsx@@ -1,5 +1,6 @@import type { DataSet } from '@/models/datasets'import type { RetrievalConfig } from '@/types/app'+import type { DocPathWithoutLang } from '@/types/doc-paths'import { render, screen } from '@testing-library/react'import userEvent from '@testing-library/user-event'import { IndexingType } from '@/app/components/datasets/create/step-two'@@ -237,15 +238,15 @@ describe('RetrievalSection', () => {retrievalConfig={retrievalConfig}showMultiModalTiponRetrievalConfigChange={vi.fn()}- docLink={docLink}+ docLink={docLink as unknown as (path?: DocPathWithoutLang) => string}/>,)// Assertexpect(screen.getByText('dataset.retrieval.semantic_search.title')).toBeInTheDocument()const learnMoreLink = screen.getByRole('link', { name: 'datasetSettings.form.retrievalSetting.learnMore' })- expect(learnMoreLink).toHaveAttribute('href', 'https://docs.example/guides/knowledge-base/create-knowledge-and-upload-documents/setting-indexing-methods#setting-the-retrieval-setting')- expect(docLink).toHaveBeenCalledWith('/guides/knowledge-base/create-knowledge-and-upload-documents/setting-indexing-methods#setting-the-retrieval-setting')+ expect(learnMoreLink).toHaveAttribute('href', 'https://docs.example/use-dify/knowledge/create-knowledge/setting-indexing-methods')+ expect(docLink).toHaveBeenCalledWith('/use-dify/knowledge/create-knowledge/setting-indexing-methods')})it('propagates retrieval config changes for economical indexing', async () => {@@ -263,7 +264,7 @@ describe('RetrievalSection', () => {retrievalConfig={createRetrievalConfig()}showMultiModalTip={false}onRetrievalConfigChange={handleRetrievalChange}- docLink={path => path}+ docLink={path => path || ''}/>,)const [topKIncrement] = screen.getAllByLabelText('increment')diff --git a/web/app/components/app/configuration/dataset-config/settings-modal/retrieval-section.tsx b/web/app/components/app/configuration/dataset-config/settings-modal/retrieval-section.tsxindex 6c9bd14d1e4..6d478de9087 100644--- a/web/app/components/app/configuration/dataset-config/settings-modal/retrieval-section.tsx+++ b/web/app/components/app/configuration/dataset-config/settings-modal/retrieval-section.tsx@@ -1,6 +1,7 @@import type { FC } from 'react'import type { DataSet } from '@/models/datasets'import type { RetrievalConfig } from '@/types/app'+import type { DocPathWithoutLang } from '@/types/doc-paths'import { RiCloseLine } from '@remixicon/react'import Divider from '@/app/components/base/divider'import { AlertTriangle } from '@/app/components/base/icons/src/vender/solid/alertsAndFeedback'@@ -84,7 +85,7 @@ type InternalRetrievalSectionProps = CommonSectionProps & {retrievalConfig: RetrievalConfigshowMultiModalTip: booleanonRetrievalConfigChange: (value: RetrievalConfig) => void- docLink: (path: string) => string+ docLink: (path?: DocPathWithoutLang) => string}const InternalRetrievalSection: FC<InternalRetrievalSectionProps> = ({@@ -102,7 +103,7 @@ const InternalRetrievalSection: FC<InternalRetrievalSectionProps> = ({<div><div className="system-sm-semibold text-text-secondary">{t('form.retrievalSetting.title', { ns: 'datasetSettings' })}</div><div className="text-xs font-normal leading-[18px] text-text-tertiary">- <a target="_blank" rel="noopener noreferrer" href={docLink('/guides/knowledge-base/create-knowledge-and-upload-documents/setting-indexing-methods#setting-the-retrieval-setting')} className="text-text-accent">{t('form.retrievalSetting.learnMore', { ns: 'datasetSettings' })}</a>+ <a target="_blank" rel="noopener noreferrer" href={docLink('/use-dify/knowledge/create-knowledge/setting-indexing-methods')} className="text-text-accent">{t('form.retrievalSetting.learnMore', { ns: 'datasetSettings' })}</a>{t('form.retrievalSetting.description', { ns: 'datasetSettings' })}</div></div>diff --git a/web/app/components/app/configuration/tools/external-data-tool-modal.tsx b/web/app/components/app/configuration/tools/external-data-tool-modal.tsxindex 71827c4e0de..fece5598e1d 100644--- a/web/app/components/app/configuration/tools/external-data-tool-modal.tsx+++ b/web/app/components/app/configuration/tools/external-data-tool-modal.tsx@@ -240,7 +240,7 @@ const ExternalDataToolModal: FC<ExternalDataToolModalProps> = ({<div className="flex h-9 items-center justify-between text-sm font-medium text-text-primary">{t('apiBasedExtension.selector.title', { ns: 'common' })}<a- href={docLink('/guides/extension/api-based-extension/README')}+ href={docLink('/use-dify/workspace/api-extension/api-extension')}target="_blank"rel="noopener noreferrer"className="group flex items-center text-xs font-normal text-text-tertiary hover:text-text-accent"diff --git a/web/app/components/app/create-app-modal/index.tsx b/web/app/components/app/create-app-modal/index.tsxindex 6e8c94aea6b..e2b50cf0309 100644--- a/web/app/components/app/create-app-modal/index.tsx+++ b/web/app/components/app/create-app-modal/index.tsx@@ -5,7 +5,6 @@ import { RiArrowRightLine, RiArrowRightSLine, RiCommandLine, RiCornerDownLeftLinimport { useDebounceFn, useKeyPress } from 'ahooks'import Image from 'next/image'-import Link from 'next/link'import { useRouter } from 'next/navigation'import { useCallback, useEffect, useRef, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -22,7 +21,6 @@ import { ToastContext } from '@/app/components/base/toast'import AppsFull from '@/app/components/billing/apps-full-in-dialog'import { NEED_REFRESH_APP_LIST_KEY } from '@/config'import { useAppContext } from '@/context/app-context'-import { useDocLink } from '@/context/i18n'import { useProviderContext } from '@/context/provider-context'import useTheme from '@/hooks/use-theme'import { createApp } from '@/service/apps'@@ -346,41 +344,26 @@ function AppTypeCard({ icon, title, description, active, onClick }: AppTypeCardPfunction AppPreview({ mode }: { mode: AppModeEnum }) {const { t } = useTranslation()- const docLink = useDocLink()const modeToPreviewInfoMap = {[AppModeEnum.CHAT]: {title: t('types.chatbot', { ns: 'app' }),description: t('newApp.chatbotUserDescription', { ns: 'app' }),- link: docLink('/guides/application-orchestrate/chatbot-application'),},[AppModeEnum.ADVANCED_CHAT]: {title: t('types.advanced', { ns: 'app' }),description: t('newApp.advancedUserDescription', { ns: 'app' }),- link: docLink('/guides/workflow/README', {- 'zh-Hans': '/guides/workflow/readme',- 'ja-JP': '/guides/workflow/concepts',- }),},[AppModeEnum.AGENT_CHAT]: {title: t('types.agent', { ns: 'app' }),description: t('newApp.agentUserDescription', { ns: 'app' }),- link: docLink('/guides/application-orchestrate/agent'),},[AppModeEnum.COMPLETION]: {title: t('newApp.completeApp', { ns: 'app' }),description: t('newApp.completionUserDescription', { ns: 'app' }),- link: docLink('/guides/application-orchestrate/text-generator', {- 'zh-Hans': '/guides/application-orchestrate/readme',- 'ja-JP': '/guides/application-orchestrate/README',- }),},[AppModeEnum.WORKFLOW]: {title: t('types.workflow', { ns: 'app' }),description: t('newApp.workflowUserDescription', { ns: 'app' }),- link: docLink('/guides/workflow/README', {- 'zh-Hans': '/guides/workflow/readme',- 'ja-JP': '/guides/workflow/concepts',- }),},}const previewInfo = modeToPreviewInfoMap[mode]@@ -389,7 +372,6 @@ function AppPreview({ mode }: { mode: AppModeEnum }) {<h4 className="system-sm-semibold-uppercase text-text-secondary">{previewInfo.title}</h4><div className="system-xs-regular mt-1 min-h-8 max-w-96 text-text-tertiary"><span>{previewInfo.description}</span>- {previewInfo.link && <Link target="_blank" href={previewInfo.link} className="ml-1 text-text-accent">{t('newApp.learnMore', { ns: 'app' })}</Link>}</div></div>)diff --git a/web/app/components/app/overview/app-card.tsx b/web/app/components/app/overview/app-card.tsxindex c1a662df5d1..9975c81b3ef 100644--- a/web/app/components/app/overview/app-card.tsx+++ b/web/app/components/app/overview/app-card.tsx@@ -245,7 +245,7 @@ function AppCard({</div><divclassName="cursor-pointer text-xs font-normal text-text-accent hover:underline"- onClick={() => window.open(docLink('/guides/workflow/node/user-input'), '_blank')}+ onClick={() => window.open(docLink('/use-dify/nodes/user-input'), '_blank')}>{t('overview.appInfo.enableTooltip.learnMore', { ns: 'appOverview' })}</div>diff --git a/web/app/components/app/overview/customize/index.tsx b/web/app/components/app/overview/customize/index.tsxindex 77dae81a01b..c7391abe3db 100644--- a/web/app/components/app/overview/customize/index.tsx+++ b/web/app/components/app/overview/customize/index.tsx@@ -118,7 +118,7 @@ const CustomizeModal: FC<IShareLinkProps> = ({className="mt-2"onClick={() =>window.open(- docLink('/guides/application-publishing/developing-with-apis'),+ docLink('/use-dify/publish/developing-with-apis'),'_blank',)}>diff --git a/web/app/components/app/overview/settings/index.tsx b/web/app/components/app/overview/settings/index.tsxindex 428a475da98..0d087e27c29 100644--- a/web/app/components/app/overview/settings/index.tsx+++ b/web/app/components/app/overview/settings/index.tsx@@ -23,7 +23,6 @@ import Textarea from '@/app/components/base/textarea'import { useToastContext } from '@/app/components/base/toast'import Tooltip from '@/app/components/base/tooltip'import { ACCOUNT_SETTING_TAB } from '@/app/components/header/account-setting/constants'-import { useDocLink } from '@/context/i18n'import { useModalContext } from '@/context/modal-context'import { useProviderContext } from '@/context/provider-context'import { languages } from '@/i18n-config/language'@@ -100,7 +99,6 @@ const SettingsModal: FC<ISettingsModalProps> = ({const [language, setLanguage] = useState(default_language)const [saveLoading, setSaveLoading] = useState(false)const { t } = useTranslation()- const docLink = useDocLink()const [showAppIconPicker, setShowAppIconPicker] = useState(false)const [appIcon, setAppIcon] = useState<AppIconSelection>(@@ -240,16 +238,6 @@ const SettingsModal: FC<ISettingsModalProps> = ({</div><div className="system-xs-regular mt-0.5 text-text-tertiary"><span>{t(`${prefixSettings}.modalTip`, { ns: 'appOverview' })}</span>- <Link- href={docLink('/guides/application-publishing/launch-your-webapp-quickly/README', {- 'zh-Hans': '/guides/application-publishing/launch-your-webapp-quickly/readme',- })}- target="_blank"- rel="noopener noreferrer"- className="text-text-accent"- >- {t('operation.learnMore', { ns: 'common' })}- </Link></div></div>{/* form body */}diff --git a/web/app/components/app/overview/trigger-card.tsx b/web/app/components/app/overview/trigger-card.tsxindex a2d28606a17..12a294b4eca 100644--- a/web/app/components/app/overview/trigger-card.tsx+++ b/web/app/components/app/overview/trigger-card.tsx@@ -208,7 +208,7 @@ function TriggerCard({ appInfo, onToggleResult }: ITriggerCardProps) {{t('overview.triggerInfo.triggerStatusDescription', { ns: 'appOverview' })}{' '}<Link- href={docLink('/guides/workflow/node/trigger')}+ href={docLink('/use-dify/nodes/trigger/overview')}target="_blank"rel="noopener noreferrer"className="text-text-accent hover:underline"diff --git a/web/app/components/base/features/new-feature-panel/index.tsx b/web/app/components/base/features/new-feature-panel/index.tsxindex 9e8a2397be9..9ee2f407ebe 100644--- a/web/app/components/base/features/new-feature-panel/index.tsx+++ b/web/app/components/base/features/new-feature-panel/index.tsx@@ -2,7 +2,6 @@ import type { OnFeaturesChange } from '@/app/components/base/features/types'import type { InputVar } from '@/app/components/workflow/types'import type { PromptVariable } from '@/models/debug'import { RiCloseLine, RiInformation2Fill } from '@remixicon/react'-import * as React from 'react'import { useTranslation } from 'react-i18next'import AnnotationReply from '@/app/components/base/features/new-feature-panel/annotation-reply'@@ -18,7 +17,6 @@ import SpeechToText from '@/app/components/base/features/new-feature-panel/speecimport TextToSpeech from '@/app/components/base/features/new-feature-panel/text-to-speech'import { ModelTypeEnum } from '@/app/components/header/account-setting/model-provider-page/declarations'import { useDefaultModel } from '@/app/components/header/account-setting/model-provider-page/hooks'-import { useDocLink } from '@/context/i18n'type Props = {show: boolean@@ -46,7 +44,6 @@ const NewFeaturePanel = ({onAutoAddPromptVariable,}: Props) => {const { t } = useTranslation()- const docLink = useDocLink()const { data: speech2textDefaultModel } = useDefaultModel(ModelTypeEnum.speech2text)const { data: text2speechDefaultModel } = useDefaultModel(ModelTypeEnum.tts)@@ -76,14 +73,6 @@ const NewFeaturePanel = ({</div><div className="system-xs-medium p-1 text-text-primary"><span>{isChatMode ? t('common.fileUploadTip', { ns: 'workflow' }) : t('common.ImageUploadLegacyTip', { ns: 'workflow' })}</span>- <a- className="text-text-accent"- href={docLink('/guides/workflow/bulletin')}- target="_blank"- rel="noopener noreferrer"- >- {t('common.featuresDocLink', { ns: 'workflow' })}- </a></div></div></div>diff --git a/web/app/components/base/features/new-feature-panel/moderation/moderation-setting-modal.tsx b/web/app/components/base/features/new-feature-panel/moderation/moderation-setting-modal.tsxindex 59b62d0bfdb..c9455c98eb9 100644--- a/web/app/components/base/features/new-feature-panel/moderation/moderation-setting-modal.tsx+++ b/web/app/components/base/features/new-feature-panel/moderation/moderation-setting-modal.tsx@@ -319,7 +319,7 @@ const ModerationSettingModal: FC<ModerationSettingModalProps> = ({<div className="flex h-9 items-center justify-between"><div className="text-sm font-medium text-text-primary">{t('apiBasedExtension.selector.title', { ns: 'common' })}</div><a- href={docLink('/guides/extension/api-based-extension/README')}+ href={docLink('/use-dify/workspace/api-extension/api-extension')}target="_blank"rel="noopener noreferrer"className="group flex items-center text-xs text-text-tertiary hover:text-primary-600"diff --git a/web/app/components/datasets/create/step-three/index.spec.tsx b/web/app/components/datasets/create/step-three/index.spec.tsxindex 43b4916778a..74c5912a1b6 100644--- a/web/app/components/datasets/create/step-three/index.spec.tsx+++ b/web/app/components/datasets/create/step-three/index.spec.tsx@@ -190,7 +190,7 @@ describe('StepThree', () => {// Assertconst link = screen.getByText('datasetPipeline.addDocuments.stepThree.learnMore')- expect(link).toHaveAttribute('href', 'https://docs.dify.ai/en-US/guides/knowledge-base/integrate-knowledge-within-application')+ expect(link).toHaveAttribute('href', 'https://docs.dify.ai/en-US/use-dify/knowledge/integrate-knowledge-within-application')expect(link).toHaveAttribute('target', '_blank')expect(link).toHaveAttribute('rel', 'noreferrer noopener')})diff --git a/web/app/components/datasets/create/step-three/index.tsx b/web/app/components/datasets/create/step-three/index.tsxindex ad26711311b..5ab21f6302a 100644--- a/web/app/components/datasets/create/step-three/index.tsx+++ b/web/app/components/datasets/create/step-three/index.tsx@@ -87,7 +87,7 @@ const StepThree = ({ datasetId, datasetName, indexingType, creationCache, retrie<div className="text-base font-semibold text-text-secondary">{t('stepThree.sideTipTitle', { ns: 'datasetCreation' })}</div><div className="text-text-tertiary">{t('stepThree.sideTipContent', { ns: 'datasetCreation' })}</div><a- href={docLink('/guides/knowledge-base/integrate-knowledge-within-application')}+ href={docLink('/use-dify/knowledge/integrate-knowledge-within-application')}target="_blank"rel="noreferrer noopener"className="system-sm-regular text-text-accent"diff --git a/web/app/components/datasets/create/step-two/components/indexing-mode-section.tsx b/web/app/components/datasets/create/step-two/components/indexing-mode-section.tsxindex ee49f429038..b172778f54a 100644--- a/web/app/components/datasets/create/step-two/components/indexing-mode-section.tsx+++ b/web/app/components/datasets/create/step-two/components/indexing-mode-section.tsx@@ -214,7 +214,7 @@ export const IndexingModeSection: FC<IndexingModeSectionProps> = ({<atarget="_blank"rel="noopener noreferrer"- href={docLink('/guides/knowledge-base/create-knowledge-and-upload-documents')}+ href={docLink('/use-dify/knowledge/create-knowledge/setting-indexing-methods')}className="text-text-accent">{t('form.retrievalSetting.learnMore', { ns: 'datasetSettings' })}diff --git a/web/app/components/datasets/documents/components/documents-header.tsx b/web/app/components/datasets/documents/components/documents-header.tsxindex ed97742fdd9..490893d43f0 100644--- a/web/app/components/datasets/documents/components/documents-header.tsx+++ b/web/app/components/datasets/documents/components/documents-header.tsx@@ -121,7 +121,7 @@ const DocumentsHeader: FC<DocumentsHeaderProps> = ({className="flex items-center text-text-accent"target="_blank"rel="noopener noreferrer"- href={docLink('/guides/knowledge-base/integrate-knowledge-within-application')}+ href={docLink('/use-dify/knowledge/integrate-knowledge-within-application')}><span>{t('list.learnMore', { ns: 'datasetDocuments' })}</span><RiExternalLinkLine className="h-3 w-3" />diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-documents/index.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-documents/index.tsxindex 9b0df231bde..4bdaac895b3 100644--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-documents/index.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-documents/index.tsx@@ -138,7 +138,7 @@ const OnlineDocuments = ({<div className="flex flex-col gap-y-2"><HeaderdocTitle="Docs"- docLink={docLink('/guides/knowledge-base/knowledge-pipeline/authorize-data-source')}+ docLink={docLink('/use-dify/knowledge/knowledge-pipeline/authorize-data-source')}onClickConfiguration={handleSetting}pluginName={nodeData.datasource_label}currentCredentialId={currentCredentialId}diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/index.spec.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/index.spec.tsxindex 339e92597e5..fb7fef1cbbe 100644--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/index.spec.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/index.spec.tsx@@ -327,7 +327,7 @@ describe('OnlineDrive', () => {render(<OnlineDrive {...props} />)// Assert- expect(mockDocLink).toHaveBeenCalledWith('/guides/knowledge-base/knowledge-pipeline/authorize-data-source')+ expect(mockDocLink).toHaveBeenCalledWith('/use-dify/knowledge/knowledge-pipeline/authorize-data-source')})})diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/index.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/index.tsxindex 508745aaeb8..4346a2d0af6 100644--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/index.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/online-drive/index.tsx@@ -196,7 +196,7 @@ const OnlineDrive = ({<div className="flex flex-col gap-y-2"><HeaderdocTitle="Docs"- docLink={docLink('/guides/knowledge-base/knowledge-pipeline/authorize-data-source')}+ docLink={docLink('/use-dify/knowledge/knowledge-pipeline/authorize-data-source')}onClickConfiguration={handleSetting}pluginName={nodeData.datasource_label}currentCredentialId={currentCredentialId}diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/index.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/index.tsxindex d9c627475db..b0f25d94b7f 100644--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/index.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/index.tsx@@ -158,7 +158,7 @@ const WebsiteCrawl = ({<div className="flex flex-col"><HeaderdocTitle="Docs"- docLink={docLink('/guides/knowledge-base/knowledge-pipeline/authorize-data-source')}+ docLink={docLink('/use-dify/knowledge/knowledge-pipeline/authorize-data-source')}onClickConfiguration={handleSetting}pluginName={nodeData.datasource_label}currentCredentialId={currentCredentialId}diff --git a/web/app/components/datasets/documents/create-from-pipeline/processing/index.spec.tsx b/web/app/components/datasets/documents/create-from-pipeline/processing/index.spec.tsxindex d9fea934461..554af2a5460 100644--- a/web/app/components/datasets/documents/create-from-pipeline/processing/index.spec.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/processing/index.spec.tsx@@ -159,7 +159,7 @@ describe('Processing', () => {// Assertconst link = screen.getByRole('link', { name: 'datasetPipeline.addDocuments.stepThree.learnMore' })- expect(link).toHaveAttribute('href', 'https://docs.dify.ai/en-US/guides/knowledge-base/integrate-knowledge-within-application')+ expect(link).toHaveAttribute('href', 'https://docs.dify.ai/en-US/use-dify/knowledge/knowledge-pipeline/authorize-data-source')expect(link).toHaveAttribute('target', '_blank')expect(link).toHaveAttribute('rel', 'noreferrer noopener')})diff --git a/web/app/components/datasets/documents/create-from-pipeline/processing/index.tsx b/web/app/components/datasets/documents/create-from-pipeline/processing/index.tsxindex 97c8937442a..283600fa698 100644--- a/web/app/components/datasets/documents/create-from-pipeline/processing/index.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/processing/index.tsx@@ -44,7 +44,7 @@ const Processing = ({<div className="system-xl-semibold text-text-secondary">{t('stepThree.sideTipTitle', { ns: 'datasetCreation' })}</div><div className="system-sm-regular text-text-tertiary">{t('stepThree.sideTipContent', { ns: 'datasetCreation' })}</div><a- href={docLink('/guides/knowledge-base/integrate-knowledge-within-application')}+ href={docLink('/use-dify/knowledge/knowledge-pipeline/authorize-data-source')}target="_blank"rel="noreferrer noopener"className="system-sm-regular text-text-accent"diff --git a/web/app/components/datasets/external-api/external-api-modal/Form.tsx b/web/app/components/datasets/external-api/external-api-modal/Form.tsxindex 5b36df6eb4d..3bf390b8163 100644--- a/web/app/components/datasets/external-api/external-api-modal/Form.tsx+++ b/web/app/components/datasets/external-api/external-api-modal/Form.tsx@@ -57,7 +57,7 @@ const Form: FC<FormProps> = React.memo(({</label>{variable === 'endpoint' && (<a- href={docLink('/guides/knowledge-base/connect-external-knowledge-base') || '/'}+ href={docLink('/use-dify/knowledge/connect-external-knowledge-base') || '/'}target="_blank"rel="noopener noreferrer"className="body-xs-regular flex items-center text-text-accent"diff --git a/web/app/components/datasets/external-api/external-api-panel/index.spec.tsx b/web/app/components/datasets/external-api/external-api-panel/index.spec.tsxindex 55297132a90..0080b3d4577 100644--- a/web/app/components/datasets/external-api/external-api-panel/index.spec.tsx+++ b/web/app/components/datasets/external-api/external-api-panel/index.spec.tsx@@ -63,7 +63,7 @@ describe('ExternalAPIPanel', () => {render(<ExternalAPIPanel {...defaultProps} />)const docLink = screen.getByText('dataset.externalAPIPanelDocumentation')expect(docLink).toBeInTheDocument()- expect(docLink.closest('a')).toHaveAttribute('href', 'https://docs.example.com/guides/knowledge-base/connect-external-knowledge-base')+ expect(docLink.closest('a')).toHaveAttribute('href', 'https://docs.example.com/use-dify/knowledge/connect-external-knowledge-base')})it('should render create button', () => {diff --git a/web/app/components/datasets/external-api/external-api-panel/index.tsx b/web/app/components/datasets/external-api/external-api-panel/index.tsxindex a1373486263..c37ff20ba7c 100644--- a/web/app/components/datasets/external-api/external-api-panel/index.tsx+++ b/web/app/components/datasets/external-api/external-api-panel/index.tsx@@ -54,7 +54,7 @@ const ExternalAPIPanel: React.FC<ExternalAPIPanelProps> = ({ onClose }) => {<div className="body-xs-regular self-stretch text-text-tertiary">{t('externalAPIPanelDescription', { ns: 'dataset' })}</div><aclassName="flex cursor-pointer items-center justify-center gap-1 self-stretch"- href={docLink('/guides/knowledge-base/connect-external-knowledge-base')}+ href={docLink('/use-dify/knowledge/connect-external-knowledge-base')}target="_blank"><RiBookOpenLine className="h-3 w-3 text-text-accent" />diff --git a/web/app/components/datasets/external-knowledge-base/create/InfoPanel.tsx b/web/app/components/datasets/external-knowledge-base/create/InfoPanel.tsxindex beb6a3cf71b..61b37a0a1d1 100644--- a/web/app/components/datasets/external-knowledge-base/create/InfoPanel.tsx+++ b/web/app/components/datasets/external-knowledge-base/create/InfoPanel.tsx@@ -18,14 +18,14 @@ const InfoPanel = () => {</span><span className="system-sm-regular text-text-tertiary">{t('connectDatasetIntro.content.front', { ns: 'dataset' })}- <a className="system-sm-regular ml-1 text-text-accent" href={docLink('/guides/knowledge-base/external-knowledge-api')} target="_blank" rel="noopener noreferrer">+ <a className="system-sm-regular ml-1 text-text-accent" href={docLink('/use-dify/knowledge/external-knowledge-api')} target="_blank" rel="noopener noreferrer">{t('connectDatasetIntro.content.link', { ns: 'dataset' })}</a>{t('connectDatasetIntro.content.end', { ns: 'dataset' })}</span><aclassName="system-sm-regular self-stretch text-text-accent"- href={docLink('/guides/knowledge-base/connect-external-knowledge-base')}+ href={docLink('/use-dify/knowledge/connect-external-knowledge-base')}target="_blank"rel="noopener noreferrer">diff --git a/web/app/components/datasets/external-knowledge-base/create/index.spec.tsx b/web/app/components/datasets/external-knowledge-base/create/index.spec.tsxindex 2fce096cd5f..d56833fd369 100644--- a/web/app/components/datasets/external-knowledge-base/create/index.spec.tsx+++ b/web/app/components/datasets/external-knowledge-base/create/index.spec.tsx@@ -146,7 +146,7 @@ describe('ExternalKnowledgeBaseCreate', () => {renderComponent()const docLink = screen.getByText('dataset.connectHelper.helper4')- expect(docLink).toHaveAttribute('href', 'https://docs.dify.ai/en/guides/knowledge-base/connect-external-knowledge-base')+ expect(docLink).toHaveAttribute('href', 'https://docs.dify.ai/en/use-dify/knowledge/connect-external-knowledge-base')expect(docLink).toHaveAttribute('target', '_blank')expect(docLink).toHaveAttribute('rel', 'noopener noreferrer')})diff --git a/web/app/components/datasets/external-knowledge-base/create/index.tsx b/web/app/components/datasets/external-knowledge-base/create/index.tsxindex 1d17b23b435..07b6e71fa6b 100644--- a/web/app/components/datasets/external-knowledge-base/create/index.tsx+++ b/web/app/components/datasets/external-knowledge-base/create/index.tsx@@ -61,7 +61,7 @@ const ExternalKnowledgeBaseCreate: React.FC<ExternalKnowledgeBaseCreateProps> =<span>{t('connectHelper.helper1', { ns: 'dataset' })}</span><span className="system-sm-medium text-text-secondary">{t('connectHelper.helper2', { ns: 'dataset' })}</span><span>{t('connectHelper.helper3', { ns: 'dataset' })}</span>- <a className="system-sm-regular self-stretch text-text-accent" href={docLink('/guides/knowledge-base/connect-external-knowledge-base')} target="_blank" rel="noopener noreferrer">+ <a className="system-sm-regular self-stretch text-text-accent" href={docLink('/use-dify/knowledge/connect-external-knowledge-base')} target="_blank" rel="noopener noreferrer">{t('connectHelper.helper4', { ns: 'dataset' })}</a><span>diff --git a/web/app/components/datasets/hit-testing/modify-retrieval-modal.tsx b/web/app/components/datasets/hit-testing/modify-retrieval-modal.tsxindex d21297fc932..a942c402ed6 100644--- a/web/app/components/datasets/hit-testing/modify-retrieval-modal.tsx+++ b/web/app/components/datasets/hit-testing/modify-retrieval-modal.tsx@@ -96,10 +96,7 @@ const ModifyRetrievalModal: FC<Props> = ({<atarget="_blank"rel="noopener noreferrer"- href={docLink('/guides/knowledge-base/retrieval-test-and-citation#modify-text-retrieval-setting', {- 'zh-Hans': '/guides/knowledge-base/retrieval-test-and-citation#修改文本检索方式',- 'ja-JP': '/guides/knowledge-base/retrieval-test-and-citation',- })}+ href={docLink('/use-dify/knowledge/create-knowledge/setting-indexing-methods')}className="text-text-accent">{t('form.retrievalSetting.learnMore', { ns: 'datasetSettings' })}diff --git a/web/app/components/datasets/no-linked-apps-panel.tsx b/web/app/components/datasets/no-linked-apps-panel.tsxindex 1b0357bc6ae..12e87a73799 100644--- a/web/app/components/datasets/no-linked-apps-panel.tsx+++ b/web/app/components/datasets/no-linked-apps-panel.tsx@@ -15,7 +15,7 @@ const NoLinkedAppsPanel = () => {<div className="my-2 text-xs text-text-tertiary">{t('datasetMenus.emptyTip', { ns: 'common' })}</div><aclassName="mt-2 inline-flex cursor-pointer items-center text-xs text-text-accent"- href={docLink('/guides/knowledge-base/integrate-knowledge-within-application')}+ href={docLink('/use-dify/knowledge/integrate-knowledge-within-application')}target="_blank"rel="noopener noreferrer">diff --git a/web/app/components/datasets/settings/form/index.tsx b/web/app/components/datasets/settings/form/index.tsxindex 5fbaefade79..a25d7705182 100644--- a/web/app/components/datasets/settings/form/index.tsx+++ b/web/app/components/datasets/settings/form/index.tsx@@ -281,7 +281,7 @@ const Form = () => {<atarget="_blank"rel="noopener noreferrer"- href={docLink('/guides/knowledge-base/create-knowledge-and-upload-documents/chunking-and-cleaning-text')}+ href={docLink('/use-dify/knowledge/create-knowledge/chunking-and-cleaning-text')}className="text-text-accent">{t('form.chunkStructure.learnMore', { ns: 'datasetSettings' })}@@ -421,10 +421,7 @@ const Form = () => {<atarget="_blank"rel="noopener noreferrer"- href={docLink('/guides/knowledge-base/create-knowledge-and-upload-documents/setting-indexing-methods#setting-the-retrieval-setting', {- 'zh-Hans': '/guides/knowledge-base/create-knowledge-and-upload-documents/setting-indexing-methods#指定检索方式',- 'ja-JP': '/guides/knowledge-base/create-knowledge-and-upload-documents/setting-indexing-methods#検索方法の指定',- })}+ href={docLink('/use-dify/knowledge/create-knowledge/setting-indexing-methods')}className="text-text-accent">{t('form.retrievalSetting.learnMore', { ns: 'datasetSettings' })}diff --git a/web/app/components/header/account-dropdown/index.tsx b/web/app/components/header/account-dropdown/index.tsxindex e16c00acd0d..07dd0fca3dd 100644--- a/web/app/components/header/account-dropdown/index.tsx+++ b/web/app/components/header/account-dropdown/index.tsx@@ -137,7 +137,7 @@ export default function AppSelector() {<MenuItem><LinkclassName={cn(itemClassName, 'group justify-between', 'data-[active]:bg-state-base-hover')}- href={docLink('/introduction')}+ href={docLink('/use-dify/getting-started/introduction')}target="_blank"rel="noopener noreferrer">diff --git a/web/app/components/header/account-setting/api-based-extension-page/empty.tsx b/web/app/components/header/account-setting/api-based-extension-page/empty.tsxindex 38525993fa2..d75e66f8d0e 100644--- a/web/app/components/header/account-setting/api-based-extension-page/empty.tsx+++ b/web/app/components/header/account-setting/api-based-extension-page/empty.tsx@@ -17,7 +17,7 @@ const Empty = () => {<div className="system-sm-medium mb-1 text-text-secondary">{t('apiBasedExtension.title', { ns: 'common' })}</div><aclassName="system-xs-regular flex items-center text-text-accent"- href={docLink('/guides/extension/api-based-extension/README')}+ href={docLink('/use-dify/workspace/api-extension/api-extension')}target="_blank"rel="noopener noreferrer">diff --git a/web/app/components/header/account-setting/api-based-extension-page/modal.tsx b/web/app/components/header/account-setting/api-based-extension-page/modal.tsxindex d3146d7baad..f35986dbb0e 100644--- a/web/app/components/header/account-setting/api-based-extension-page/modal.tsx+++ b/web/app/components/header/account-setting/api-based-extension-page/modal.tsx@@ -102,7 +102,7 @@ const ApiBasedExtensionModal: FC<ApiBasedExtensionModalProps> = ({<div className="flex h-9 items-center justify-between text-sm font-medium text-text-primary">{t('apiBasedExtension.modal.apiEndpoint.title', { ns: 'common' })}<a- href={docLink('/user-guide/extension/api-based-extension/README#api-based-extension')}+ href={docLink('/use-dify/workspace/api-extension/api-extension')}target="_blank"rel="noopener noreferrer"className="group flex items-center text-xs font-normal text-text-accent"diff --git a/web/app/components/plugins/plugin-detail-panel/endpoint-list.tsx b/web/app/components/plugins/plugin-detail-panel/endpoint-list.tsxindex e1bd2df4639..357e714ba2c 100644--- a/web/app/components/plugins/plugin-detail-panel/endpoint-list.tsx+++ b/web/app/components/plugins/plugin-detail-panel/endpoint-list.tsx@@ -77,7 +77,7 @@ const EndpointList = ({ detail }: Props) => {</div><div className="system-xs-regular text-text-tertiary">{t('detailPanel.endpointsTip', { ns: 'plugin' })}</div><a- href={docLink('/plugins/schema-definition/endpoint')}+ href={docLink('/develop-plugin/getting-started/getting-started-dify-plugin')}target="_blank"rel="noopener noreferrer">diff --git a/web/app/components/plugins/plugin-page/debug-info.tsx b/web/app/components/plugins/plugin-page/debug-info.tsxindex f62f8a4134d..f3eed424f42 100644--- a/web/app/components/plugins/plugin-page/debug-info.tsx+++ b/web/app/components/plugins/plugin-page/debug-info.tsx@@ -8,8 +8,7 @@ import * as React from 'react'import { useTranslation } from 'react-i18next'import Button from '@/app/components/base/button'import Tooltip from '@/app/components/base/tooltip'-import { getDocsUrl } from '@/app/components/plugins/utils'-import { useLocale } from '@/context/i18n'+import { useDocLink } from '@/context/i18n'import { useDebugKey } from '@/service/use-plugins'import KeyValueItem from '../base/key-value-item'@@ -17,7 +16,7 @@ const i18nPrefix = 'debugInfo'const DebugInfo: FC = () => {const { t } = useTranslation()- const locale = useLocale()+ const docLink = useDocLink()const { data: info, isLoading } = useDebugKey()// info.key likes 4580bdb7-b878-471c-a8a4-bfd760263a53 mask the middle part using *.@@ -34,7 +33,7 @@ const DebugInfo: FC = () => {<><div className="flex items-center gap-1 self-stretch"><span className="system-sm-semibold flex shrink-0 grow basis-0 flex-col items-start justify-center text-text-secondary">{t(`${i18nPrefix}.title`, { ns: 'plugin' })}</span>- <a href={getDocsUrl(locale, '/plugins/quick-start/debug-plugin')} target="_blank" className="flex cursor-pointer items-center gap-0.5 text-text-accent-light-mode-only">+ <a href={docLink('/develop-plugin/features-and-specs/plugin-types/remote-debug-a-plugin')} target="_blank" className="flex cursor-pointer items-center gap-0.5 text-text-accent-light-mode-only"><span className="system-xs-medium">{t(`${i18nPrefix}.viewDocs`, { ns: 'plugin' })}</span><RiArrowRightUpLine className="h-3 w-3" /></a>diff --git a/web/app/components/plugins/plugin-page/index.tsx b/web/app/components/plugins/plugin-page/index.tsxindex d852e4d0b88..efb665197ab 100644--- a/web/app/components/plugins/plugin-page/index.tsx+++ b/web/app/components/plugins/plugin-page/index.tsx@@ -15,10 +15,9 @@ import Button from '@/app/components/base/button'import TabSlider from '@/app/components/base/tab-slider'import Tooltip from '@/app/components/base/tooltip'import ReferenceSettingModal from '@/app/components/plugins/reference-setting-modal'-import { getDocsUrl } from '@/app/components/plugins/utils'import { MARKETPLACE_API_PREFIX, SUPPORT_INSTALL_LOCAL_FILE_EXTENSIONS } from '@/config'import { useGlobalPublicStore } from '@/context/global-public-context'-import { useLocale } from '@/context/i18n'+import { useDocLink } from '@/context/i18n'import useDocumentTitle from '@/hooks/use-document-title'import { usePluginInstallation } from '@/hooks/use-query-params'import { fetchBundleInfoFromMarketPlace, fetchManifestFromMarketPlace } from '@/service/plugins'@@ -47,7 +46,7 @@ const PluginPage = ({marketplace,}: PluginPageProps) => {const { t } = useTranslation()- const locale = useLocale()+ const docLink = useDocLink()useDocumentTitle(t('metadata.title', { ns: 'plugin' }))// Use nuqs hook for installation state@@ -175,7 +174,7 @@ const PluginPage = ({</Button></Link><Link- href={getDocsUrl(locale, '/plugins/publish-plugins/publish-to-dify-marketplace/README')}+ href={docLink('/develop-plugin/publishing/marketplace-listing/release-to-dify-marketplace')}target="_blank"><Buttondiff --git a/web/app/components/plugins/utils.ts b/web/app/components/plugins/utils.tsindex 5d663b21345..e68ad0d9593 100644--- a/web/app/components/plugins/utils.ts+++ b/web/app/components/plugins/utils.ts@@ -2,7 +2,6 @@ import type {TagKey,} from './constants'-import { LanguagesSupported } from '@/i18n-config/language'import {categoryKeys,tagKeys,@@ -15,15 +14,3 @@ export const getValidTagKeys = (tags: TagKey[]) => {export const getValidCategoryKeys = (category?: string) => {return categoryKeys.find(key => key === category)}--export const getDocsUrl = (locale: string, path: string) => {- let localePath = 'en'-- if (locale === LanguagesSupported[1])- localePath = 'zh-hans'-- else if (locale === LanguagesSupported[7])- localePath = 'ja-jp'-- return `https://docs.dify.ai/${localePath}${path}`-}diff --git a/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/popup.tsx b/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/popup.tsxindex b006c9acfbb..0cdc9a0327c 100644--- a/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/popup.tsx+++ b/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/popup.tsx@@ -34,6 +34,7 @@ import {} from '@/app/components/workflow/store'import { getKeyboardKeyCodeBySystem, getKeyboardKeyNameBySystem } from '@/app/components/workflow/utils'import { useDatasetDetailContextWithSelector } from '@/context/dataset-detail'+import { useDocLink } from '@/context/i18n'import { useModalContextSelector } from '@/context/modal-context'import { useProviderContext } from '@/context/provider-context'import { useDatasetApiAccessUrl } from '@/hooks/use-api-access-url'@@ -55,6 +56,7 @@ const Popup = () => {const { t } = useTranslation()const { datasetId } = useParams()const { push } = useRouter()+ const docLink = useDocLink()const publishedAt = useStore(s => s.publishedAt)const draftUpdatedAt = useStore(s => s.draftUpdatedAt)const pipelineId = useStore(s => s.pipelineId)@@ -186,7 +188,7 @@ const Popup = () => {{t('publishTemplate.success.tip', { ns: 'datasetPipeline' })}</span><Link- href="https://docs.dify.ai"+ href={docLink()}target="_blank"className="system-xs-medium-uppercase inline-block text-text-accent">diff --git a/web/app/components/rag-pipeline/hooks/use-available-nodes-meta-data.ts b/web/app/components/rag-pipeline/hooks/use-available-nodes-meta-data.tsindex 0b574145b4a..3720ef388b1 100644--- a/web/app/components/rag-pipeline/hooks/use-available-nodes-meta-data.ts+++ b/web/app/components/rag-pipeline/hooks/use-available-nodes-meta-data.ts@@ -6,11 +6,11 @@ import dataSourceEmptyDefault from '@/app/components/workflow/nodes/data-source-import dataSourceDefault from '@/app/components/workflow/nodes/data-source/default'import knowledgeBaseDefault from '@/app/components/workflow/nodes/knowledge-base/default'import { BlockEnum } from '@/app/components/workflow/types'-import { useGetLanguage } from '@/context/i18n'+import { useDocLink } from '@/context/i18n'export const useAvailableNodesMetaData = () => {const { t } = useTranslation()- const language = useGetLanguage()+ const docLink = useDocLink()const mergedNodesMetaData = useMemo(() => [...WORKFLOW_COMMON_NODES,@@ -25,14 +25,9 @@ export const useAvailableNodesMetaData = () => {dataSourceEmptyDefault,], [])- const helpLinkUri = useMemo(() => {- if (language === 'zh_Hans')- return 'https://docs.dify.ai/zh-hans/guides/knowledge-base/knowledge-pipeline/knowledge-pipeline-orchestration#%E6%AD%A5%E9%AA%A4%E4%B8%80%EF%BC%9A%E6%95%B0%E6%8D%AE%E6%BA%90%E9%85%8D%E7%BD%AE'- if (language === 'ja_JP')- return 'https://docs.dify.ai/ja-jp/guides/knowledge-base/knowledge-pipeline/knowledge-pipeline-orchestration#%E3%82%B9%E3%83%86%E3%83%83%E3%83%971%EF%BC%9A%E3%83%87%E3%83%BC%E3%82%BF%E3%82%BD%E3%83%BC%E3%82%B9%E3%81%AE%E8%A8%AD%E5%AE%9A'-- return 'https://docs.dify.ai/en/guides/knowledge-base/knowledge-pipeline/knowledge-pipeline-orchestration#step-1%3A-data-source'- }, [language])+ const helpLinkUri = useMemo(() => docLink(+ '/use-dify/knowledge/knowledge-pipeline/knowledge-pipeline-orchestration',+ ), [docLink])const availableNodesMetaData = useMemo(() => mergedNodesMetaData.map((node) => {const { metaData } = nodediff --git a/web/app/components/tools/mcp/create-card.tsx b/web/app/components/tools/mcp/create-card.tsxindex 7a0496d7c3e..6029c856a43 100644--- a/web/app/components/tools/mcp/create-card.tsx+++ b/web/app/components/tools/mcp/create-card.tsx@@ -8,8 +8,7 @@ import {import { useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'import { useAppContext } from '@/context/app-context'-import { useLocale } from '@/context/i18n'-import { getLanguage } from '@/i18n-config/language'+import { useDocLink } from '@/context/i18n'import { useCreateMCP } from '@/service/use-tools'import MCPModal from './modal'@@ -19,8 +18,7 @@ type Props = {const NewMCPCard = ({ handleCreate }: Props) => {const { t } = useTranslation()- const locale = useLocale()- const language = getLanguage(locale)+ const docLink = useDocLink()const { isCurrentWorkspaceManager } = useAppContext()const { mutateAsync: createMCP } = useCreateMCP()@@ -30,13 +28,7 @@ const NewMCPCard = ({ handleCreate }: Props) => {handleCreate(provider)}- const linkUrl = useMemo(() => {- if (language.startsWith('zh_'))- return 'https://docs.dify.ai/zh-hans/guides/tools/mcp'- if (language.startsWith('ja_jp'))- return 'https://docs.dify.ai/ja_jp/guides/tools/mcp'- return 'https://docs.dify.ai/en/guides/tools/mcp'- }, [language])+ const linkUrl = useMemo(() => docLink('/use-dify/build/mcp'), [docLink])const [showModal, setShowModal] = useState(false)diff --git a/web/app/components/tools/mcp/mcp-service-card.tsx b/web/app/components/tools/mcp/mcp-service-card.tsxindex fc6de3bc3d9..d0c0a1664ac 100644--- a/web/app/components/tools/mcp/mcp-service-card.tsx+++ b/web/app/components/tools/mcp/mcp-service-card.tsx@@ -200,7 +200,7 @@ function MCPServiceCard({</div><divclassName="cursor-pointer text-xs font-normal text-text-accent hover:underline"- onClick={() => window.open(docLink('/guides/workflow/node/user-input'), '_blank')}+ onClick={() => window.open(docLink('/use-dify/nodes/user-input'), '_blank')}>{t('overview.appInfo.enableTooltip.learnMore', { ns: 'appOverview' })}</div>diff --git a/web/app/components/tools/provider/custom-create-card.tsx b/web/app/components/tools/provider/custom-create-card.tsxindex 637d17c3c38..bf86a1f833e 100644--- a/web/app/components/tools/provider/custom-create-card.tsx+++ b/web/app/components/tools/provider/custom-create-card.tsx@@ -2,16 +2,12 @@import type { CustomCollectionBackend } from '../types'import {RiAddCircleFill,- RiArrowRightUpLine,- RiBookOpenLine,} from '@remixicon/react'-import { useMemo, useState } from 'react'+import { useState } from 'react'import { useTranslation } from 'react-i18next'import Toast from '@/app/components/base/toast'import EditCustomToolModal from '@/app/components/tools/edit-custom-collection-modal'import { useAppContext } from '@/context/app-context'-import { useDocLink, useLocale } from '@/context/i18n'-import { getLanguage } from '@/i18n-config/language'import { createCustomCollection } from '@/service/tools'type Props = {@@ -20,17 +16,8 @@ type Props = {const Contribute = ({ onRefreshData }: Props) => {const { t } = useTranslation()- const locale = useLocale()- const language = getLanguage(locale)const { isCurrentWorkspaceManager } = useAppContext()- const docLink = useDocLink()- const linkUrl = useMemo(() => {- return docLink('/guides/tools#how-to-create-custom-tools', {- 'zh-Hans': '/guides/tools#ru-he-chuang-jian-zi-ding-yi-gong-ju',- })- }, [language])-const [isShowEditCollectionToolModal, setIsShowEditCustomCollectionModal] = useState(false)const doCreateCustomToolCollection = async (data: CustomCollectionBackend) => {await createCustomCollection(data)@@ -54,13 +41,6 @@ const Contribute = ({ onRefreshData }: Props) => {<div className="system-md-semibold ml-3 text-text-secondary group-hover:text-text-accent">{t('createCustomTool', { ns: 'tools' })}</div></div></div>- <div className="rounded-b-xl border-t-[0.5px] border-divider-subtle px-4 py-3 text-text-tertiary hover:text-text-accent">- <a href={linkUrl} target="_blank" rel="noopener noreferrer" className="flex items-center space-x-1">- <RiBookOpenLine className="h-3 w-3 shrink-0" />- <div className="system-xs-regular grow truncate" title={t('customToolTip', { ns: 'tools' }) || ''}>{t('customToolTip', { ns: 'tools' })}</div>- <RiArrowRightUpLine className="h-3 w-3 shrink-0" />- </a>- </div></div>)}{isShowEditCollectionToolModal && (diff --git a/web/app/components/workflow-app/components/workflow-onboarding-modal/index.tsx b/web/app/components/workflow-app/components/workflow-onboarding-modal/index.tsxindex 0f92982cf2c..0faf43bfd10 100644--- a/web/app/components/workflow-app/components/workflow-onboarding-modal/index.tsx+++ b/web/app/components/workflow-app/components/workflow-onboarding-modal/index.tsx@@ -8,7 +8,6 @@ import {import { useTranslation } from 'react-i18next'import Modal from '@/app/components/base/modal'import { BlockEnum } from '@/app/components/workflow/types'-import { useDocLink } from '@/context/i18n'import StartNodeSelectionPanel from './start-node-selection-panel'type WorkflowOnboardingModalProps = {@@ -23,7 +22,6 @@ const WorkflowOnboardingModal: FC<WorkflowOnboardingModalProps> = ({onSelectStartNode,}) => {const { t } = useTranslation()- const docLink = useDocLink()const handleSelectUserInput = useCallback(() => {onSelectStartNode(BlockEnum.Start)@@ -63,15 +61,6 @@ const WorkflowOnboardingModal: FC<WorkflowOnboardingModalProps> = ({<div className="body-xs-regular leading-4 text-text-tertiary">{t('onboarding.description', { ns: 'workflow' })}{' '}- <a- href={docLink('/guides/workflow/node/start')}- target="_blank"- rel="noopener noreferrer"- className="hover:text-text-accent-hover cursor-pointer text-text-accent underline"- >- {t('onboarding.learnMore', { ns: 'workflow' })}- </a>- {' '}{t('onboarding.aboutStartNode', { ns: 'workflow' })}</div></div>diff --git a/web/app/components/workflow-app/hooks/use-available-nodes-meta-data.ts b/web/app/components/workflow-app/hooks/use-available-nodes-meta-data.tsindex 60f0bf3b280..0c5c1e4a407 100644--- a/web/app/components/workflow-app/hooks/use-available-nodes-meta-data.ts+++ b/web/app/components/workflow-app/hooks/use-available-nodes-meta-data.ts@@ -1,4 +1,5 @@import type { AvailableNodesMetaData } from '@/app/components/workflow/hooks-store/store'+import type { DocPathWithoutLang } from '@/types/doc-paths'import { useMemo } from 'react'import { useTranslation } from 'react-i18next'import { WORKFLOW_COMMON_NODES } from '@/app/components/workflow/constants/node'@@ -44,7 +45,7 @@ export const useAvailableNodesMetaData = () => {const { metaData } = nodeconst title = t(`blocks.${metaData.type}`, { ns: 'workflow' })const description = t(`blocksAbout.${metaData.type}`, { ns: 'workflow' })- const helpLinkPath = `guides/workflow/node/${metaData.helpLinkUri}`+ const helpLinkPath = `/use-dify/nodes/${metaData.helpLinkUri}` as DocPathWithoutLangreturn {...node,metaData: {diff --git a/web/app/components/workflow/nodes/_base/components/agent-strategy.tsx b/web/app/components/workflow/nodes/_base/components/agent-strategy.tsxindex 8303681d90c..42be3d46e43 100644--- a/web/app/components/workflow/nodes/_base/components/agent-strategy.tsx+++ b/web/app/components/workflow/nodes/_base/components/agent-strategy.tsx@@ -251,10 +251,7 @@ export const AgentStrategy = memo((props: AgentStrategyProps) => {{' '}<br /><Link- href={docLink('/guides/workflow/node/agent#select-an-agent-strategy', {- 'zh-Hans': '/guides/workflow/node/agent#选择-agent-策略',- 'ja-JP': '/guides/workflow/node/agent#エージェント戦略の選択',- })}+ href={docLink('/use-dify/nodes/agent')}className="text-text-accent-secondary"target="_blank">diff --git a/web/app/components/workflow/nodes/_base/components/error-handle/default-value.tsx b/web/app/components/workflow/nodes/_base/components/error-handle/default-value.tsxindex 538dce09d0b..080fa0f1079 100644--- a/web/app/components/workflow/nodes/_base/components/error-handle/default-value.tsx+++ b/web/app/components/workflow/nodes/_base/components/error-handle/default-value.tsx@@ -5,7 +5,6 @@ import Input from '@/app/components/base/input'import CodeEditor from '@/app/components/workflow/nodes/_base/components/editor/code-editor'import { CodeLanguage } from '@/app/components/workflow/nodes/code/types'import { VarType } from '@/app/components/workflow/types'-import { useDocLink } from '@/context/i18n'type DefaultValueProps = {forms: DefaultValueForm[]@@ -16,7 +15,6 @@ const DefaultValue = ({onFormChange,}: DefaultValueProps) => {const { t } = useTranslation()- const docLink = useDocLink()const getFormChangeHandler = useCallback(({ key, type }: DefaultValueForm) => {return (payload: any) => {let value@@ -35,15 +33,6 @@ const DefaultValue = ({<div className="body-xs-regular mb-2 text-text-tertiary">{t('nodes.common.errorHandle.defaultValue.desc', { ns: 'workflow' })} - <a- href={docLink('/guides/workflow/error-handling/README', {- 'zh-Hans': '/guides/workflow/error-handling/readme',- })}- target="_blank"- className="text-text-accent"- >- {t('common.learnMore', { ns: 'workflow' })}- </a></div><div className="space-y-1">{diff --git a/web/app/components/workflow/nodes/_base/components/error-handle/fail-branch-card.tsx b/web/app/components/workflow/nodes/_base/components/error-handle/fail-branch-card.tsxindex fe267f52c4a..49cd44160c0 100644--- a/web/app/components/workflow/nodes/_base/components/error-handle/fail-branch-card.tsx+++ b/web/app/components/workflow/nodes/_base/components/error-handle/fail-branch-card.tsx@@ -19,7 +19,7 @@ const FailBranchCard = () => {{t('nodes.common.errorHandle.failBranch.customizeTip', { ns: 'workflow' })} <a- href={docLink('/guides/workflow/error-handling/error-type')}+ href={docLink('/use-dify/debug/error-type')}target="_blank"className="text-text-accent">diff --git a/web/app/components/workflow/nodes/_base/components/variable/var-reference-popup.tsx b/web/app/components/workflow/nodes/_base/components/variable/var-reference-popup.tsxindex 6184bcad9fa..26f10b7a1d5 100644--- a/web/app/components/workflow/nodes/_base/components/variable/var-reference-popup.tsx+++ b/web/app/components/workflow/nodes/_base/components/variable/var-reference-popup.tsx@@ -6,7 +6,6 @@ import { useMemo } from 'react'import { useTranslation } from 'react-i18next'import ListEmpty from '@/app/components/base/list-empty'import { useStore } from '@/app/components/workflow/store'-import { useDocLink } from '@/context/i18n'import VarReferenceVars from './var-reference-vars'type Props = {@@ -31,7 +30,7 @@ const VarReferencePopup: FC<Props> = ({const pipelineId = useStore(s => s.pipelineId)const showManageRagInputFields = useMemo(() => !!pipelineId, [pipelineId])const setShowInputFieldPanel = useStore(s => s.setShowInputFieldPanel)- const docLink = useDocLink()+// max-h-[300px] overflow-y-auto todo: use portal to handle long listreturn (<div@@ -58,17 +57,6 @@ const VarReferencePopup: FC<Props> = ({description={(<div className="system-xs-regular text-text-tertiary">{t('variableReference.assignedVarsDescription', { ns: 'workflow' })}- <a- target="_blank"- rel="noopener noreferrer"- className="text-text-accent-secondary"- href={docLink('/guides/workflow/variables#conversation-variables', {- 'zh-Hans': '/guides/workflow/variables#会话变量',- 'ja-JP': '/guides/workflow/variables#会話変数',- })}- >- {t('variableReference.conversationVars', { ns: 'workflow' })}- </a></div>)}/>diff --git a/web/app/components/workflow/nodes/knowledge-base/components/chunk-structure/instruction/index.tsx b/web/app/components/workflow/nodes/knowledge-base/components/chunk-structure/instruction/index.tsxindex 77981639cda..73e87ec12ba 100644--- a/web/app/components/workflow/nodes/knowledge-base/components/chunk-structure/instruction/index.tsx+++ b/web/app/components/workflow/nodes/knowledge-base/components/chunk-structure/instruction/index.tsx@@ -31,7 +31,7 @@ const Instruction = ({<div className="system-xs-regular"><p className="text-text-tertiary">{t('nodes.knowledgeBase.chunkStructureTip.message', { ns: 'workflow' })}</p><a- href={docLink('/guides/knowledge-base/create-knowledge-and-upload-documents/chunking-and-cleaning-text')}+ href={docLink('/use-dify/knowledge/create-knowledge/chunking-and-cleaning-text')}target="_blank"rel="noopener noreferrer"className="text-text-accent"diff --git a/web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/index.tsx b/web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/index.tsxindex c053a45bd34..07abcedb19c 100644--- a/web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/index.tsx+++ b/web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/index.tsx@@ -11,6 +11,7 @@ import {} from 'react'import { useTranslation } from 'react-i18next'import { Field } from '@/app/components/workflow/nodes/_base/components/layout'+import { useDocLink } from '@/context/i18n'import { useRetrievalSetting } from './hooks'import SearchMethodOption from './search-method-option'@@ -50,6 +51,7 @@ const RetrievalSetting = ({showMultiModalTip,}: RetrievalSettingProps) => {const { t } = useTranslation()+ const docLink = useDocLink()const {options,hybridSearchModeOptions,@@ -61,7 +63,7 @@ const RetrievalSetting = ({title: t('form.retrievalSetting.title', { ns: 'datasetSettings' }),subTitle: (<div className="body-xs-regular flex items-center text-text-tertiary">- <a target="_blank" rel="noopener noreferrer" href="https://docs.dify.ai/guides/knowledge-base/create-knowledge-and-upload-documents#id-4-retrieval-settings" className="text-text-accent">{t('form.retrievalSetting.learnMore', { ns: 'datasetSettings' })}</a>+ <a target="_blank" rel="noopener noreferrer" href={docLink('/use-dify/knowledge/create-knowledge/setting-indexing-methods')} className="text-text-accent">{t('form.retrievalSetting.learnMore', { ns: 'datasetSettings' })}</a> {t('nodes.knowledgeBase.aboutRetrieval', { ns: 'workflow' })}</div>diff --git a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-config.tsx b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-config.tsxindex e7ac493bd2d..b4dac4b58ee 100644--- a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-config.tsx+++ b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-config.tsx@@ -1,14 +1,12 @@import type { FC } from 'react'import type { SchemaRoot } from '../../types'-import { RiBracesLine, RiCloseLine, RiExternalLinkLine, RiTimelineView } from '@remixicon/react'-import * as React from 'react'+import { RiBracesLine, RiCloseLine, RiTimelineView } from '@remixicon/react'import { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'import Button from '@/app/components/base/button'import Divider from '@/app/components/base/divider'import Toast from '@/app/components/base/toast'import { JSON_SCHEMA_MAX_DEPTH } from '@/config'-import { useDocLink } from '@/context/i18n'import { SegmentedControl } from '../../../../../base/segmented-control'import { Type } from '../../types'import {@@ -55,7 +53,6 @@ const JsonSchemaConfig: FC<JsonSchemaConfigProps> = ({onClose,}) => {const { t } = useTranslation()- const docLink = useDocLink()const [currentTab, setCurrentTab] = useState(SchemaView.VisualEditor)const [jsonSchema, setJsonSchema] = useState(defaultSchema || DEFAULT_SCHEMA)const [json, setJson] = useState(() => JSON.stringify(jsonSchema, null, 2))@@ -253,15 +250,6 @@ const JsonSchemaConfig: FC<JsonSchemaConfigProps> = ({</div>{/* Footer */}<div className="flex items-center gap-x-2 p-6 pt-5">- <a- className="flex grow items-center gap-x-1 text-text-accent"- href={docLink('/guides/workflow/structured-outputs')}- target="_blank"- rel="noopener noreferrer"- >- <span className="system-xs-regular">{t('nodes.llm.jsonSchema.doc', { ns: 'workflow' })}</span>- <RiExternalLinkLine className="h-3 w-3" />- </a><div className="flex items-center gap-x-3"><div className="flex items-center gap-x-2"><Button variant="secondary" onClick={handleResetDefaults}>diff --git a/web/app/components/workflow/panel/chat-variable-panel/index.tsx b/web/app/components/workflow/panel/chat-variable-panel/index.tsxindex c2738fd4ce8..f0ecef4467e 100644--- a/web/app/components/workflow/panel/chat-variable-panel/index.tsx+++ b/web/app/components/workflow/panel/chat-variable-panel/index.tsx@@ -21,13 +21,11 @@ import VariableItem from '@/app/components/workflow/panel/chat-variable-panel/coimport VariableModalTrigger from '@/app/components/workflow/panel/chat-variable-panel/components/variable-modal-trigger'import { useStore } from '@/app/components/workflow/store'import { BlockEnum } from '@/app/components/workflow/types'-import { useDocLink } from '@/context/i18n'import { cn } from '@/utils/classnames'import useInspectVarsCrud from '../../hooks/use-inspect-vars-crud'const ChatVariablePanel = () => {const { t } = useTranslation()- const docLink = useDocLink()const store = useStoreApi()const setShowChatVariablePanel = useStore(s => s.setShowChatVariablePanel)const varList = useStore(s => s.conversationVariables) as ConversationVariable[]@@ -148,17 +146,6 @@ const ChatVariablePanel = () => {<div className="system-2xs-medium-uppercase inline-block rounded-[5px] border border-divider-deep px-[5px] py-[3px] text-text-tertiary">TIPS</div><div className="system-sm-regular mb-4 mt-1 text-text-secondary">{t('chatVariable.panelDescription', { ns: 'workflow' })}- <a- target="_blank"- rel="noopener noreferrer"- className="text-text-accent"- href={docLink('/guides/workflow/variables#conversation-variables', {- 'zh-Hans': '/guides/workflow/variables#会话变量',- 'ja-JP': '/guides/workflow/variables#会話変数',- })}- >- {t('chatVariable.docLink', { ns: 'workflow' })}- </a></div><div className="flex items-center gap-2"><div className="radius-lg flex flex-col border border-workflow-block-border bg-workflow-block-bg p-3 pb-4 shadow-md">diff --git a/web/app/components/workflow/run/node.tsx b/web/app/components/workflow/run/node.tsxindex 8611a98d3bd..c99ff6ce912 100644--- a/web/app/components/workflow/run/node.tsx+++ b/web/app/components/workflow/run/node.tsx@@ -211,7 +211,7 @@ const NodePanel: FC<Props> = ({<StatusContainer status="stopped">{nodeInfo.error}<a- href={docLink('/guides/workflow/error-handling/error-type')}+ href={docLink('/use-dify/debug/error-type')}target="_blank"className="text-text-accent">diff --git a/web/app/components/workflow/run/status.tsx b/web/app/components/workflow/run/status.tsxindex 922d939b7e9..33799a6269a 100644--- a/web/app/components/workflow/run/status.tsx+++ b/web/app/components/workflow/run/status.tsx@@ -139,7 +139,7 @@ const StatusPanel: FC<ResultProps> = ({<div className="system-xs-medium text-text-warning">{error}<a- href={docLink('/guides/workflow/error-handling/error-type')}+ href={docLink('/use-dify/debug/error-type')}target="_blank"className="text-text-accent">diff --git a/web/app/components/workflow/variable-inspect/empty.tsx b/web/app/components/workflow/variable-inspect/empty.tsxindex 86af8556d93..7363f1b3635 100644--- a/web/app/components/workflow/variable-inspect/empty.tsx+++ b/web/app/components/workflow/variable-inspect/empty.tsx@@ -1,9 +1,11 @@import type { FC } from 'react'import { useTranslation } from 'react-i18next'import { Variable02 } from '@/app/components/base/icons/src/vender/solid/development'+import { useDocLink } from '@/context/i18n'const Empty: FC = () => {const { t } = useTranslation()+ const docLink = useDocLink()return (<div className="flex h-full flex-col gap-3 rounded-xl bg-background-section p-8">@@ -15,7 +17,7 @@ const Empty: FC = () => {<div className="system-xs-regular text-text-tertiary">{t('debug.variableInspect.emptyTip', { ns: 'workflow' })}</div><aclassName="system-xs-regular cursor-pointer text-text-accent"- href="https://docs.dify.ai/en/guides/workflow/debug-and-preview/variable-inspect"+ href={docLink('/use-dify/debug/variable-inspect')}target="_blank"rel="noopener noreferrer">diff --git a/web/app/education-apply/education-apply-page.tsx b/web/app/education-apply/education-apply-page.tsxindex 0be88091dc7..3f8d80a67eb 100644--- a/web/app/education-apply/education-apply-page.tsx+++ b/web/app/education-apply/education-apply-page.tsx@@ -163,7 +163,7 @@ const EducationApplyAge = () => {<div className="mb-4 mt-5 h-px bg-gradient-to-r from-[rgba(16,24,40,0.08)]"></div><aclassName="system-xs-regular flex items-center text-text-accent"- href={docLink('/getting-started/dify-for-education')}+ href={docLink('/use-dify/workspace/subscription-management#dify-for-education')}target="_blank">{t('learn', { ns: 'education' })}diff --git a/web/app/education-apply/expire-notice-modal.tsx b/web/app/education-apply/expire-notice-modal.tsxindex 3ae4b60f0f5..2b96ecba88e 100644--- a/web/app/education-apply/expire-notice-modal.tsx+++ b/web/app/education-apply/expire-notice-modal.tsx@@ -25,7 +25,7 @@ const i18nPrefix = 'notice'const ExpireNoticeModal: React.FC<Props> = ({ expireAt, expired, onClose }) => {const { t } = useTranslation()const docLink = useDocLink()- const eduDocLink = docLink('/getting-started/dify-for-education')+ const eduDocLink = docLink('/use-dify/workspace/subscription-management#dify-for-education')const { formatTime } = useTimestamp()const setShowPricingModal = useModalContextSelector(s => s.setShowPricingModal)const { mutateAsync } = useEducationVerify()diff --git a/web/app/education-apply/verify-state-modal.tsx b/web/app/education-apply/verify-state-modal.tsxindex 4af00d8468e..579f8dec78b 100644--- a/web/app/education-apply/verify-state-modal.tsx+++ b/web/app/education-apply/verify-state-modal.tsx@@ -34,7 +34,7 @@ function Confirm({const docLink = useDocLink()const dialogRef = useRef<HTMLDivElement>(null)const [isVisible, setIsVisible] = useState(isShow)- const eduDocLink = docLink('/getting-started/dify-for-education')+ const eduDocLink = docLink('/use-dify/workspace/subscription-management#dify-for-education')const handleClick = () => {window.open(eduDocLink, '_blank', 'noopener,noreferrer')diff --git a/web/app/install/installForm.tsx b/web/app/install/installForm.tsxindex de32f18bc79..1cd5dce19a7 100644--- a/web/app/install/installForm.tsx+++ b/web/app/install/installForm.tsx@@ -14,7 +14,7 @@ import { zodSubmitValidator } from '@/app/components/base/form/utils/zod-submit-import Input from '@/app/components/base/input'import { validPassword } from '@/config'-import { useDocLink } from '@/context/i18n'+import { LICENSE_LINK } from '@/constants/link'import useDocumentTitle from '@/hooks/use-document-title'import { fetchInitValidateStatus, fetchSetupStatus, login, setup } from '@/service/common'import { cn } from '@/utils/classnames'@@ -35,7 +35,6 @@ const accountFormSchema = z.object({const InstallForm = () => {useDocumentTitle('')const { t, i18n } = useTranslation()- const docLink = useDocLink()const router = useRouter()const [showPassword, setShowPassword] = React.useState(false)const [loading, setLoading] = React.useState(true)@@ -219,7 +218,7 @@ const InstallForm = () => {className="text-text-accent"target="_blank"rel="noopener noreferrer"- href={docLink('/policies/open-source')}+ href={LICENSE_LINK}>{t('license.link', { ns: 'login' })}</Link>diff --git a/web/app/signin/invite-settings/page.tsx b/web/app/signin/invite-settings/page.tsxindex 1e386383604..c16a580b3a7 100644--- a/web/app/signin/invite-settings/page.tsx+++ b/web/app/signin/invite-settings/page.tsx@@ -11,8 +11,8 @@ import Input from '@/app/components/base/input'import Loading from '@/app/components/base/loading'import { SimpleSelect } from '@/app/components/base/select'import Toast from '@/app/components/base/toast'+import { LICENSE_LINK } from '@/constants/link'import { useGlobalPublicStore } from '@/context/global-public-context'-import { useDocLink } from '@/context/i18n'import { setLocaleOnClient } from '@/i18n-config'import { languages, LanguagesSupported } from '@/i18n-config/language'import { activateMember } from '@/service/common'@@ -23,7 +23,6 @@ import { resolvePostLoginRedirect } from '../utils/post-login-redirect'export default function InviteSettingsPage() {const { t } = useTranslation()const systemFeatures = useGlobalPublicStore(s => s.systemFeatures)- const docLink = useDocLink()const router = useRouter()const searchParams = useSearchParams()const token = decodeURIComponent(searchParams.get('invite_token') as string)@@ -161,7 +160,7 @@ export default function InviteSettingsPage() {className="system-xs-medium text-text-accent-secondary"target="_blank"rel="noopener noreferrer"- href={docLink('/policies/open-source')}+ href={LICENSE_LINK}>{t('license.link', { ns: 'login' })}</Link>diff --git a/web/app/signin/one-more-step.tsx b/web/app/signin/one-more-step.tsxindex 26a463d066a..ff28b3caaf8 100644--- a/web/app/signin/one-more-step.tsx+++ b/web/app/signin/one-more-step.tsx@@ -2,14 +2,13 @@import type { Reducer } from 'react'import Link from 'next/link'import { useRouter, useSearchParams } from 'next/navigation'-import * as React from 'react'import { useReducer } from 'react'import { useTranslation } from 'react-i18next'import Button from '@/app/components/base/button'import { SimpleSelect } from '@/app/components/base/select'import Toast from '@/app/components/base/toast'import Tooltip from '@/app/components/base/tooltip'-import { useDocLink } from '@/context/i18n'+import { LICENSE_LINK } from '@/constants/link'import { languages, LanguagesSupported } from '@/i18n-config/language'import { useOneMoreStep } from '@/service/use-common'import { timezones } from '@/utils/timezone'@@ -48,7 +47,6 @@ const reducer: Reducer<IState, IAction> = (state: IState, action: IAction) => {const OneMoreStep = () => {const { t } = useTranslation()- const docLink = useDocLink()const router = useRouter()const searchParams = useSearchParams()@@ -159,7 +157,7 @@ const OneMoreStep = () => {className="system-xs-medium text-text-accent-secondary"target="_blank"rel="noopener noreferrer"- href={docLink('/policies/agreement/README')}+ href={LICENSE_LINK}>{t('license.link', { ns: 'login' })}</Link>diff --git a/web/constants/link.ts b/web/constants/link.tsnew file mode 100644index 00000000000..7797396fa64--- /dev/null+++ b/web/constants/link.ts@@ -0,0 +1 @@+export const LICENSE_LINK = 'https://github.com/langgenius/dify?tab=License-1-ov-file#readme'diff --git a/web/context/i18n.ts b/web/context/i18n.tsindex d57fc5b9843..01f9b820356 100644--- a/web/context/i18n.ts+++ b/web/context/i18n.ts@@ -1,6 +1,8 @@import type { Locale } from '@/i18n-config/language'+import type { DocPathWithoutLang } from '@/types/doc-paths'import { useTranslation } from '#i18n'import { getDocLanguage, getLanguage, getPricingPageLanguage } from '@/i18n-config/language'+import { apiReferencePathTranslations } from '@/types/doc-paths'export const useLocale = () => {const { i18n } = useTranslation()@@ -19,15 +21,24 @@ export const useGetPricingPageLanguage = () => {}export const defaultDocBaseUrl = 'https://docs.dify.ai'-export const useDocLink = (baseUrl?: string): ((path?: string, pathMap?: { [index: string]: string }) => string) => {+export type DocPathMap = Partial<Record<Locale, DocPathWithoutLang>>++export const useDocLink = (baseUrl?: string): ((path?: DocPathWithoutLang, pathMap?: DocPathMap) => string) => {let baseDocUrl = baseUrl || defaultDocBaseUrlbaseDocUrl = (baseDocUrl.endsWith('/')) ? baseDocUrl.slice(0, -1) : baseDocUrlconst locale = useLocale()const docLanguage = getDocLanguage(locale)- return (path?: string, pathMap?: { [index: string]: string }): string => {+ return (path?: DocPathWithoutLang, pathMap?: DocPathMap): string => {const pathUrl = path || ''let targetPath = (pathMap) ? pathMap[locale] || pathUrl : pathUrl- targetPath = (targetPath.startsWith('/')) ? targetPath.slice(1) : targetPath- return `${baseDocUrl}/${docLanguage}/${targetPath}`++ // Translate API reference paths for non-English locales+ if (targetPath.startsWith('/api-reference/') && docLanguage !== 'en') {+ const translatedPath = apiReferencePathTranslations[targetPath]?.[docLanguage as 'zh' | 'ja']+ if (translatedPath)+ targetPath = translatedPath+ }++ return `${baseDocUrl}/${docLanguage}${targetPath}`}}diff --git a/web/eslint.config.mjs b/web/eslint.config.mjsindex 8c1bb4afbe9..9ef3f8d04f7 100644--- a/web/eslint.config.mjs+++ b/web/eslint.config.mjs@@ -23,7 +23,7 @@ export default antfu(},},nextjs: true,- ignores: ['public'],+ ignores: ['public', 'types/doc-paths.ts'],typescript: {overrides: {'ts/consistent-type-definitions': ['error', 'type'],diff --git a/web/hooks/use-api-access-url.ts b/web/hooks/use-api-access-url.tsindex 93639ae0361..98576e66db9 100644--- a/web/hooks/use-api-access-url.ts+++ b/web/hooks/use-api-access-url.ts@@ -1,16 +1,7 @@-import { useMemo } from 'react'-import { useGetLanguage } from '@/context/i18n'+import { useDocLink } from '@/context/i18n'export const useDatasetApiAccessUrl = () => {- const locale = useGetLanguage()+ const docLink = useDocLink()- const apiReferenceUrl = useMemo(() => {- if (locale === 'zh_Hans')- return 'https://docs.dify.ai/api-reference/%E6%95%B0%E6%8D%AE%E9%9B%86'- if (locale === 'ja_JP')- return 'https://docs.dify.ai/api-reference/%E3%83%87%E3%83%BC%E3%82%BF%E3%82%BB%E3%83%83%E3%83%88'- return 'https://docs.dify.ai/api-reference/datasets'- }, [locale])-- return apiReferenceUrl+ return docLink('/api-reference/datasets/get-knowledge-base-list')}diff --git a/web/i18n-config/language.ts b/web/i18n-config/language.tsindex 28afd9eabf1..64c22afe441 100644--- a/web/i18n-config/language.ts+++ b/web/i18n-config/language.ts@@ -1,3 +1,4 @@+import type { DocLanguage } from '@/types/doc-paths'import data from './languages'export type Item = {@@ -22,9 +23,9 @@ export const getLanguage = (locale: Locale): Locale => {return LanguagesSupported[0].replace('-', '_') as Locale}-const DOC_LANGUAGE: Record<string, string> = {- 'zh-Hans': 'zh-hans',- 'ja-JP': 'ja-jp',+const DOC_LANGUAGE: Record<string, DocLanguage | undefined> = {+ 'zh-Hans': 'zh',+ 'ja-JP': 'ja','en-US': 'en',}@@ -56,7 +57,7 @@ export const localeMap: Record<Locale, string> = {'ar-TN': 'ar',}-export const getDocLanguage = (locale: string) => {+export const getDocLanguage = (locale: string): DocLanguage => {return DOC_LANGUAGE[locale] || 'en'}diff --git a/web/package.json b/web/package.jsonindex 4ebba2ed8e6..b36eb776033 100644--- a/web/package.json+++ b/web/package.json@@ -39,6 +39,7 @@"type-check:tsgo": "tsgo --noEmit","prepare": "cd ../ && node -e \"if (process.env.NODE_ENV !== 'production'){process.exit(1)} \" || husky ./web/.husky","gen-icons": "node ./scripts/gen-icons.mjs && eslint --fix app/components/base/icons/src/",+ "gen-doc-paths": "tsx ./scripts/gen-doc-paths.ts","uglify-embed": "node ./bin/uglify-embed","i18n:check": "tsx ./scripts/check-i18n.js","test": "vitest run",diff --git a/web/scripts/gen-doc-paths.ts b/web/scripts/gen-doc-paths.tsnew file mode 100644index 00000000000..f0393937c25--- /dev/null+++ b/web/scripts/gen-doc-paths.ts@@ -0,0 +1,433 @@+// GENERATE BY script+// DON NOT EDIT IT MANUALLY+//+// This script fetches the docs.json from dify-docs repository+// and generates TypeScript types for documentation paths.+//+// Usage: pnpm gen-doc-paths++import { writeFile } from 'node:fs/promises'+import path from 'node:path'+import { fileURLToPath } from 'node:url'++const __dirname = path.dirname(fileURLToPath(import.meta.url))+const DOCS_JSON_URL = 'https://raw.githubusercontent.com/langgenius/dify-docs/refs/heads/main/docs.json'+const OUTPUT_PATH = path.resolve(__dirname, '../types/doc-paths.ts')++type NavItem = string | NavObject | NavItem[]++type NavObject = {+ pages?: NavItem[]+ groups?: NavItem[]+ dropdowns?: NavItem[]+ languages?: NavItem[]+ versions?: NavItem[]+ openapi?: string+ [key: string]: unknown+}++type OpenAPIOperation = {+ summary?: string+ operationId?: string+ tags?: string[]+ [key: string]: unknown+}++type OpenAPIPathItem = {+ get?: OpenAPIOperation+ post?: OpenAPIOperation+ put?: OpenAPIOperation+ patch?: OpenAPIOperation+ delete?: OpenAPIOperation+ [key: string]: unknown+}++type OpenAPISpec = {+ paths?: Record<string, OpenAPIPathItem>+ [key: string]: unknown+}++type Redirect = {+ source: string+ destination: string+}++type DocsJson = {+ navigation?: NavItem+ redirects?: Redirect[]+ [key: string]: unknown+}++const OPENAPI_BASE_URL = 'https://raw.githubusercontent.com/langgenius/dify-docs/refs/heads/main/'++/**+ * Convert summary to URL slug+ * e.g., "Get Knowledge Base List" -> "get-knowledge-base-list"+ * e.g., "获取知识库列表" -> "获取知识库列表"+ */+function summaryToSlug(summary: string): string {+ return summary+ .toLowerCase()+ .replace(/\s+/g, '-')+ .replace(/-+/g, '-')+ .replace(/^-|-$/g, '')+}++/**+ * Get the first path segment from an API path+ * e.g., "/datasets/{dataset_id}/documents" -> "datasets"+ */+function getFirstPathSegment(apiPath: string): string {+ const segments = apiPath.split('/').filter(Boolean)+ return segments[0] || ''+}++/**+ * Recursively extract OpenAPI file paths from navigation structure+ */+function extractOpenAPIPaths(item: NavItem | undefined, paths: Set<string> = new Set()): Set<string> {+ if (!item)+ return paths++ if (Array.isArray(item)) {+ for (const el of item)+ extractOpenAPIPaths(el, paths)++ return paths+ }++ if (typeof item === 'object') {+ if (item.openapi && typeof item.openapi === 'string')+ paths.add(item.openapi)++ if (item.pages)+ extractOpenAPIPaths(item.pages, paths)++ if (item.groups)+ extractOpenAPIPaths(item.groups, paths)++ if (item.dropdowns)+ extractOpenAPIPaths(item.dropdowns, paths)++ if (item.languages)+ extractOpenAPIPaths(item.languages, paths)++ if (item.versions)+ extractOpenAPIPaths(item.versions, paths)+ }++ return paths+}++type EndpointPathMap = Map<string, string> // key: `${apiPath}_${method}`, value: generated doc path++/**+ * Fetch and parse OpenAPI spec, extract API reference paths with endpoint keys+ */+async function fetchOpenAPIAndExtractPaths(openapiPath: string): Promise<EndpointPathMap> {+ const url = `${OPENAPI_BASE_URL}${openapiPath}`+ const response = await fetch(url)+ if (!response.ok) {+ console.warn(`Failed to fetch ${url}: ${response.status}`)+ return new Map()+ }++ const spec = await response.json() as OpenAPISpec+ const pathMap: EndpointPathMap = new Map()++ if (!spec.paths)+ return pathMap++ const httpMethods = ['get', 'post', 'put', 'patch', 'delete'] as const++ for (const [apiPath, pathItem] of Object.entries(spec.paths)) {+ for (const method of httpMethods) {+ const operation = pathItem[method]+ if (operation?.summary) {+ // Try to get tag from operation, fallback to path segment+ const tag = operation.tags?.[0]+ const segment = tag ? summaryToSlug(tag) : getFirstPathSegment(apiPath)+ if (!segment)+ continue++ const slug = summaryToSlug(operation.summary)+ // Skip empty slugs+ if (slug) {+ const endpointKey = `${apiPath}_${method}`+ pathMap.set(endpointKey, `/api-reference/${segment}/${slug}`)+ }+ }+ }+ }++ return pathMap+}++/**+ * Recursively extract all page paths from navigation structure+ */+function extractPaths(item: NavItem | undefined, paths: Set<string> = new Set()): Set<string> {+ if (!item)+ return paths++ if (Array.isArray(item)) {+ for (const el of item)+ extractPaths(el, paths)++ return paths+ }++ if (typeof item === 'string') {+ paths.add(item)+ return paths+ }++ if (typeof item === 'object') {+ // Handle pages array+ if (item.pages)+ extractPaths(item.pages, paths)++ // Handle groups array+ if (item.groups)+ extractPaths(item.groups, paths)++ // Handle dropdowns+ if (item.dropdowns)+ extractPaths(item.dropdowns, paths)++ // Handle languages+ if (item.languages)+ extractPaths(item.languages, paths)++ // Handle versions in navigation+ if (item.versions)+ extractPaths(item.versions, paths)+ }++ return paths+}++/**+ * Group paths by their prefix structure+ */+function groupPathsBySection(paths: Set<string>): Record<string, Set<string>> {+ const groups: Record<string, Set<string>> = {}++ for (const fullPath of paths) {+ // Skip non-doc paths (like .json files for OpenAPI)+ if (fullPath.endsWith('.json'))+ continue++ // Remove language prefix (en/, zh/, ja/)+ const withoutLang = fullPath.replace(/^(en|zh|ja)\//, '')+ if (!withoutLang || withoutLang === fullPath)+ continue++ // Get section (first part of path)+ const parts = withoutLang.split('/')+ const section = parts[0]++ if (!groups[section])+ groups[section] = new Set()++ groups[section].add(withoutLang)+ }++ return groups+}++/**+ * Convert section name to TypeScript type name+ */+function sectionToTypeName(section: string): string {+ return section+ .split('-')+ .map(part => part.charAt(0).toUpperCase() + part.slice(1))+ .join('')+}++/**+ * Generate TypeScript type definitions+ */+function generateTypeDefinitions(+ groups: Record<string, Set<string>>,+ apiReferencePaths: string[],+ apiPathTranslations: Record<string, { zh?: string, ja?: string }>,+): string {+ const lines: string[] = [+ '// GENERATE BY script',+ '// DON NOT EDIT IT MANUALLY',+ '//',+ '// Generated from: https://raw.githubusercontent.com/langgenius/dify-docs/refs/heads/main/docs.json',+ `// Generated at: ${new Date().toISOString()}`,+ '',+ '// Language prefixes',+ 'export type DocLanguage = \'en\' | \'zh\' | \'ja\'',+ '',+ ]++ const typeNames: string[] = []++ // Generate type for each section+ for (const [section, pathsSet] of Object.entries(groups)) {+ const paths = Array.from(pathsSet).sort()+ const typeName = `${sectionToTypeName(section)}Path`+ typeNames.push(typeName)++ lines.push(`// ${sectionToTypeName(section)} paths`)+ lines.push(`export type ${typeName} =`)++ for (const p of paths) {+ lines.push(` | '/${p}'`)+ }++ lines.push('')+ }++ // Generate API reference type (English paths only)+ if (apiReferencePaths.length > 0) {+ const sortedPaths = [...apiReferencePaths].sort()+ lines.push('// API Reference paths (English, use apiReferencePathTranslations for other languages)')+ lines.push('export type ApiReferencePath =')+ for (const p of sortedPaths) {+ lines.push(` | '${p}'`)+ }+ lines.push('')+ typeNames.push('ApiReferencePath')+ }++ // Generate base combined type+ lines.push('// Base path without language prefix')+ lines.push('export type DocPathWithoutLangBase =')+ for (const typeName of typeNames) {+ lines.push(` | ${typeName}`)+ }+ lines.push('')++ // Generate combined type with optional anchor support+ lines.push('// Combined path without language prefix (supports optional #anchor)')+ lines.push('export type DocPathWithoutLang =')+ lines.push(' | DocPathWithoutLangBase')+ // eslint-disable-next-line no-template-curly-in-string+ lines.push(' | `${DocPathWithoutLangBase}#${string}`')+ lines.push('')++ // Generate full path type with language prefix+ lines.push('// Full documentation path with language prefix')+ // eslint-disable-next-line no-template-curly-in-string+ lines.push('export type DifyDocPath = `${DocLanguage}/${DocPathWithoutLang}`')+ lines.push('')++ // Generate API reference path translations map+ lines.push('// API Reference path translations (English -> other languages)')+ lines.push('export const apiReferencePathTranslations: Record<string, { zh?: string; ja?: string }> = {')+ const sortedEnPaths = Object.keys(apiPathTranslations).sort()+ for (const enPath of sortedEnPaths) {+ const translations = apiPathTranslations[enPath]+ const parts: string[] = []+ if (translations.zh)+ parts.push(`zh: '${translations.zh}'`)+ if (translations.ja)+ parts.push(`ja: '${translations.ja}'`)+ if (parts.length > 0)+ lines.push(` '${enPath}': { ${parts.join(', ')} },`)+ }+ lines.push('}')+ lines.push('')++ return lines.join('\n')+}++async function main(): Promise<void> {+ console.log('Fetching docs.json from GitHub...')++ const response = await fetch(DOCS_JSON_URL)+ if (!response.ok)+ throw new Error(`Failed to fetch docs.json: ${response.status} ${response.statusText}`)++ const docsJson = await response.json() as DocsJson+ console.log('Successfully fetched docs.json')++ // Extract paths from navigation+ const allPaths = extractPaths(docsJson.navigation)++ console.log(`Found ${allPaths.size} total paths`)++ // Extract OpenAPI file paths from navigation for all languages+ const openApiPaths = extractOpenAPIPaths(docsJson.navigation)++ console.log(`Found ${openApiPaths.size} OpenAPI specs to process`)++ // Fetch OpenAPI specs and extract API reference paths with endpoint keys+ // Group by OpenAPI file name (without language prefix) to match endpoints across languages+ const endpointMapsByLang: Record<string, Map<string, EndpointPathMap>> = {+ en: new Map(),+ zh: new Map(),+ ja: new Map(),+ }++ for (const openapiPath of openApiPaths) {+ // Determine language from path+ const langMatch = openapiPath.match(/^(en|zh|ja)\//)+ if (!langMatch)+ continue++ const lang = langMatch[1]+ // Get file name without language prefix (e.g., "api-reference/openapi_knowledge.json")+ const fileKey = openapiPath.replace(/^(en|zh|ja)\//, '')++ console.log(`Fetching OpenAPI spec: ${openapiPath}`)+ const pathMap = await fetchOpenAPIAndExtractPaths(openapiPath)+ endpointMapsByLang[lang].set(fileKey, pathMap)+ }++ // Build English paths and mapping to other languages+ const enApiPaths: string[] = []+ const apiPathTranslations: Record<string, { zh?: string, ja?: string }> = {}++ // Iterate through English endpoint maps+ for (const [fileKey, enPathMap] of endpointMapsByLang.en) {+ const zhPathMap = endpointMapsByLang.zh.get(fileKey)+ const jaPathMap = endpointMapsByLang.ja.get(fileKey)++ for (const [endpointKey, enPath] of enPathMap) {+ enApiPaths.push(enPath)++ const zhPath = zhPathMap?.get(endpointKey)+ const jaPath = jaPathMap?.get(endpointKey)++ if (zhPath || jaPath) {+ apiPathTranslations[enPath] = {}+ if (zhPath)+ apiPathTranslations[enPath].zh = zhPath+ if (jaPath)+ apiPathTranslations[enPath].ja = jaPath+ }+ }+ }++ // Deduplicate English API paths+ const uniqueEnApiPaths = [...new Set(enApiPaths)]++ console.log(`Extracted ${uniqueEnApiPaths.length} unique English API reference paths`)++ console.log(`Generated ${Object.keys(apiPathTranslations).length} API path translations`)++ // Group by section+ const groups = groupPathsBySection(allPaths)++ console.log(`Grouped into ${Object.keys(groups).length} sections:`, Object.keys(groups))++ // Generate TypeScript+ const tsContent = generateTypeDefinitions(groups, uniqueEnApiPaths, apiPathTranslations)++ // Write to file+ await writeFile(OUTPUT_PATH, tsContent, 'utf-8')++ console.log(`Generated TypeScript types at: ${OUTPUT_PATH}`)+}++main().catch((err: Error) => {+ console.error('Error:', err.message)+ process.exit(1)+})diff --git a/web/types/doc-paths.ts b/web/types/doc-paths.tsnew file mode 100644index 00000000000..7a74f0905d6--- /dev/null+++ b/web/types/doc-paths.ts@@ -0,0 +1,316 @@+// GENERATE BY script+// DON NOT EDIT IT MANUALLY+//+// Generated from: https://raw.githubusercontent.com/langgenius/dify-docs/refs/heads/main/docs.json+// Generated at: 2026-01-21T07:24:02.413Z++// Language prefixes+export type DocLanguage = 'en' | 'zh' | 'ja'++// UseDify paths+export type UseDifyPath =+ | '/use-dify/build/additional-features'+ | '/use-dify/build/goto-anything'+ | '/use-dify/build/mcp'+ | '/use-dify/build/orchestrate-node'+ | '/use-dify/build/predefined-error-handling-logic'+ | '/use-dify/build/shortcut-key'+ | '/use-dify/build/version-control'+ | '/use-dify/debug/error-type'+ | '/use-dify/debug/history-and-logs'+ | '/use-dify/debug/step-run'+ | '/use-dify/debug/variable-inspect'+ | '/use-dify/getting-started/introduction'+ | '/use-dify/getting-started/key-concepts'+ | '/use-dify/getting-started/quick-start'+ | '/use-dify/knowledge/connect-external-knowledge-base'+ | '/use-dify/knowledge/create-knowledge/chunking-and-cleaning-text'+ | '/use-dify/knowledge/create-knowledge/import-text-data/readme'+ | '/use-dify/knowledge/create-knowledge/import-text-data/sync-from-notion'+ | '/use-dify/knowledge/create-knowledge/import-text-data/sync-from-website'+ | '/use-dify/knowledge/create-knowledge/introduction'+ | '/use-dify/knowledge/create-knowledge/setting-indexing-methods'+ | '/use-dify/knowledge/external-knowledge-api'+ | '/use-dify/knowledge/integrate-knowledge-within-application'+ | '/use-dify/knowledge/knowledge-pipeline/authorize-data-source'+ | '/use-dify/knowledge/knowledge-pipeline/create-knowledge-pipeline'+ | '/use-dify/knowledge/knowledge-pipeline/knowledge-pipeline-orchestration'+ | '/use-dify/knowledge/knowledge-pipeline/manage-knowledge-base'+ | '/use-dify/knowledge/knowledge-pipeline/publish-knowledge-pipeline'+ | '/use-dify/knowledge/knowledge-pipeline/readme'+ | '/use-dify/knowledge/knowledge-pipeline/upload-files'+ | '/use-dify/knowledge/knowledge-request-rate-limit'+ | '/use-dify/knowledge/manage-knowledge/introduction'+ | '/use-dify/knowledge/manage-knowledge/maintain-dataset-via-api'+ | '/use-dify/knowledge/manage-knowledge/maintain-knowledge-documents'+ | '/use-dify/knowledge/metadata'+ | '/use-dify/knowledge/readme'+ | '/use-dify/knowledge/test-retrieval'+ | '/use-dify/monitor/analysis'+ | '/use-dify/monitor/annotation-reply'+ | '/use-dify/monitor/integrations/integrate-aliyun'+ | '/use-dify/monitor/integrations/integrate-arize'+ | '/use-dify/monitor/integrations/integrate-langfuse'+ | '/use-dify/monitor/integrations/integrate-langsmith'+ | '/use-dify/monitor/integrations/integrate-opik'+ | '/use-dify/monitor/integrations/integrate-phoenix'+ | '/use-dify/monitor/integrations/integrate-weave'+ | '/use-dify/monitor/logs'+ | '/use-dify/nodes/agent'+ | '/use-dify/nodes/answer'+ | '/use-dify/nodes/code'+ | '/use-dify/nodes/doc-extractor'+ | '/use-dify/nodes/http-request'+ | '/use-dify/nodes/ifelse'+ | '/use-dify/nodes/iteration'+ | '/use-dify/nodes/knowledge-retrieval'+ | '/use-dify/nodes/list-operator'+ | '/use-dify/nodes/llm'+ | '/use-dify/nodes/loop'+ | '/use-dify/nodes/output'+ | '/use-dify/nodes/parameter-extractor'+ | '/use-dify/nodes/question-classifier'+ | '/use-dify/nodes/template'+ | '/use-dify/nodes/tools'+ | '/use-dify/nodes/trigger/overview'+ | '/use-dify/nodes/trigger/plugin-trigger'+ | '/use-dify/nodes/trigger/schedule-trigger'+ | '/use-dify/nodes/trigger/webhook-trigger'+ | '/use-dify/nodes/user-input'+ | '/use-dify/nodes/variable-aggregator'+ | '/use-dify/nodes/variable-assigner'+ | '/use-dify/publish/README'+ | '/use-dify/publish/developing-with-apis'+ | '/use-dify/publish/publish-mcp'+ | '/use-dify/publish/webapp/chatflow-webapp'+ | '/use-dify/publish/webapp/embedding-in-websites'+ | '/use-dify/publish/webapp/web-app-access'+ | '/use-dify/publish/webapp/web-app-settings'+ | '/use-dify/publish/webapp/workflow-webapp'+ | '/use-dify/tutorials/article-reader'+ | '/use-dify/tutorials/build-ai-image-generation-app'+ | '/use-dify/tutorials/customer-service-bot'+ | '/use-dify/tutorials/simple-chatbot'+ | '/use-dify/tutorials/twitter-chatflow'+ | '/use-dify/workspace/api-extension/api-extension'+ | '/use-dify/workspace/api-extension/cloudflare-worker'+ | '/use-dify/workspace/api-extension/external-data-tool-api-extension'+ | '/use-dify/workspace/api-extension/moderation-api-extension'+ | '/use-dify/workspace/app-management'+ | '/use-dify/workspace/model-providers'+ | '/use-dify/workspace/personal-account-management'+ | '/use-dify/workspace/plugins'+ | '/use-dify/workspace/readme'+ | '/use-dify/workspace/subscription-management'+ | '/use-dify/workspace/team-members-management'++// SelfHost paths+export type SelfHostPath =+ | '/self-host/advanced-deployments/local-source-code'+ | '/self-host/advanced-deployments/start-the-frontend-docker-container'+ | '/self-host/configuration/environments'+ | '/self-host/platform-guides/bt-panel'+ | '/self-host/platform-guides/dify-premium'+ | '/self-host/quick-start/docker-compose'+ | '/self-host/quick-start/faqs'+ | '/self-host/troubleshooting/common-issues'+ | '/self-host/troubleshooting/docker-issues'+ | '/self-host/troubleshooting/integrations'+ | '/self-host/troubleshooting/storage-and-migration'+ | '/self-host/troubleshooting/weaviate-v4-migration'++// DevelopPlugin paths+export type DevelopPluginPath =+ | '/develop-plugin/dev-guides-and-walkthroughs/agent-strategy-plugin'+ | '/develop-plugin/dev-guides-and-walkthroughs/cheatsheet'+ | '/develop-plugin/dev-guides-and-walkthroughs/creating-new-model-provider'+ | '/develop-plugin/dev-guides-and-walkthroughs/datasource-plugin'+ | '/develop-plugin/dev-guides-and-walkthroughs/develop-a-slack-bot-plugin'+ | '/develop-plugin/dev-guides-and-walkthroughs/develop-flomo-plugin'+ | '/develop-plugin/dev-guides-and-walkthroughs/develop-md-exporter'+ | '/develop-plugin/dev-guides-and-walkthroughs/develop-multimodal-data-processing-tool'+ | '/develop-plugin/dev-guides-and-walkthroughs/endpoint'+ | '/develop-plugin/dev-guides-and-walkthroughs/tool-oauth'+ | '/develop-plugin/dev-guides-and-walkthroughs/tool-plugin'+ | '/develop-plugin/dev-guides-and-walkthroughs/trigger-plugin'+ | '/develop-plugin/features-and-specs/advanced-development/bundle'+ | '/develop-plugin/features-and-specs/advanced-development/customizable-model'+ | '/develop-plugin/features-and-specs/advanced-development/reverse-invocation'+ | '/develop-plugin/features-and-specs/advanced-development/reverse-invocation-app'+ | '/develop-plugin/features-and-specs/advanced-development/reverse-invocation-model'+ | '/develop-plugin/features-and-specs/advanced-development/reverse-invocation-node'+ | '/develop-plugin/features-and-specs/advanced-development/reverse-invocation-tool'+ | '/develop-plugin/features-and-specs/plugin-types/general-specifications'+ | '/develop-plugin/features-and-specs/plugin-types/model-designing-rules'+ | '/develop-plugin/features-and-specs/plugin-types/model-schema'+ | '/develop-plugin/features-and-specs/plugin-types/multilingual-readme'+ | '/develop-plugin/features-and-specs/plugin-types/persistent-storage-kv'+ | '/develop-plugin/features-and-specs/plugin-types/plugin-info-by-manifest'+ | '/develop-plugin/features-and-specs/plugin-types/plugin-logging'+ | '/develop-plugin/features-and-specs/plugin-types/remote-debug-a-plugin'+ | '/develop-plugin/features-and-specs/plugin-types/tool'+ | '/develop-plugin/getting-started/cli'+ | '/develop-plugin/getting-started/getting-started-dify-plugin'+ | '/develop-plugin/publishing/faq/faq'+ | '/develop-plugin/publishing/marketplace-listing/plugin-auto-publish-pr'+ | '/develop-plugin/publishing/marketplace-listing/release-by-file'+ | '/develop-plugin/publishing/marketplace-listing/release-overview'+ | '/develop-plugin/publishing/marketplace-listing/release-to-dify-marketplace'+ | '/develop-plugin/publishing/marketplace-listing/release-to-individual-github-repo'+ | '/develop-plugin/publishing/standards/contributor-covenant-code-of-conduct'+ | '/develop-plugin/publishing/standards/privacy-protection-guidelines'+ | '/develop-plugin/publishing/standards/third-party-signature-verification'++// API Reference paths (English, use apiReferencePathTranslations for other languages)+export type ApiReferencePath =+ | '/api-reference/annotations/create-annotation'+ | '/api-reference/annotations/delete-annotation'+ | '/api-reference/annotations/get-annotation-list'+ | '/api-reference/annotations/initial-annotation-reply-settings'+ | '/api-reference/annotations/query-initial-annotation-reply-settings-task-status'+ | '/api-reference/annotations/update-annotation'+ | '/api-reference/application/get-application-basic-information'+ | '/api-reference/application/get-application-meta-information'+ | '/api-reference/application/get-application-parameters-information'+ | '/api-reference/application/get-application-webapp-settings'+ | '/api-reference/chat/next-suggested-questions'+ | '/api-reference/chat/send-chat-message'+ | '/api-reference/chat/stop-chat-message-generation'+ | '/api-reference/chatflow/next-suggested-questions'+ | '/api-reference/chatflow/send-chat-message'+ | '/api-reference/chatflow/stop-advanced-chat-message-generation'+ | '/api-reference/chunks/add-chunks-to-a-document'+ | '/api-reference/chunks/create-child-chunk'+ | '/api-reference/chunks/delete-a-chunk-in-a-document'+ | '/api-reference/chunks/delete-child-chunk'+ | '/api-reference/chunks/get-a-chunk-details-in-a-document'+ | '/api-reference/chunks/get-child-chunks'+ | '/api-reference/chunks/get-chunks-from-a-document'+ | '/api-reference/chunks/update-a-chunk-in-a-document'+ | '/api-reference/chunks/update-child-chunk'+ | '/api-reference/completion/create-completion-message'+ | '/api-reference/completion/stop-generate'+ | '/api-reference/conversations/conversation-rename'+ | '/api-reference/conversations/delete-conversation'+ | '/api-reference/conversations/get-conversation-history-messages'+ | '/api-reference/conversations/get-conversation-variables'+ | '/api-reference/conversations/get-conversations'+ | '/api-reference/datasets/create-an-empty-knowledge-base'+ | '/api-reference/datasets/delete-a-knowledge-base'+ | '/api-reference/datasets/get-knowledge-base-details'+ | '/api-reference/datasets/get-knowledge-base-list'+ | '/api-reference/datasets/retrieve-chunks-from-a-knowledge-base-/-test-retrieval'+ | '/api-reference/datasets/update-knowledge-base'+ | '/api-reference/documents/create-a-document-from-a-file'+ | '/api-reference/documents/create-a-document-from-text'+ | '/api-reference/documents/delete-a-document'+ | '/api-reference/documents/get-document-detail'+ | '/api-reference/documents/get-document-embedding-status-(progress)'+ | '/api-reference/documents/get-the-document-list-of-a-knowledge-base'+ | '/api-reference/documents/update-a-document-with-a-file'+ | '/api-reference/documents/update-a-document-with-text'+ | '/api-reference/documents/update-document-status'+ | '/api-reference/feedback/get-feedbacks-of-application'+ | '/api-reference/feedback/message-feedback'+ | '/api-reference/files/file-preview'+ | '/api-reference/files/file-upload'+ | '/api-reference/files/file-upload-for-workflow'+ | '/api-reference/metadata-&-tags/bind-dataset-to-knowledge-base-type-tag'+ | '/api-reference/metadata-&-tags/create-new-knowledge-base-type-tag'+ | '/api-reference/metadata-&-tags/delete-knowledge-base-type-tag'+ | '/api-reference/metadata-&-tags/get-knowledge-base-type-tags'+ | '/api-reference/metadata-&-tags/modify-knowledge-base-type-tag-name'+ | '/api-reference/metadata-&-tags/query-tags-bound-to-a-dataset'+ | '/api-reference/metadata-&-tags/unbind-dataset-and-knowledge-base-type-tag'+ | '/api-reference/models/get-available-embedding-models'+ | '/api-reference/tts/speech-to-text'+ | '/api-reference/tts/text-to-audio'+ | '/api-reference/workflow-execution/execute-workflow'+ | '/api-reference/workflow-execution/get-workflow-logs'+ | '/api-reference/workflow-execution/get-workflow-run-detail'+ | '/api-reference/workflow-execution/stop-workflow-task-generation'++// Base path without language prefix+export type DocPathWithoutLangBase =+ | UseDifyPath+ | SelfHostPath+ | DevelopPluginPath+ | ApiReferencePath++// Combined path without language prefix (supports optional #anchor)+export type DocPathWithoutLang =+ | DocPathWithoutLangBase+ | `${DocPathWithoutLangBase}#${string}`++// Full documentation path with language prefix+export type DifyDocPath = `${DocLanguage}/${DocPathWithoutLang}`++// API Reference path translations (English -> other languages)+export const apiReferencePathTranslations: Record<string, { zh?: string; ja?: string }> = {+ '/api-reference/annotations/create-annotation': { zh: '/api-reference/标注管理/创建标注' },+ '/api-reference/annotations/delete-annotation': { zh: '/api-reference/标注管理/删除标注' },+ '/api-reference/annotations/get-annotation-list': { zh: '/api-reference/标注管理/获取标注列表' },+ '/api-reference/annotations/initial-annotation-reply-settings': { zh: '/api-reference/标注管理/标注回复初始设置' },+ '/api-reference/annotations/query-initial-annotation-reply-settings-task-status': { zh: '/api-reference/标注管理/查询标注回复初始设置任务状态' },+ '/api-reference/annotations/update-annotation': { zh: '/api-reference/标注管理/更新标注' },+ '/api-reference/application/get-application-basic-information': { zh: '/api-reference/应用设置/获取应用基本信息', ja: '/api-reference/アプリケーション情報/アプリケーションの基本情報を取得' },+ '/api-reference/application/get-application-meta-information': { zh: '/api-reference/应用配置/获取应用meta信息', ja: '/api-reference/アプリケーション設定/アプリケーションのメタ情報を取得' },+ '/api-reference/application/get-application-parameters-information': { zh: '/api-reference/应用设置/获取应用参数', ja: '/api-reference/アプリケーション情報/アプリケーションのパラメータ情報を取得' },+ '/api-reference/application/get-application-webapp-settings': { zh: '/api-reference/应用设置/获取应用-webapp-设置', ja: '/api-reference/アプリケーション情報/アプリのwebapp設定を取得' },+ '/api-reference/chat/next-suggested-questions': { zh: '/api-reference/对话消息/获取下一轮建议问题列表', ja: '/api-reference/チャットメッセージ/次の推奨質問' },+ '/api-reference/chat/send-chat-message': { zh: '/api-reference/对话消息/发送对话消息', ja: '/api-reference/チャットメッセージ/チャットメッセージを送信' },+ '/api-reference/chat/stop-chat-message-generation': { zh: '/api-reference/对话消息/停止响应', ja: '/api-reference/チャットメッセージ/生成停止' },+ '/api-reference/chatflow/next-suggested-questions': { zh: '/api-reference/对话消息/获取下一轮建议问题列表', ja: '/api-reference/チャットメッセージ/次の推奨質問' },+ '/api-reference/chatflow/send-chat-message': { zh: '/api-reference/对话消息/发送对话消息', ja: '/api-reference/チャットメッセージ/チャットメッセージを送信' },+ '/api-reference/chatflow/stop-advanced-chat-message-generation': { zh: '/api-reference/对话消息/停止响应', ja: '/api-reference/チャットメッセージ/生成を停止' },+ '/api-reference/chunks/add-chunks-to-a-document': { zh: '/api-reference/文档块/向文档添加块', ja: '/api-reference/チャンク/ドキュメントにチャンクを追加' },+ '/api-reference/chunks/create-child-chunk': { zh: '/api-reference/文档块/创建子块', ja: '/api-reference/チャンク/子チャンクを作成' },+ '/api-reference/chunks/delete-a-chunk-in-a-document': { zh: '/api-reference/文档块/删除文档中的块', ja: '/api-reference/チャンク/ドキュメント内のチャンクを削除' },+ '/api-reference/chunks/delete-child-chunk': { zh: '/api-reference/文档块/删除子块', ja: '/api-reference/チャンク/子チャンクを削除' },+ '/api-reference/chunks/get-a-chunk-details-in-a-document': { zh: '/api-reference/文档块/获取文档中的块详情', ja: '/api-reference/チャンク/ドキュメント内のチャンク詳細を取得' },+ '/api-reference/chunks/get-child-chunks': { zh: '/api-reference/文档块/获取子块', ja: '/api-reference/チャンク/子チャンクを取得' },+ '/api-reference/chunks/get-chunks-from-a-document': { zh: '/api-reference/文档块/从文档获取块', ja: '/api-reference/チャンク/ドキュメントからチャンクを取得' },+ '/api-reference/chunks/update-a-chunk-in-a-document': { zh: '/api-reference/文档块/更新文档中的块', ja: '/api-reference/チャンク/ドキュメント内のチャンクを更新' },+ '/api-reference/chunks/update-child-chunk': { zh: '/api-reference/文档块/更新子块', ja: '/api-reference/チャンク/子チャンクを更新' },+ '/api-reference/completion/create-completion-message': { zh: '/api-reference/文本生成/发送消息', ja: '/api-reference/完了メッセージ/完了メッセージの作成' },+ '/api-reference/completion/stop-generate': { zh: '/api-reference/文本生成/停止响应', ja: '/api-reference/完了メッセージ/生成の停止' },+ '/api-reference/conversations/conversation-rename': { zh: '/api-reference/会话管理/会话重命名', ja: '/api-reference/会話管理/会話の名前を変更' },+ '/api-reference/conversations/delete-conversation': { zh: '/api-reference/会话管理/删除会话', ja: '/api-reference/会話管理/会話を削除' },+ '/api-reference/conversations/get-conversation-history-messages': { zh: '/api-reference/会话管理/获取会话历史消息', ja: '/api-reference/会話管理/会話履歴メッセージを取得' },+ '/api-reference/conversations/get-conversation-variables': { zh: '/api-reference/会话管理/获取对话变量', ja: '/api-reference/会話管理/会話変数の取得' },+ '/api-reference/conversations/get-conversations': { zh: '/api-reference/会话管理/获取会话列表', ja: '/api-reference/会話管理/会話を取得' },+ '/api-reference/datasets/create-an-empty-knowledge-base': { zh: '/api-reference/数据集/创建空知识库', ja: '/api-reference/データセット/空のナレッジベースを作成' },+ '/api-reference/datasets/delete-a-knowledge-base': { zh: '/api-reference/数据集/删除知识库', ja: '/api-reference/データセット/ナレッジベースを削除' },+ '/api-reference/datasets/get-knowledge-base-details': { zh: '/api-reference/数据集/获取知识库详情', ja: '/api-reference/データセット/ナレッジベース詳細を取得' },+ '/api-reference/datasets/get-knowledge-base-list': { zh: '/api-reference/数据集/获取知识库列表', ja: '/api-reference/データセット/ナレッジベースリストを取得' },+ '/api-reference/datasets/retrieve-chunks-from-a-knowledge-base-/-test-retrieval': { zh: '/api-reference/数据集/从知识库检索块-/-测试检索', ja: '/api-reference/データセット/ナレッジベースからチャンクを取得-/-テスト検索' },+ '/api-reference/datasets/update-knowledge-base': { zh: '/api-reference/数据集/更新知识库', ja: '/api-reference/データセット/ナレッジベースを更新' },+ '/api-reference/documents/create-a-document-from-a-file': { zh: '/api-reference/文档/从文件创建文档', ja: '/api-reference/ドキュメント/ファイルからドキュメントを作成' },+ '/api-reference/documents/create-a-document-from-text': { zh: '/api-reference/文档/从文本创建文档', ja: '/api-reference/ドキュメント/テキストからドキュメントを作成' },+ '/api-reference/documents/delete-a-document': { zh: '/api-reference/文档/删除文档', ja: '/api-reference/ドキュメント/ドキュメントを削除' },+ '/api-reference/documents/get-document-detail': { zh: '/api-reference/文档/获取文档详情', ja: '/api-reference/ドキュメント/ドキュメント詳細を取得' },+ '/api-reference/documents/get-document-embedding-status-(progress)': { zh: '/api-reference/文档/获取文档嵌入状态(进度)', ja: '/api-reference/ドキュメント/ドキュメント埋め込みステータス(進捗)を取得' },+ '/api-reference/documents/get-the-document-list-of-a-knowledge-base': { zh: '/api-reference/文档/获取知识库的文档列表', ja: '/api-reference/ドキュメント/ナレッジベースのドキュメントリストを取得' },+ '/api-reference/documents/update-a-document-with-a-file': { zh: '/api-reference/文档/用文件更新文档', ja: '/api-reference/ドキュメント/ファイルでドキュメントを更新' },+ '/api-reference/documents/update-a-document-with-text': { zh: '/api-reference/文档/用文本更新文档', ja: '/api-reference/ドキュメント/テキストでドキュメントを更新' },+ '/api-reference/documents/update-document-status': { zh: '/api-reference/文档/更新文档状态', ja: '/api-reference/ドキュメント/ドキュメントステータスを更新' },+ '/api-reference/feedback/get-feedbacks-of-application': { zh: '/api-reference/反馈/获取应用反馈列表', ja: '/api-reference/メッセージフィードバック/アプリのメッセージの「いいね」とフィードバックを取得' },+ '/api-reference/feedback/message-feedback': { zh: '/api-reference/反馈/消息反馈(点赞)', ja: '/api-reference/メッセージフィードバック/メッセージフィードバック' },+ '/api-reference/files/file-preview': { zh: '/api-reference/文件操作/文件预览', ja: '/api-reference/ファイル操作/ファイルプレビュー' },+ '/api-reference/files/file-upload': { zh: '/api-reference/文件管理/上传文件', ja: '/api-reference/ファイル操作/ファイルアップロード' },+ '/api-reference/files/file-upload-for-workflow': { zh: '/api-reference/文件操作-(workflow)/上传文件-(workflow)', ja: '/api-reference/ファイル操作-(ワークフロー)/ファイルアップロード-(ワークフロー用)' },+ '/api-reference/metadata-&-tags/bind-dataset-to-knowledge-base-type-tag': { zh: '/api-reference/元数据和标签/将数据集绑定到知识库类型标签', ja: '/api-reference/メタデータ・タグ/データセットをナレッジベースタイプタグにバインド' },+ '/api-reference/metadata-&-tags/create-new-knowledge-base-type-tag': { zh: '/api-reference/元数据和标签/创建新的知识库类型标签', ja: '/api-reference/メタデータ・タグ/新しいナレッジベースタイプタグを作成' },+ '/api-reference/metadata-&-tags/delete-knowledge-base-type-tag': { zh: '/api-reference/元数据和标签/删除知识库类型标签', ja: '/api-reference/メタデータ・タグ/ナレッジベースタイプタグを削除' },+ '/api-reference/metadata-&-tags/get-knowledge-base-type-tags': { zh: '/api-reference/元数据和标签/获取知识库类型标签', ja: '/api-reference/メタデータ・タグ/ナレッジベースタイプタグを取得' },+ '/api-reference/metadata-&-tags/modify-knowledge-base-type-tag-name': { zh: '/api-reference/元数据和标签/修改知识库类型标签名称', ja: '/api-reference/メタデータ・タグ/ナレッジベースタイプタグ名を変更' },+ '/api-reference/metadata-&-tags/query-tags-bound-to-a-dataset': { zh: '/api-reference/元数据和标签/查询绑定到数据集的标签', ja: '/api-reference/メタデータ・タグ/データセットにバインドされたタグをクエリ' },+ '/api-reference/metadata-&-tags/unbind-dataset-and-knowledge-base-type-tag': { zh: '/api-reference/元数据和标签/解绑数据集和知识库类型标签', ja: '/api-reference/メタデータ・タグ/データセットとナレッジベースタイプタグのバインドを解除' },+ '/api-reference/models/get-available-embedding-models': { zh: '/api-reference/模型/获取可用的嵌入模型', ja: '/api-reference/モデル/利用可能な埋め込みモデルを取得' },+ '/api-reference/tts/speech-to-text': { zh: '/api-reference/语音与文字转换/语音转文字', ja: '/api-reference/音声・テキスト変換/音声からテキストへ' },+ '/api-reference/tts/text-to-audio': { zh: '/api-reference/语音服务/文字转语音', ja: '/api-reference/音声変換/テキストから音声' },+ '/api-reference/workflow-execution/execute-workflow': { zh: '/api-reference/工作流执行/执行-workflow', ja: '/api-reference/ワークフロー実行/ワークフローを実行' },+ '/api-reference/workflow-execution/get-workflow-logs': { zh: '/api-reference/工作流执行/获取-workflow-日志', ja: '/api-reference/ワークフロー実行/ワークフローログを取得' },+ '/api-reference/workflow-execution/get-workflow-run-detail': { zh: '/api-reference/工作流执行/获取workflow执行情况', ja: '/api-reference/ワークフロー実行/ワークフロー実行詳細を取得' },+ '/api-reference/workflow-execution/stop-workflow-task-generation': { zh: '/api-reference/工作流执行/停止响应-(workflow-task)', ja: '/api-reference/ワークフロー実行/生成を停止-(ワークフロータスク)' },+}