Skip to content

Commit

Permalink
feat: add site search
Browse files Browse the repository at this point in the history
  • Loading branch information
wwsun committed Feb 21, 2024
1 parent f446389 commit 441c151
Show file tree
Hide file tree
Showing 5 changed files with 1,182 additions and 21 deletions.
25 changes: 13 additions & 12 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import type { Config } from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';

const config: Config = {
title: '使用 Tango 构建你的低代码生产力工具',
tagline:
'基于源代码 AST 实现可视化搭建操作,支持实时出码,不受私有 DSL 和协议限制',
title: '基于源码的低代码引擎',
tagline: '基于你的已有代码库实现可视化搭建操作,实时出码,无私有搭建协议',
favicon: 'img/favicon.ico',

// Set the production url of your site here
Expand All @@ -26,8 +25,8 @@ const config: Config = {
// useful metadata like html lang. For example, if your site is Chinese, you
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'zh-CN',
locales: ['zh-CN'],
defaultLocale: 'zh-Hans',
locales: ['zh-Hans'],
},

presets: [
Expand Down Expand Up @@ -55,16 +54,18 @@ const config: Config = {
],
],

plugins: [require.resolve('docusaurus-lunr-search')],

themeConfig: {
// Replace with your project's social card
image: 'img/social-card.png',
announcementBar: {
id: 'notion_alert',
content: '🏗 当前版本为 alpha 版本,相关文档正在编写之中,敬请期待!',
backgroundColor: 'var(--ifm-color-primary-contrast-background)',
textColor: 'var(--ifm-color-primary-contrast-foreground)',
isCloseable: false,
},
// announcementBar: {
// id: 'notion_alert',
// content: '🏗 当前版本为 alpha 版本,相关文档正在编写之中,敬请期待!',
// backgroundColor: 'var(--ifm-color-primary-contrast-background)',
// textColor: 'var(--ifm-color-primary-contrast-foreground)',
// isCloseable: false,
// },
navbar: {
title: '',
logo: {
Expand Down
Loading

0 comments on commit 441c151

Please sign in to comment.