RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
feat: Configure the root directory alias #1739 (#2875)
balibabubedb05012d23
diff --git a/web/.umirc.ts b/web/.umirc.tsindex f9a42973b0..5bdb204170 100644--- a/web/.umirc.ts+++ b/web/.umirc.ts@@ -1,3 +1,4 @@+import path from 'path';import { defineConfig } from 'umi';import { appName } from './src/conf.json';import routes from './src/routes';@@ -5,7 +6,7 @@ import routes from './src/routes';export default defineConfig({title: appName,outputPath: 'dist',- // alias: { '@': './src' },+ alias: { root: path.resolve('../') },npmClient: 'npm',base: '/',routes,diff --git a/web/src/components/api-service/chat-overview-modal/api-content.tsx b/web/src/components/api-service/chat-overview-modal/api-content.tsxindex 786273f153..b620599ca9 100644--- a/web/src/components/api-service/chat-overview-modal/api-content.tsx+++ b/web/src/components/api-service/chat-overview-modal/api-content.tsx@@ -1,7 +1,8 @@import HightLightMarkdown from '@/components/highlight-markdown';import { useSetModalState, useTranslate } from '@/hooks/common-hooks';import { Button, Card, Flex, Space } from 'antd';-import apiDoc from '../../../../../docs/references/api.md';+// import apiDoc from '../../../../../api/http_api.md';+import apiDoc from 'root/api/http_api.md';import ChatApiKeyModal from '../chat-api-key-modal';import EmbedModal from '../embed-modal';import { usePreviewChat, useShowEmbedModal } from '../hooks';diff --git a/web/src/components/highlight-markdown/index.less b/web/src/components/highlight-markdown/index.lessindex 325a0c31bb..cfc5f12da7 100644--- a/web/src/components/highlight-markdown/index.less+++ b/web/src/components/highlight-markdown/index.less@@ -4,9 +4,9 @@li {padding: 4px 0px;}- p {- white-space: pre-wrap; // https://stackoverflow.com/questions/60332183/new-line-with-react-markdown- }+ // p {+ // white-space: pre-wrap; // https://stackoverflow.com/questions/60332183/new-line-with-react-markdown+ // }}.code {diff --git a/web/tsconfig.json b/web/tsconfig.jsonindex 824e6cc8df..588e43b5ad 100644--- a/web/tsconfig.json+++ b/web/tsconfig.json@@ -1,4 +1,5 @@{"extends": "./src/.umi/tsconfig.json","@@/*": ["src/.umi/*"],+ "root": ["../*"],}