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/update broken doc links (#2187)
Chenhe Guc9e65f4221e6
diff --git a/api/core/model_runtime/model_providers/ollama/ollama.yaml b/api/core/model_runtime/model_providers/ollama/ollama.yamlindex d796831461a..782667fdab0 100644--- a/api/core/model_runtime/model_providers/ollama/ollama.yaml+++ b/api/core/model_runtime/model_providers/ollama/ollama.yaml@@ -11,7 +11,7 @@ help:en_US: How to integrate with Ollamazh_Hans: 如何集成 Ollamaurl:- en_US: https://docs.dify.ai/advanced/model-configuration/ollama+ en_US: https://docs.dify.ai/tutorials/model-configuration/ollamasupported_model_types:- llm- text-embeddingdiff --git a/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/layout.tsx b/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/layout.tsxindex 86e3197d9ee..89ff28e5ac4 100644--- a/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/layout.tsx+++ b/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/layout.tsx@@ -35,6 +35,7 @@ import FloatPopoverContainer from '@/app/components/base/float-popover-containerimport DatasetDetailContext from '@/context/dataset-detail'import { DataSourceType } from '@/models/datasets'import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints'+import { LanguagesSupported, getModelRuntimeSupported } from '@/utils/language'export type IAppDetailLayoutProps = {children: React.ReactNode@@ -104,6 +105,7 @@ type IExtraInfoProps = {const ExtraInfo = ({ isMobile, relatedApps }: IExtraInfoProps) => {const locale = getLocaleOnClient()+ const language = getModelRuntimeSupported(locale)const [isShowTips, { toggle: toggleTips, set: setShowTips }] = useBoolean(!isMobile)const { t } = useTranslation()@@ -147,7 +149,11 @@ const ExtraInfo = ({ isMobile, relatedApps }: IExtraInfoProps) => {<div className='text-xs text-gray-500 mt-2'>{t('common.datasetMenus.emptyTip')}</div><aclassName='inline-flex items-center text-xs text-primary-600 mt-2 cursor-pointer'- href={`https://docs.dify.ai/${locale === 'zh-Hans' ? 'v/zh-hans' : ''}/application/prompt-engineering`}+ href={+ language === LanguagesSupported[1]+ ? 'https://docs.dify.ai/v/zh-hans/guides/application-design/prompt-engineering'+ : 'https://docs.dify.ai/user-guide/creating-dify-apps/prompt-engineering'+ }target='_blank'><BookOpenIcon className='mr-1' />diff --git a/web/app/activate/activateForm.tsx b/web/app/activate/activateForm.tsxindex 40595b71fd1..5c79883d9e7 100644--- a/web/app/activate/activateForm.tsx+++ b/web/app/activate/activateForm.tsx@@ -207,7 +207,7 @@ const ActivateForm = () => {<LinkclassName='text-primary-600'target={'_blank'}- href={`https://docs.dify.ai/${language !== LanguagesSupportedUnderscore[1] ? '' : `v/${locale.toLowerCase()}`}/community/open-source`}+ href={`https://docs.dify.ai/${language !== LanguagesSupportedUnderscore[1] ? 'user-agreement' : `v/${locale.toLowerCase()}/policies`}/open-source`}>{t('login.license.link')}</Link></div></div>diff --git a/web/app/components/app/configuration/config-prompt/conversation-histroy/history-panel.tsx b/web/app/components/app/configuration/config-prompt/conversation-histroy/history-panel.tsxindex ec6d20a5907..40ed1e2324b 100644--- a/web/app/components/app/configuration/config-prompt/conversation-histroy/history-panel.tsx+++ b/web/app/components/app/configuration/config-prompt/conversation-histroy/history-panel.tsx@@ -7,6 +7,7 @@ import OperationBtn from '@/app/components/app/configuration/base/operation-btn'import Panel from '@/app/components/app/configuration/base/feature-panel'import { MessageClockCircle } from '@/app/components/base/icons/src/vender/solid/general'import I18n from '@/context/i18n'+import { LanguagesSupported, getModelRuntimeSupported } from '@/utils/language'type Props = {showWarning: boolean@@ -19,6 +20,7 @@ const HistoryPanel: FC<Props> = ({}) => {const { t } = useTranslation()const { locale } = useContext(I18n)+ const language = getModelRuntimeSupported(locale)return (<Panel@@ -43,7 +45,14 @@ const HistoryPanel: FC<Props> = ({>{showWarning && (<div className='flex justify-between py-2 px-3 rounded-b-xl bg-[#FFFAEB] text-xs text-gray-700'>- <div>{t('appDebug.feature.conversationHistory.tip')} <a href={`https://docs.dify.ai/${locale === 'zh-Hans' ? 'v/zh-hans/' : ''}advanced/prompt-engineering`} target='_blank' className='text-[#155EEF]'>{t('appDebug.feature.conversationHistory.learnMore')}</a></div>+ <div>{t('appDebug.feature.conversationHistory.tip')}+ <a href={`${language === LanguagesSupported[1]+ ? 'https://docs.dify.ai/v/zh-hans/guides/application-design/prompt-engineering'+ : 'https://docs.dify.ai/features/prompt-engineering'}`}+ target='_blank'+ className='text-[#155EEF]'>{t('appDebug.feature.conversationHistory.learnMore')}+ </a>+ </div></div>)}</Panel>diff --git a/web/app/components/app/configuration/dataset-config/settings-modal/index.tsx b/web/app/components/app/configuration/dataset-config/settings-modal/index.tsxindex e87a69767e6..c9336b23861 100644--- a/web/app/components/app/configuration/dataset-config/settings-modal/index.tsx+++ b/web/app/components/app/configuration/dataset-config/settings-modal/index.tsx@@ -163,7 +163,7 @@ const SettingsModal: FC<SettingsModalProps> = ({className='block px-3 py-2 w-full h-[88px] rounded-lg bg-gray-100 text-sm outline-none appearance-none resize-none'placeholder={t('datasetSettings.form.descPlaceholder') || ''}/>- <a className='mt-2 flex items-center h-[18px] px-3 text-xs text-gray-500' href="https://docs.dify.ai/advanced/datasets#how-to-write-a-good-dataset-description" target='_blank'>+ <a className='mt-2 flex items-center h-[18px] px-3 text-xs text-gray-500' href="https://docs.dify.ai/features/datasets#how-to-write-a-good-dataset-description" target='_blank'><BookOpenIcon className='w-3 h-[18px] mr-1' />{t('datasetSettings.form.descWrite')}</a>@@ -226,7 +226,7 @@ const SettingsModal: FC<SettingsModalProps> = ({<div><div>{t('datasetSettings.form.retrievalSetting.title')}</div><div className='leading-[18px] text-xs font-normal text-gray-500'>- <a target='_blank' href='https://docs.dify.ai/advanced/retrieval-augment' className='text-[#155eef]'>{t('datasetSettings.form.retrievalSetting.learnMore')}</a>+ <a target='_blank' href='https://docs.dify.ai/features/retrieval-augment' className='text-[#155eef]'>{t('datasetSettings.form.retrievalSetting.learnMore')}</a>{t('datasetSettings.form.retrievalSetting.description')}</div></div>diff --git a/web/app/components/app/configuration/prompt-mode/advanced-mode-waring.tsx b/web/app/components/app/configuration/prompt-mode/advanced-mode-waring.tsxindex 2eaa1f83f97..9f1a9eaabe4 100644--- a/web/app/components/app/configuration/prompt-mode/advanced-mode-waring.tsx+++ b/web/app/components/app/configuration/prompt-mode/advanced-mode-waring.tsx@@ -5,7 +5,7 @@ import { useTranslation } from 'react-i18next'import { useContext } from 'use-context-selector'import I18n from '@/context/i18n'import { FlipBackward } from '@/app/components/base/icons/src/vender/line/arrows'-+import { LanguagesSupported, getModelRuntimeSupported } from '@/utils/language'type Props = {onReturnToSimpleMode: () => void}@@ -15,6 +15,7 @@ const AdvancedModeWarning: FC<Props> = ({}) => {const { t } = useTranslation()const { locale } = useContext(I18n)+ const language = getModelRuntimeSupported(locale)const [show, setShow] = React.useState(true)if (!show)return null@@ -26,7 +27,7 @@ const AdvancedModeWarning: FC<Props> = ({<span className='text-gray-700'>{t('appDebug.promptMode.advancedWarning.description')}</span><aclassName='font-medium text-[#155EEF]'- href={`https://docs.dify.ai/${locale === 'zh-Hans' ? 'v/zh-hans/' : ''}advanced/prompt-engineering`}+ href={`https://docs.dify.ai/${language === LanguagesSupported[1] ? 'v/zh-hans/guides/application-design/prompt-engineering' : 'features/prompt-engineering'}`}target='_blank'>{t('appDebug.promptMode.advancedWarning.learnMore')}diff --git a/web/app/components/app/overview/customize/index.tsx b/web/app/components/app/overview/customize/index.tsxindex 1f525619184..bc3ef3f2ce6 100644--- a/web/app/components/app/overview/customize/index.tsx+++ b/web/app/components/app/overview/customize/index.tsx@@ -100,7 +100,16 @@ const CustomizeModal: FC<IShareLinkProps> = ({<p className='mt-2 text-base font-medium text-gray-800'>{t(`${prefixCustomize}.way2.name`)}</p><ButtonclassName='w-36 mt-2'- onClick={() => window.open(`https://docs.dify.ai/${language !== LanguagesSupportedUnderscore[1] ? '' : `v/${locale.toLowerCase()}`}/application/developing-with-apis`, '_blank')}+ onClick={() =>+ window.open(+ `https://docs.dify.ai/${+ language !== LanguagesSupportedUnderscore[1]+ ? 'user-guide/launching-dify-apps/developing-with-apis'+ : `v/${locale.toLowerCase()}/guides/application-publishing/developing-with-apis`+ }`,+ '_blank',+ )+ }><span className='text-sm text-gray-800'>{t(`${prefixCustomize}.way2.operation`)}</span><ArrowTopRightOnSquareIcon className='w-4 h-4 ml-1 text-gray-800 shrink-0' />diff --git a/web/app/components/datasets/create/step-two/index.tsx b/web/app/components/datasets/create/step-two/index.tsxindex c894f137470..3db88b9342b 100644--- a/web/app/components/datasets/create/step-two/index.tsx+++ b/web/app/components/datasets/create/step-two/index.tsx@@ -738,7 +738,7 @@ const StepTwo = ({<div className={s.label}>{t('datasetSettings.form.retrievalSetting.title')}<div className='leading-[18px] text-xs font-normal text-gray-500'>- <a target='_blank' href='https://docs.dify.ai/advanced/retrieval-augment' className='text-[#155eef]'>{t('datasetSettings.form.retrievalSetting.learnMore')}</a>+ <a target='_blank' href='https://docs.dify.ai/features/retrieval-augment' className='text-[#155eef]'>{t('datasetSettings.form.retrievalSetting.learnMore')}</a>{t('datasetSettings.form.retrievalSetting.longDescription')}</div></div>diff --git a/web/app/components/datasets/hit-testing/modify-retrieval-modal.tsx b/web/app/components/datasets/hit-testing/modify-retrieval-modal.tsxindex 0aed0a02fa2..062c32b96ea 100644--- a/web/app/components/datasets/hit-testing/modify-retrieval-modal.tsx+++ b/web/app/components/datasets/hit-testing/modify-retrieval-modal.tsx@@ -76,7 +76,7 @@ const ModifyRetrievalModal: FC<Props> = ({<div className='text-base font-semibold text-gray-900'><div>{t('datasetSettings.form.retrievalSetting.title')}</div><div className='leading-[18px] text-xs font-normal text-gray-500'>- <a target='_blank' href='https://docs.dify.ai/advanced/retrieval-augment' className='text-[#155eef]'>{t('datasetSettings.form.retrievalSetting.learnMore')}</a>+ <a target='_blank' href='https://docs.dify.ai/features/retrieval-augment' className='text-[#155eef]'>{t('datasetSettings.form.retrievalSetting.learnMore')}</a>{t('datasetSettings.form.retrievalSetting.description')}</div></div>diff --git a/web/app/components/datasets/settings/form/index.tsx b/web/app/components/datasets/settings/form/index.tsxindex b919ef11cf5..6fab9bb2d44 100644--- a/web/app/components/datasets/settings/form/index.tsx+++ b/web/app/components/datasets/settings/form/index.tsx@@ -146,7 +146,7 @@ const Form = () => {value={description}onChange={e => setDescription(e.target.value)}/>- <a className='flex items-center h-[18px] px-3 text-xs text-gray-500' href="https://docs.dify.ai/advanced/datasets#how-to-write-a-good-dataset-description" target='_blank'>+ <a className='flex items-center h-[18px] px-3 text-xs text-gray-500' href="https://docs.dify.ai/features/datasets#how-to-write-a-good-dataset-description" target='_blank'><BookOpenIcon className='w-3 h-[18px] mr-1' />{t('datasetSettings.form.descWrite')}</a>@@ -209,7 +209,7 @@ const Form = () => {<div><div>{t('datasetSettings.form.retrievalSetting.title')}</div><div className='leading-[18px] text-xs font-normal text-gray-500'>- <a target='_blank' href='https://docs.dify.ai/advanced/retrieval-augment' className='text-[#155eef]'>{t('datasetSettings.form.retrievalSetting.learnMore')}</a>+ <a target='_blank' href='https://docs.dify.ai/features/retrieval-augment' className='text-[#155eef]'>{t('datasetSettings.form.retrievalSetting.learnMore')}</a>{t('datasetSettings.form.retrievalSetting.description')}</div></div>diff --git a/web/i18n/lang/common.en.ts b/web/i18n/lang/common.en.tsindex 2b08c05cb86..a31c2d15108 100644--- a/web/i18n/lang/common.en.ts+++ b/web/i18n/lang/common.en.ts@@ -345,7 +345,7 @@ const translation = {apiBasedExtension: {title: 'API extensions provide centralized API management, simplifying configuration for easy use across Dify\'s applications.',link: 'Learn how to develop your own API Extension.',- linkUrl: 'https://docs.dify.ai/advanced/api_based_extension',+ linkUrl: 'https://docs.dify.ai/features/extension/api_based_extension',add: 'Add API Extension',selector: {title: 'API Extension',diff --git a/web/i18n/lang/common.pt.ts b/web/i18n/lang/common.pt.tsindex 2709692a216..a0957bb23c4 100644--- a/web/i18n/lang/common.pt.ts+++ b/web/i18n/lang/common.pt.ts@@ -174,7 +174,7 @@ const translation = {apiBasedExtension: {title: 'As extensões de API fornecem gerenciamento centralizado de API, simplificando a configuração para uso fácil em aplicativos da Dify.',link: 'Saiba como desenvolver sua própria Extensão de API.',- linkUrl: 'https://docs.dify.ai/advanced/api_based_extension',+ linkUrl: 'https://docs.dify.ai/features/extension/api_based_extension',add: 'Adicionar Extensão de API',selector: {title: 'Extensão de API',