From d29a2e1368d20f868c32dea457fe27784a2bbed4 Mon Sep 17 00:00:00 2001 From: lencx Date: Tue, 20 Feb 2024 16:14:58 +0800 Subject: [PATCH] chore: blog --- configs/noi.mode.cn.json | 2 +- configs/noi.mode.json | 2 +- website/blog/authors.yml | 2 +- website/blog/noi.md | 6 ++++++ website/docusaurus.config.ts | 18 ++++++++++++++++-- .../docusaurus-plugin-content-blog/noi.md | 9 +++++++++ website/package.json | 2 +- 7 files changed, 35 insertions(+), 6 deletions(-) create mode 100644 website/blog/noi.md create mode 100644 website/i18n/zh-CN/docusaurus-plugin-content-blog/noi.md diff --git a/configs/noi.mode.cn.json b/configs/noi.mode.cn.json index 762ce62..6a7ed04 100644 --- a/configs/noi.mode.cn.json +++ b/configs/noi.mode.cn.json @@ -36,7 +36,7 @@ { "id": "noi:gemini", "parent": "noi@ai", - "text": "gemini", + "text": "Gemini", "url": "https://gemini.google.com" }, { diff --git a/configs/noi.mode.json b/configs/noi.mode.json index 8861fa2..8d8196e 100644 --- a/configs/noi.mode.json +++ b/configs/noi.mode.json @@ -42,7 +42,7 @@ { "id": "noi:gemini", "parent": "noi@ai", - "text": "gemini", + "text": "Gemini", "url": "https://gemini.google.com" }, { diff --git a/website/blog/authors.yml b/website/blog/authors.yml index 1f01c38..6ac715a 100644 --- a/website/blog/authors.yml +++ b/website/blog/authors.yml @@ -1,5 +1,5 @@ lencx: name: lencx - title: 'FE' + title: Web • Rust • Tauri • Electron url: https://github.com/lencx image_url: https://github.com/lencx.png diff --git a/website/blog/noi.md b/website/blog/noi.md new file mode 100644 index 0000000..87689fb --- /dev/null +++ b/website/blog/noi.md @@ -0,0 +1,6 @@ +--- +title: Hello, Noi +authors: [lencx] +--- + +🚀 Power Your World with AI - Explore, Extend, Empower. diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index 78a467a..e081fff 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -26,7 +26,7 @@ const config: Config = { // may want to replace "en" with "zh-Hans". i18n: { defaultLocale: 'en', - locales: ['en'], + locales: ['en', 'zh-CN'], }, plugins: [ @@ -69,7 +69,21 @@ const config: Config = { // position: 'left', // label: 'Tutorial', // }, - // {to: '/blog', label: 'Blog', position: 'left'}, + { to: '/blog', label: 'Blog', position: 'left' }, + { + type: 'localeDropdown', + position: 'right', + dropdownItemsAfter: [ + { + type: 'html', + value: '
', + }, + { + href: 'https://github.com/lencx/Noi', + label: 'Help Us Translate', + }, + ], + }, { href: 'https://github.com/lencx/noi', label: 'GitHub', diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-blog/noi.md b/website/i18n/zh-CN/docusaurus-plugin-content-blog/noi.md new file mode 100644 index 0000000..2d3c1d8 --- /dev/null +++ b/website/i18n/zh-CN/docusaurus-plugin-content-blog/noi.md @@ -0,0 +1,9 @@ +--- +title: 你好, Noi +authors: [lencx] +--- + +🚀 用 AI 点亮您的世界 - 探索、扩展、赋能。 + +- [Noi:跨平台定制化浏览器,最得力 AI 助手](https://mp.weixin.qq.com/s/dAN7LOw7mH609HdAyEvXfg) +- [Noi:插件介绍](https://mp.weixin.qq.com/s/M6gO6MdK5obCvs2LIBZA3w) diff --git a/website/package.json b/website/package.json index a347d96..5af8c29 100644 --- a/website/package.json +++ b/website/package.json @@ -1,5 +1,5 @@ { - "name": "noi", + "name": "website", "version": "0.0.0", "private": true, "scripts": {