fix:change docs url (#5307)

This commit is contained in:
dreamer6680
2025-07-24 13:00:27 +08:00
committed by GitHub
parent 8e61029505
commit fa60f546d4
80 changed files with 285 additions and 94 deletions

View File

@@ -133,7 +133,7 @@ const AIChatSettingsModal = ({
w={'1rem'}
cursor={'pointer'}
onClick={() => {
window.open(getDocPath('/docs/guide/course/ai_settings/'), '_blank');
window.open(getDocPath('/docs/introduction/guide/course/ai_settings/'), '_blank');
}}
/>
)}

View File

@@ -144,7 +144,9 @@ const InputGuideConfig = ({
<Flex mt={8} alignItems={'center'}>
<FormLabel>{t('chat:custom_input_guide_url')}</FormLabel>
<Flex
onClick={() => window.open(getDocPath('/docs/guide/course/chat_input_guide/'))}
onClick={() =>
window.open(getDocPath('/docs/introduction/guide/course/chat_input_guide/'))
}
color={'primary.700'}
alignItems={'center'}
cursor={'pointer'}

View File

@@ -97,7 +97,9 @@ const ApiKeyTable = ({ tips, appId }: { tips: string; appId?: string }) => {
</Box>
{feConfigs?.docUrl && (
<Link
href={feConfigs.openAPIDocUrl || getDocPath('/docs/development/openapi')}
href={
feConfigs.openAPIDocUrl || getDocPath('/docs/introduction/development/openapi')
}
target={'_blank'}
ml={1}
color={'primary.500'}

View File

@@ -101,7 +101,7 @@ const LafAccountModal = ({
<Box fontSize={'sm'} color={'myGray.500'}>
<Box>{t('common:support.user.Laf account intro')}</Box>
<Box textDecoration={'underline'}>
<Link href={getDocPath('/docs/guide/dashboard/workflow/laf/')} isExternal>
<Link href={getDocPath('/docs/introduction/guide/dashboard/workflow/laf/')} isExternal>
{t('common:support.user.Laf account course')}
</Link>
</Box>

View File

@@ -395,7 +395,7 @@ function EditLinkModal({
/>
</Flex>
<Link
href={getDocPath('/docs/development/openapi/share')}
href={getDocPath('/docs/introduction/development/openapi/share')}
target={'_blank'}
fontSize={'xs'}
color={'myGray.500'}

View File

@@ -77,7 +77,7 @@ const TemplateImportModal = ({
display={'flex'}
alignItems={'center'}
gap={0.5}
href={getDocPath('/docs/guide/knowledge_base/template/')}
href={getDocPath('/docs/introduction/guide/knowledge_base/template/')}
color="primary.600"
target="_blank"
>

View File

@@ -125,7 +125,7 @@ const WebsiteConfigModal = ({
{t('common:core.dataset.website.Config Description')}
{feConfigs?.docUrl && (
<Link
href={getDocPath('/docs/guide/knowledge_base/websync/')}
href={getDocPath('/docs/introduction/guide/knowledge_base/websync/')}
target="_blank"
textDecoration={'underline'}
color={'blue.700'}

View File

@@ -83,7 +83,7 @@ const CustomLinkImport = () => {
<Box color={'myGray.500'} fontSize={'sm'}>
{feConfigs?.docUrl && (
<Link
href={getDocPath('/docs/guide/knowledge_base/websync/#选择器如何使用')}
href={getDocPath('/docs/introduction/guide/knowledge_base/websync/#选择器如何使用')}
target="_blank"
>
{t('common:core.dataset.website.Selector Course')}

View File

@@ -121,7 +121,7 @@ const LoginForm = ({ setPageType, loginSuccess }: Props) => {
{t('login:policy_tip')}
<Link
ml={1}
href={getDocPath('/docs/agreement/terms/')}
href={getDocPath('/docs/protocol/terms/')}
target={'_blank'}
color={'primary.700'}
>
@@ -129,7 +129,7 @@ const LoginForm = ({ setPageType, loginSuccess }: Props) => {
</Link>
<Box mx={1}>&</Box>
<Link
href={getDocPath('/docs/agreement/privacy/')}
href={getDocPath('/docs/protocol/privacy/')}
target={'_blank'}
color={'primary.700'}
>

View File

@@ -78,7 +78,7 @@ const CookiesModal = () => {
textDecorationLine={'underline'}
cursor={'pointer'}
w={'fit-content'}
onClick={() => window.open(getDocPath('/docs/agreement/privacy/'), '_blank')}
onClick={() => window.open(getDocPath('/docs/protocol/privacy/'), '_blank')}
>
{t('login:privacy_policy')}
</Box>

View File

@@ -710,7 +710,7 @@ const Other = ({ onOpenContact }: { onOpenContact: () => void }) => {
<Grid gridGap={4}>
{feConfigs?.docUrl && (
<Link
href={getDocPath('/docs/intro')}
href={getDocPath('/docs/introduction')}
target="_blank"
textDecoration={'none !important'}
{...ButtonStyles}

View File

@@ -23,7 +23,7 @@ const More = () => {
{
icon: 'common/courseLight',
label: t('common:core.app.tool_label.doc'),
link: getDocPath('/docs/intro')
link: getDocPath('/docs/introduction')
}
]
: []),