Browse Source

docs: add search

yaavi 8 months ago
parent
commit
91c75a8c9c

+ 3 - 0
docs/.vitepress/config.ts

@@ -16,6 +16,9 @@ export default defineConfig({
 
 
   themeConfig: {
   themeConfig: {
     logo: { src: '/icon.png', width: 24, height: 24 },
     logo: { src: '/icon.png', width: 24, height: 24 },
+    search: {
+      provider: 'local',
+    }
   },
   },
 
 
   locales: {
   locales: {

+ 1 - 1
docs/.vitepress/zh.ts

@@ -86,7 +86,7 @@ function sidebarGuide(): DefaultTheme.SidebarItem[] {
       ]
       ]
     },
     },
     {
     {
-      text: '阴历/农历',
+      text: '农历(阴历)',
       collapsed: false,
       collapsed: false,
       items: [
       items: [
         { text: '阳历转农历', link: 'to-lunar' },
         { text: '阳历转农历', link: 'to-lunar' },

+ 6 - 1
docs/zh/guide/to-lunar.md

@@ -1,8 +1,13 @@
 # 阳历农历互转
 # 阳历农历互转
 
 
-特别说明,此库中:
+::: info 小提示
+农历又称阴历,本项目中统一称为农历。
+:::
+
+::: info 特别说明
 1. `2057-09-28` 为:农历丁丑(牛)年八月三十;
 1. `2057-09-28` 为:农历丁丑(牛)年八月三十;
 2. `2097-08-07` 为:农历丁巳(蛇)年七月初一。
 2. `2097-08-07` 为:农历丁巳(蛇)年七月初一。
+:::
 
 
 ## 阳历转换农历
 ## 阳历转换农历
 
 

+ 1 - 1
docs/zh/guide/what-is-chinese-days.md

@@ -2,7 +2,7 @@
 
 
 ## 介绍
 ## 介绍
 
 
-本项目提供了一系列用于查询中国节假日、调休日、工作日、24节气、以及农历阳历互转的函数,此外还支持 `iCal` 文件订阅节假日,可供 Google Calendar、Apple Calendar、Microsoft Outlook 等客户端订阅。
+本项目提供了一系列用于查询中国节假日、调休日、工作日、24节气、以及农历阳历互转的函数,此外还支持 `iCal` 文件订阅节假日,可供 Google Calendar、Apple Calendar、Microsoft Outlook 等客户端订阅。
 
 
 每日会定时执行 `Github Action` 自动抓取数据,节假日变化时发送邮件提醒,信息会跟随国务院发布进行更新。
 每日会定时执行 `Github Action` 自动抓取数据,节假日变化时发送邮件提醒,信息会跟随国务院发布进行更新。
 
 

File diff suppressed because it is too large
+ 0 - 0
docs/zh/index.md


Some files were not shown because too many files changed in this diff