From 14680562c38033e43b067b709825b27f555ce3d1 Mon Sep 17 00:00:00 2001 From: seven Date: Tue, 24 Sep 2024 23:25:01 +0800 Subject: [PATCH] feat: improve english seo Signed-off-by: seven --- docs/.vitepress/config.mts | 37 ++++++++++++++++++++++++++++ docs/en/products.md | 49 -------------------------------------- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 40 insertions(+), 52 deletions(-) delete mode 100644 docs/en/products.md diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index ac02bc9..0f033ab 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -3,6 +3,9 @@ import {defineConfig} from 'vitepress' const titleZh = 'ServerlessInsight| 全栈Serverless应用开发运维平台'; const descZh = 'ServerlessInsight是一个开源的Serverless应用开发运维平台, 提供了全栈Serverless应用开发、部署、监控、调试、优化等功能。支持基础设施即代码的开发实践'; const icon = '/favicon.ico'; + +const titleEn = 'ServerlessInsight | Full-stack Serverless Development and Operation Platform'; +const descEn = 'ServerlessInsight is an open-source full-stack serverless development and operation platform, providing full-stack serverless application development, deployment, monitoring, debugging, optimization and other functions. Support infrastructure as code development practices'; // https://vitepress.dev/reference/site-config export default defineConfig({ lastUpdated: true, @@ -64,6 +67,40 @@ export default defineConfig({ en: { label: 'English', lang: 'en', + title: titleEn, + description: descEn, + head: [ + ['link', {rel: 'icon', icon}], + ['meta', {name: 'description', content: descEn}], + ['meta', { + name: 'keywords', + content: "ServerlessInsight, serverless platform, multi-cloud serverless management, serverless application development, serverless lifecycle management, infrastructure as code, ServerlessInsight features, serverless architecture, cross-provider serverless management, multi-vendor serverless deployment, Geekfun open-source community, serverless development tools, cloud-native development, serverless app deployment, open-source serverless software, serverless CI/CD integration, open-source serverless projects, cloud-native serverless best practices, serverless microservices architecture, serverless real-time data processing, API backend serverless framework, serverless event-driven architecture, sustainable software development" + }], + ['meta', {property: 'og:title', content: titleEn}], + ['meta', {property: 'og:description', content: descEn}], + ['meta', {property: 'og:image', content: icon}], + ['meta', {property: 'og:url', content: '/'}], + ['meta', {property: 'og:site_name', content: titleEn}], + ['meta', {name: 'twitter:card', content: icon}], + ['meta', {name: 'twitter:title', content: titleEn}], + ['meta', {name: 'twitter:description', content: descEn}], + ['meta', {name: 'twitter:image', content: icon}], + ], + themeConfig: { + // https://vitepress.dev/reference/default-theme-config + siteTitle: 'ServerlessInsight', + nav: [ + {text: 'Home', link: '/en'}, + {text: 'Docs', link: '/docs'}, + ], + + + socialLinks: [ + {icon: 'github', link: 'https://github.com/geek-fun/serverlessinsight'}, + {icon: 'twitter', link: 'https://x.com/Blankll31075'}, + {icon: 'youtube', link: 'https://www.youtube.com/@geekfun-club'} + ] + }, } } diff --git a/docs/en/products.md b/docs/en/products.md deleted file mode 100644 index 6bd8bb5..0000000 --- a/docs/en/products.md +++ /dev/null @@ -1,49 +0,0 @@ ---- -outline: deep ---- - -# Runtime API Examples - -This page demonstrates usage of some of the runtime APIs provided by VitePress. - -The main `useData()` API can be used to access site, theme, and page data for the current page. It works in both `.md` and `.vue` files: - -```md - - -## Results - -### Theme Data -
{{ theme }}
- -### Page Data -
{{ page }}
- -### Page Frontmatter -
{{ frontmatter }}
-``` - - - -## Results - -### Theme Data -
{{ theme }}
- -### Page Data -
{{ page }}
- -### Page Frontmatter -
{{ frontmatter }}
- -## More - -Check out the documentation for the [full list of runtime APIs](https://vitepress.dev/reference/runtime-api#usedata). diff --git a/package-lock.json b/package-lock.json index d139e5a..b0aabf0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "hostsless-site", - "version": "0.0.7", + "version": "0.0.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "hostsless-site", - "version": "0.0.7", + "version": "0.0.8", "license": "Apache-2.0", "devDependencies": { "vitepress": "^1.3.4" diff --git a/package.json b/package.json index c633fe1..acf4d50 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hostsless-site", - "version": "0.0.7", + "version": "0.0.8", "description": "", "main": "index.js", "scripts": {