Skip to content

Commit

Permalink
update english doc and add redirect to /en
Browse files Browse the repository at this point in the history
  • Loading branch information
gezhaoyou committed Jul 22, 2024
1 parent f4a5968 commit df6d88e
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 64 deletions.
65 changes: 18 additions & 47 deletions docs/docs/.vitepress/config/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const pkg = require('vitepress/package.json')

export const en = defineConfig({
lang: 'en-US',
description: 'Vite & Vue powered static site generator.',
description: 'Realtime AI Beauty Filter Library.',

themeConfig: {
nav: nav(),
Expand Down Expand Up @@ -59,49 +59,42 @@ function nav(): DefaultTheme.NavItem[] {
function sidebarGuide(): DefaultTheme.SidebarItem[] {
return [
{
text: 'Introduction',
text: 'Quick Start',
collapsed: false,
items: [
{ text: 'What is VitePress?', link: 'what-is-vitepress' },
{ text: 'Getting Started', link: 'getting-started' },
{ text: 'Routing', link: 'routing' },
{ text: 'Deploy', link: 'deploy' }
{ text: 'Introduction', link: 'intro' },
{ text: 'Compilation', link: 'build' },
{ text: 'Examples', link: 'demo' },
{ text: 'Integration', link: 'integrated' },
]
},
{
text: 'Writing',
text: 'API Calls',
collapsed: false,
items: [
{ text: 'Markdown Extensions', link: 'markdown' },
{ text: 'Asset Handling', link: 'asset-handling' },
{ text: 'Frontmatter', link: 'frontmatter' },
{ text: 'Using Vue in Markdown', link: 'using-vue' },
{ text: 'Internationalization', link: 'i18n' }
{ text: 'Basic Filters', link: '#' },
{ text: 'Beauty Effects', link: '#' },
{ text: 'Input and Output', link: '#' },
]
},
{
text: 'Customization',
collapsed: false,
items: [
{ text: 'Using a Custom Theme', link: 'custom-theme' },
{
text: 'Extending the Default Theme',
link: 'extending-default-theme'
},
{ text: 'Build-Time Data Loading', link: 'data-loading' },
{ text: 'SSR Compatibility', link: 'ssr-compat' },
{ text: 'Connecting to a CMS', link: 'cms' }
{ text: 'Custom Filters', link: '#' },
{ text: 'Custom Input', link: '#' },
{ text: 'Custom Output', link: '#' },
]
},
{
text: 'Experimental',
text: 'Other',
collapsed: false,
items: [
{ text: 'MPA Mode', link: 'mpa-mode' },
{ text: 'Sitemap Generation', link: 'sitemap-generation' }
{ text: 'Architecture Analysis', link: '#' },
{ text: 'Code Debugging', link: '#' },
]
},
{ text: 'Config & API Reference', base: '/reference/', link: 'site-config' }
{ text: 'Configuration and API Reference', base: '/en/reference/', link: 'filter-list' }
]
}

Expand All @@ -110,29 +103,7 @@ function sidebarReference(): DefaultTheme.SidebarItem[] {
{
text: 'Reference',
items: [
{ text: 'Site Config', link: 'site-config' },
{ text: 'Frontmatter Config', link: 'frontmatter-config' },
{ text: 'Runtime API', link: 'runtime-api' },
{ text: 'CLI', link: 'cli' },
{
text: 'Default Theme',
base: '/reference/default-theme-',
items: [
{ text: 'Overview', link: 'config' },
{ text: 'Nav', link: 'nav' },
{ text: 'Sidebar', link: 'sidebar' },
{ text: 'Home Page', link: 'home-page' },
{ text: 'Footer', link: 'footer' },
{ text: 'Layout', link: 'layout' },
{ text: 'Badge', link: 'badge' },
{ text: 'Team Page', link: 'team-page' },
{ text: 'Prev / Next Links', link: 'prev-next-links' },
{ text: 'Edit Link', link: 'edit-link' },
{ text: 'Last Updated Timestamp', link: 'last-updated' },
{ text: 'Search', link: 'search' },
{ text: 'Carbon Ads', link: 'carbon-ads' }
]
}
{ text: 'Filter List', link: 'filter-list' },
]
}
]
Expand Down
4 changes: 4 additions & 0 deletions docs/docs/.vitepress/config/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { search as zhSearch } from './zh'
export const shared = defineConfig({
title: 'GPUPixel',

rewrites: {
'en/:rest*': ':rest*'
},

lastUpdated: true,
cleanUrls: true,
metaChunk: true,
Expand Down
34 changes: 17 additions & 17 deletions docs/docs/en/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,37 @@ layout: home

hero:
name: "GPUPixel"
text: "基于GPU 的实时 AI 图像美颜滤镜库"
tagline: 高性能, 跨平台
text: "GPU-based Realtime AI Beauty Filter Library"
tagline: 'High Performance, Cross-Platform'
image:
src: /cover.svg
src: /gpupixel-logo-large.svg
alt: cover
actions:
- theme: brand
text: 快速开始
link: /intro
text: Get Started
link: /guide/intro
- theme: alt
text: GitHub
link: https://github.com/pixpark/gpupixel

features:
- icon: 🤹‍♀️
title: 美颜滤镜
details: 内置美白, 磨皮, 瘦脸, 大眼, 口红, 腮红等滤镜
title: Beauty Filters
details: Built-in filters like whitening, smoothing, face slimming, big eyes, lipstick, and blush
- icon:
title: 高性能
details: 基于C++11 OpenGL/ES 编写,实时高性能,可用于直播和WebRTC等
title: High Performance
details: Written in C++11 and based on OpenGL/ES, real-time high performance, suitable for live streaming and WebRTC
- icon: 📱
title: 跨平台
details: 全平台支持:iOS, Android, Mac, Windows, Linux 等系统
title: Cross-Platform
details: Full platform support -> iOS, Android, Mac, Windows, Linux, etc.
- icon: 🌇
title: 输入输出
details: 支持YUV和RGBA多种格式输入输出,输入源支持包括相机视频和图像
title: Input and Output
details: Supports multiple formats like YUV and RGBA for input and output, with input sources including camera video and images
- icon: 🧚‍♀️
title: 滤镜组合
details: 滤镜可随意串联组合,实现复杂处理效果
title: Filter Combinations
details: Filters can be chained together to achieve complex processing effects
- icon: 🧸
title: 自定义滤镜
details: 架构简洁,逻辑清晰,方便拓展自定义滤镜
title: Custom Filters
details: Simple architecture, clear logic, easy to extend with custom filters
---

Empty file.

0 comments on commit df6d88e

Please sign in to comment.