feat: Add support for slash commands, optimize command selector logic. (#24723)
This commit is contained in:
parent
a174ee419e
commit
27d09d1783
10 changed files with 274 additions and 32 deletions
|
|
@ -32,7 +32,7 @@ export const useGetPricingPageLanguage = () => {
|
|||
return getPricingPageLanguage(locale)
|
||||
}
|
||||
|
||||
const defaultDocBaseUrl = 'https://docs.dify.ai'
|
||||
export const defaultDocBaseUrl = 'https://docs.dify.ai'
|
||||
export const useDocLink = (baseUrl?: string): ((path?: string, pathMap?: { [index: string]: string }) => string) => {
|
||||
let baseDocUrl = baseUrl || defaultDocBaseUrl
|
||||
baseDocUrl = (baseDocUrl.endsWith('/')) ? baseDocUrl.slice(0, -1) : baseDocUrl
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue