Commit 0b05d293 authored by JzoNg's avatar JzoNg

add doc for workflow

parent 6f33163f
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
import { useContext } from 'use-context-selector' import { useContext } from 'use-context-selector'
import TemplateEn from './template/template.en.mdx' import TemplateEn from './template/template.en.mdx'
import TemplateZh from './template/template.zh.mdx' import TemplateZh from './template/template.zh.mdx'
import TemplateWorkflowEn from './template/template_workflow.en.mdx'
import TemplateWorkflowZh from './template/template_workflow.zh.mdx'
import TemplateChatEn from './template/template_chat.en.mdx' import TemplateChatEn from './template/template_chat.en.mdx'
import TemplateChatZh from './template/template_chat.zh.mdx' import TemplateChatZh from './template/template_chat.zh.mdx'
import I18n from '@/context/i18n' import I18n from '@/context/i18n'
...@@ -22,13 +24,15 @@ const Doc = ({ appDetail }: IDocProps) => { ...@@ -22,13 +24,15 @@ const Doc = ({ appDetail }: IDocProps) => {
return ( return (
<article className="prose prose-xl" > <article className="prose prose-xl" >
{appDetail?.mode === 'completion' {appDetail?.mode === 'workflow' && (
? ( locale !== LanguagesSupported[1] ? <TemplateWorkflowEn appDetail={appDetail} variables={variables} inputs={inputs} /> : <TemplateWorkflowZh appDetail={appDetail} variables={variables} inputs={inputs} />
locale !== LanguagesSupported[1] ? <TemplateEn appDetail={appDetail} variables={variables} inputs={inputs} /> : <TemplateZh appDetail={appDetail} variables={variables} inputs={inputs} /> )}
) {appDetail?.mode === 'completion' && (
: ( locale !== LanguagesSupported[1] ? <TemplateEn appDetail={appDetail} variables={variables} inputs={inputs} /> : <TemplateZh appDetail={appDetail} variables={variables} inputs={inputs} />
locale !== LanguagesSupported[1] ? <TemplateChatEn appDetail={appDetail} variables={variables} inputs={inputs} /> : <TemplateChatZh appDetail={appDetail} variables={variables} inputs={inputs} /> )}
)} {(appDetail?.mode !== 'completion' && appDetail?.mode !== 'workflow') && (
locale !== LanguagesSupported[1] ? <TemplateChatEn appDetail={appDetail} variables={variables} inputs={inputs} /> : <TemplateChatZh appDetail={appDetail} variables={variables} inputs={inputs} />
)}
</article> </article>
) )
} }
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment