From ef79e1305ef991d945b2feee7fc330481d398758 Mon Sep 17 00:00:00 2001 From: dudaodong Date: Wed, 30 Aug 2023 10:37:51 +0800 Subject: [PATCH] doc: add links to site --- docs/.vitepress/en.ts | 19 ++++++++++++++----- docs/.vitepress/zh.ts | 17 +++++++++++++---- docs/api/overview.md | 2 +- docs/index.md | 2 +- 4 files changed, 29 insertions(+), 11 deletions(-) diff --git a/docs/.vitepress/en.ts b/docs/.vitepress/en.ts index 5e420e1..2e18192 100644 --- a/docs/.vitepress/en.ts +++ b/docs/.vitepress/en.ts @@ -1,6 +1,6 @@ import type { DefaultTheme, LocaleSpecificConfig } from 'vitepress' -export const META_URL = 'https://golancet.dev' +export const META_URL = 'https://golancet.cn' export const META_TITLE = 'Lancet' export const META_DESCRIPTION = 'A powerful util function library of Go' @@ -10,12 +10,13 @@ export const enConfig: LocaleSpecificConfig = { head: [ ['meta', { property: 'og:url', content: META_URL }], ['meta', { property: 'og:description', content: META_DESCRIPTION }], - ['meta', { property: 'twitter:url', content: META_URL }], - ['meta', { property: 'twitter:title', content: META_TITLE }], - ['meta', { property: 'twitter:description', content: META_DESCRIPTION }], ], themeConfig: { + editLink: { + pattern: 'https://github.com/duke-git/lancet/edit/v2/docs/:path', + text: 'Suggest changes to this page', + }, nav: [ { text: 'Home', @@ -32,9 +33,17 @@ export const enConfig: LocaleSpecificConfig = { text: 'Links', items: [ { - text: 'Releaselog', + text: 'Discussion', + link: 'https://github.com/duke-git/lancet/discussions', + }, + { + text: 'Changelog', link: 'https://github.com/duke-git/lancet/releases', }, + { + text: 'Contribution', + link: 'https://github.com/duke-git/lancet/blob/main/CONTRIBUTING.en-US.md', + }, ], }, ], diff --git a/docs/.vitepress/zh.ts b/docs/.vitepress/zh.ts index 179b8c9..7ddfb1e 100644 --- a/docs/.vitepress/zh.ts +++ b/docs/.vitepress/zh.ts @@ -1,6 +1,6 @@ import type { DefaultTheme, LocaleSpecificConfig } from 'vitepress' -export const META_URL = 'https://lancet.dev' +export const META_URL = 'https://golancet.cn' export const META_TITLE = 'Lancet' export const META_DESCRIPTION = '一个强大的Go语言工具函数库' @@ -10,12 +10,13 @@ export const zhConfig: LocaleSpecificConfig = { head: [ ['meta', { property: 'og:url', content: META_URL }], ['meta', { property: 'og:description', content: META_DESCRIPTION }], - ['meta', { property: 'twitter:url', content: META_URL }], - ['meta', { property: 'twitter:title', content: META_TITLE }], - ['meta', { property: 'twitter:description', content: META_DESCRIPTION }], ], themeConfig: { + editLink: { + pattern: 'https://github.com/duke-git/lancet/edit/v2/docs/:path', + text: '对本页提出修改建议', + }, outline: { label: '本页内容', }, @@ -40,10 +41,18 @@ export const zhConfig: LocaleSpecificConfig = { { text: '相关链接', items: [ + { + text: '论坛', + link: 'https://github.com/duke-git/lancet/discussions', + }, { text: '更新日志', link: 'https://github.com/duke-git/lancet/releases', }, + { + text: '参与贡献', + link: 'https://github.com/duke-git/lancet/blob/main/CONTRIBUTING.zh-CN.md', + }, ], }, ], diff --git a/docs/api/overview.md b/docs/api/overview.md index 0ee0c0b..59ac2b4 100644 --- a/docs/api/overview.md +++ b/docs/api/overview.md @@ -4,7 +4,7 @@ outline: deep # API概述 -lancet(柳叶刀)是一个强大、全面、高效、可复用的go语言工具函数库。包含25个包,超过600个工具函数。功能涵盖字符串处理、切片处理、网络、并发、加解密、文件处理、时间/日期、流处理、迭代器等等。 +lancet(柳叶刀)是一个功能强大、全面、高效、可复用的go语言工具函数库。包含25个包,超过600个工具函数。功能涵盖字符串处理、切片处理、网络、并发、加解密、文件处理、时间/日期、流处理、迭代器等等。