From f62e5710ce1f3c5c8d0121caf86fc5c8c616516e Mon Sep 17 00:00:00 2001 From: wood911010 Date: Fri, 24 Oct 2025 23:03:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=A4=9A=E8=AF=AD?= =?UTF-8?q?=E8=A8=80=E6=94=AF=E6=8C=81=E5=92=8C=E6=9B=B4=E6=96=B0=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/config.js | 56 +++++++++++++++++++++++--------- docs/en/guide/getting-started.md | 38 ++++++++++++++++++++++ docs/en/guide/index.md | 3 ++ docs/en/index.md | 1 + docs/guide/getting-started.md | 39 +++++++++++++++++++++- docs/guide/index.md | 4 ++- docs/index.md | 2 +- 7 files changed, 124 insertions(+), 19 deletions(-) create mode 100644 docs/en/guide/getting-started.md create mode 100644 docs/en/guide/index.md create mode 100644 docs/en/index.md diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index d15ea35..5295741 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -1,22 +1,46 @@ export default { - base: '/license-manager-docs/', // 改成你的仓库名 title: 'License Manager 文档', description: 'License Manager 使用文档', - + + locales: { + root: { + label: '简体中文', + lang: 'zh-CN', + title: 'License Manager 文档', + description: 'License Manager 使用文档', + }, + en: { + label: 'English', + lang: 'en-US', + title: 'License Manager Documentation', + description: 'License Manager Documentation', + } + }, + themeConfig: { - nav: [ - { text: '首页', link: '/' }, - { text: '指南', link: '/guide/' } - ], - - sidebar: [ - { - text: '开始', - items: [ - { text: '介绍', link: '/guide/' }, - { text: '快速开始', link: '/guide/getting-started' } - ] + locales: { + root: { + nav: [ + { text: '首页', link: '/' }, + { text: '指南', link: '/guide/' } + ], + sidebar: { + '/guide/': [ + { text: '介绍', link: '/guide/' } + ] + } + }, + en: { + nav: [ + { text: 'Home', link: '/en/' }, + { text: 'Guide', link: '/en/guide/' } + ], + sidebar: { + '/en/guide/': [ + { text: 'Introduction', link: '/en/guide/' } + ] + } } - ] + } } -} \ No newline at end of file +} diff --git a/docs/en/guide/getting-started.md b/docs/en/guide/getting-started.md new file mode 100644 index 0000000..4f492a7 --- /dev/null +++ b/docs/en/guide/getting-started.md @@ -0,0 +1,38 @@ +# 快速开始 + +## Docker 部署 + +### 1. 获取部署文件 + +复制项目根目录的 `docker-compose.github.image.yml` 文件到你的部署目录: + +```bash +# 方式一:直接下载 +curl -O https://raw.githubusercontent.com/cedar-v/license-manager/main/docker-compose.github.image.yml + +# 方式二:从项目中复制 +cp docker-compose.github.image.yml /your/deploy/path/ +``` + +### 2. 提取配置文件 + +```bash +# 提取后端配置文件 +mkdir -p backend-config +docker run --rm -v $(pwd)/backend-config:/tmp/config ghcr.io/cedar-v/license-manager-backend:v0.1.0 sh -c "cp -r /app/backend/configs/* /tmp/config/" + +# 提取前端 nginx 配置文件 +docker run --rm -v $(pwd):/tmp/extract ghcr.io/cedar-v/license-manager-frontend:v0.1.0 sh -c "cp /etc/nginx/conf.d/default.conf /tmp/extract/nginx.conf" +``` + +### 3. 启动服务 + +```bash +docker-compose -f docker-compose.github.image.yml up +``` + +## 访问信息 + +- **前端**: http://localhost:18080 +- **后端 API**: http://localhost:18888 +- **默认账号**: admin / admin@123 diff --git a/docs/en/guide/index.md b/docs/en/guide/index.md new file mode 100644 index 0000000..88cd598 --- /dev/null +++ b/docs/en/guide/index.md @@ -0,0 +1,3 @@ +# guide + +License Manager is an independent software licensing platform that provides license code generation, distribution, validation, and management services for IoT platforms and other software systems. It offers both online and offline licensing modes with hardware-based binding for enhanced security. diff --git a/docs/en/index.md b/docs/en/index.md new file mode 100644 index 0000000..0b0d2d0 --- /dev/null +++ b/docs/en/index.md @@ -0,0 +1 @@ +"# License Manager" \ No newline at end of file diff --git a/docs/guide/getting-started.md b/docs/guide/getting-started.md index 609fa53..4f492a7 100644 --- a/docs/guide/getting-started.md +++ b/docs/guide/getting-started.md @@ -1 +1,38 @@ -"# ¿ìËٿªʼ" +# 快速开始 + +## Docker 部署 + +### 1. 获取部署文件 + +复制项目根目录的 `docker-compose.github.image.yml` 文件到你的部署目录: + +```bash +# 方式一:直接下载 +curl -O https://raw.githubusercontent.com/cedar-v/license-manager/main/docker-compose.github.image.yml + +# 方式二:从项目中复制 +cp docker-compose.github.image.yml /your/deploy/path/ +``` + +### 2. 提取配置文件 + +```bash +# 提取后端配置文件 +mkdir -p backend-config +docker run --rm -v $(pwd)/backend-config:/tmp/config ghcr.io/cedar-v/license-manager-backend:v0.1.0 sh -c "cp -r /app/backend/configs/* /tmp/config/" + +# 提取前端 nginx 配置文件 +docker run --rm -v $(pwd):/tmp/extract ghcr.io/cedar-v/license-manager-frontend:v0.1.0 sh -c "cp /etc/nginx/conf.d/default.conf /tmp/extract/nginx.conf" +``` + +### 3. 启动服务 + +```bash +docker-compose -f docker-compose.github.image.yml up +``` + +## 访问信息 + +- **前端**: http://localhost:18080 +- **后端 API**: http://localhost:18888 +- **默认账号**: admin / admin@123 diff --git a/docs/guide/index.md b/docs/guide/index.md index dc2ad02..992a3f7 100644 --- a/docs/guide/index.md +++ b/docs/guide/index.md @@ -1 +1,3 @@ -"# ½éÉÜ" +# 介绍 + +软件授权管理平台是一个独立的软件授权管理系统,为软件系统提供授权码生成、分发、验证和管理服务。支持在线和离线两种授权模式,基于硬件绑定的授权机制确保安全性。" diff --git a/docs/index.md b/docs/index.md index 99c1d49..d9c9ef7 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1 +1 @@ -"# Hello VitePress" +"# License Manager"