mirror of
https://github.com/langgenius/dify.git
synced 2026-09-05 08:48:10 +08:00
fix: align documentation links with stable anchors (#41384)
This commit is contained in:
parent
d94204ec33
commit
a38ddd9d02
@ -715,7 +715,7 @@ services:
|
||||
|
||||
# ssrf_proxy server
|
||||
# for more information, please refer to
|
||||
# https://docs.dify.ai/learn-more/faq/install-faq#18-why-is-ssrf-proxy-needed%3F
|
||||
# https://docs.dify.ai/en/self-host/deploy/troubleshooting/docker-issues#why-is-ssrf-proxy-needed
|
||||
ssrf_proxy:
|
||||
image: ubuntu/squid:latest
|
||||
restart: always
|
||||
|
||||
@ -193,7 +193,7 @@ services:
|
||||
|
||||
# ssrf_proxy server
|
||||
# for more information, please refer to
|
||||
# https://docs.dify.ai/learn-more/faq/install-faq#18-why-is-ssrf-proxy-needed%3F
|
||||
# https://docs.dify.ai/en/self-host/deploy/troubleshooting/docker-issues#why-is-ssrf-proxy-needed
|
||||
ssrf_proxy:
|
||||
image: ubuntu/squid:latest
|
||||
restart: always
|
||||
|
||||
@ -721,7 +721,7 @@ services:
|
||||
|
||||
# ssrf_proxy server
|
||||
# for more information, please refer to
|
||||
# https://docs.dify.ai/learn-more/faq/install-faq#18-why-is-ssrf-proxy-needed%3F
|
||||
# https://docs.dify.ai/en/self-host/deploy/troubleshooting/docker-issues#why-is-ssrf-proxy-needed
|
||||
ssrf_proxy:
|
||||
image: ubuntu/squid:latest
|
||||
restart: always
|
||||
|
||||
@ -99,7 +99,7 @@ describe('useAvailableNodesMetaData', () => {
|
||||
expect(result.current.nodesMap?.[BlockEnum.AgentV2]?.checkValid).toEqual(expect.any(Function))
|
||||
expect(result.current.nodesMap?.[BlockEnum.Agent]?.checkValid).toEqual(expect.any(Function))
|
||||
expect(result.current.nodesMap?.[BlockEnum.AgentV2]?.metaData.helpLinkUri).toBe(
|
||||
'/docs/use-dify/nodes/agent#choose-an-agent',
|
||||
'/docs/use-dify/nodes/agent#new-agent',
|
||||
)
|
||||
})
|
||||
|
||||
@ -115,7 +115,7 @@ describe('useAvailableNodesMetaData', () => {
|
||||
expect(result.current.nodesMap?.[BlockEnum.Agent]).toBeDefined()
|
||||
expect(result.current.nodesMap?.[BlockEnum.AgentV2]).toBeDefined()
|
||||
expect(result.current.nodesMap?.[BlockEnum.Agent]?.metaData.helpLinkUri).toBe(
|
||||
'/docs/use-dify/nodes/agent',
|
||||
'/docs/use-dify/nodes/agent#classic-agent',
|
||||
)
|
||||
})
|
||||
})
|
||||
|
||||
@ -113,7 +113,7 @@ describe('agent/default', () => {
|
||||
})
|
||||
|
||||
it('links directly to the New Agent section of the shared agent node document', () => {
|
||||
expect(nodeDefault.metaData.helpLinkUri).toBe('agent#choose-an-agent')
|
||||
expect(nodeDefault.metaData.helpLinkUri).toBe('agent#new-agent')
|
||||
})
|
||||
|
||||
it('identifies version 2 agent data as Agent v2', () => {
|
||||
|
||||
@ -8,7 +8,7 @@ import { hasValidAgentBinding } from './types'
|
||||
const metaData = genNodeMetaData({
|
||||
sort: 3,
|
||||
type: BlockEnum.AgentV2,
|
||||
helpLinkUri: 'agent#choose-an-agent',
|
||||
helpLinkUri: 'agent#new-agent',
|
||||
})
|
||||
|
||||
const nodeDefault: NodeDefault<AgentV2NodeType> = {
|
||||
|
||||
@ -10,6 +10,7 @@ import { genNodeMetaData } from '../../utils'
|
||||
const metaData = genNodeMetaData({
|
||||
sort: 3,
|
||||
type: BlockEnum.Agent,
|
||||
helpLinkUri: 'agent#classic-agent',
|
||||
})
|
||||
|
||||
const nodeDefault: NodeDefault<AgentNodeType> = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user