docs: add english documentation support and internationalization config
1. 新增英文首页文档en/index.md 2. 重构vitepress配置,添加多语言支持,新增英文站点导航与侧边栏 3. 引入mermaid和mathjax3插件支持图表与数学公式
This commit is contained in:
@@ -1,9 +1,21 @@
|
|||||||
import { defineConfig } from 'vitepress'
|
import { defineConfig } from 'vitepress'
|
||||||
|
import { withMermaid } from 'vitepress-plugin-mermaid'
|
||||||
|
import mathjax3 from 'markdown-it-mathjax3'
|
||||||
|
|
||||||
export default defineConfig({
|
export default withMermaid(
|
||||||
|
defineConfig({
|
||||||
|
vite: {
|
||||||
|
server: {
|
||||||
|
allowedHosts: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
locales: {
|
||||||
|
root: {
|
||||||
|
label: '中文',
|
||||||
|
lang: 'zh-CN',
|
||||||
title: 'HF-MES v5.0 使用手册',
|
title: 'HF-MES v5.0 使用手册',
|
||||||
description: 'HF-MES v5.0 制造执行系统完整使用指南',
|
description: 'HF-MES v5.0 制造执行系统完整使用指南',
|
||||||
lang: 'zh-CN',
|
|
||||||
themeConfig: {
|
themeConfig: {
|
||||||
logo: '/logo.svg',
|
logo: '/logo.svg',
|
||||||
siteTitle: 'HF-MES v5.0 使用手册',
|
siteTitle: 'HF-MES v5.0 使用手册',
|
||||||
@@ -134,7 +146,7 @@ export default defineConfig({
|
|||||||
{
|
{
|
||||||
text: '基础配置篇',
|
text: '基础配置篇',
|
||||||
items: [
|
items: [
|
||||||
{ text: '组织架构管理', link: '/production_configuration/Organization' },
|
{ text: '班组管理', link: '/production_configuration/Organization' },
|
||||||
{ text: '工厂模型', link: '/production_configuration/factory_model' },
|
{ text: '工厂模型', link: '/production_configuration/factory_model' },
|
||||||
{ text: '物料模型', link: '/production_configuration/material_model' },
|
{ text: '物料模型', link: '/production_configuration/material_model' },
|
||||||
{ text: '工序模型', link: '/production_configuration/process_model' },
|
{ text: '工序模型', link: '/production_configuration/process_model' },
|
||||||
@@ -211,42 +223,6 @@ export default defineConfig({
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
'/business/': [
|
|
||||||
{
|
|
||||||
text: '生产管理篇',
|
|
||||||
items: [
|
|
||||||
{ text: '生产管理', link: '/business/production' }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
text: '质量管理篇',
|
|
||||||
items: [
|
|
||||||
{ text: '质量与追溯', link: '/business/quality' }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
text: '仓储物流篇',
|
|
||||||
items: [
|
|
||||||
{ text: '设备与仓储', link: '/business/equipment-warehouse' }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
'/integration/': [
|
|
||||||
{
|
|
||||||
text: '数据集成篇',
|
|
||||||
items: [
|
|
||||||
{ text: '数据与集成', link: '/integration/data-integration' }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
'/analysis/': [
|
|
||||||
{
|
|
||||||
text: '报表分析篇',
|
|
||||||
items: [
|
|
||||||
{ text: '报表与分析', link: '/analysis/reports' }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
'/operation/': [
|
'/operation/': [
|
||||||
{
|
{
|
||||||
text: '系统运维篇',
|
text: '系统运维篇',
|
||||||
@@ -306,6 +282,282 @@ export default defineConfig({
|
|||||||
prev: '← 上一页',
|
prev: '← 上一页',
|
||||||
next: '下一页 →'
|
next: '下一页 →'
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
en: {
|
||||||
|
label: 'English',
|
||||||
|
lang: 'en',
|
||||||
|
link: '/en/',
|
||||||
|
title: 'HF-MES v5.0 User Manual',
|
||||||
|
description: 'HF-MES v5.0 MES Complete User Guide',
|
||||||
|
themeConfig: {
|
||||||
|
logo: '/logo.svg',
|
||||||
|
siteTitle: 'HF-MES v5.0 Manual',
|
||||||
|
|
||||||
|
nav: [
|
||||||
|
{ text: 'Home', link: '/en/' },
|
||||||
|
{
|
||||||
|
text: 'Guide',
|
||||||
|
items: [
|
||||||
|
{ text: 'Document Guide', link: '/en/guide/document-guide' },
|
||||||
|
{ text: 'System Overview', link: '/en/guide/system-overview' }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: 'Quick Start',
|
||||||
|
items: [
|
||||||
|
{ text: 'Quick Start', link: '/en/getting-started/quick-start' }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: 'Configuration',
|
||||||
|
items: [
|
||||||
|
{ text: 'Organization', link: '/en/production_configuration/Organization' },
|
||||||
|
{ text: 'Factory Model', link: '/en/production_configuration/factory_model' },
|
||||||
|
{ text: 'Material Model', link: '/en/production_configuration/material_model' },
|
||||||
|
{ text: 'Process Model', link: '/en/production_configuration/process_model' },
|
||||||
|
{ text: 'Product Model', link: '/en/production_configuration/product_model' },
|
||||||
|
{ text: 'SPC Config', link: '/en/production_configuration/SPC_configuration' }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: 'Device',
|
||||||
|
items: [
|
||||||
|
{ text: 'Device Model', link: '/en/device_management/device_model' },
|
||||||
|
{ text: 'Consumables', link: '/en/device_management/equipment_consumables_management' },
|
||||||
|
{ text: 'Inspection', link: '/en/device_management/equipment_inspection' },
|
||||||
|
{ text: 'Maintenance', link: '/en/device_management/equipment_maintenance' },
|
||||||
|
{ text: 'Repair Mgmt', link: '/en/device_management/equipment_maintenance_management' },
|
||||||
|
{ text: 'Status', link: '/en/device_management/equipment_status_management' }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: 'Production',
|
||||||
|
items: [
|
||||||
|
{ text: 'Alert Center', link: '/en/planning_production/alert_center' },
|
||||||
|
{ text: 'Defect Report', link: '/en/planning_production/batch_defect_report' },
|
||||||
|
{ text: 'Batch Mgmt', link: '/en/planning_production/batch_management' },
|
||||||
|
{ text: 'Batch Tray', link: '/en/planning_production/batch_tray' },
|
||||||
|
{ text: 'Device Monitor', link: '/en/planning_production/device_monitoring' },
|
||||||
|
{ text: 'Material Monitor', link: '/en/planning_production/material_monitoring' },
|
||||||
|
{ text: 'Reject Mgmt', link: '/en/planning_production/reject_management' },
|
||||||
|
{ text: 'Process Flow', link: '/en/planning_production/technology_process' },
|
||||||
|
{ text: 'Tray Login', link: '/en/planning_production/tray_login' },
|
||||||
|
{ text: 'Tray Mgmt', link: '/en/planning_production/tray_management' }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: 'Quality',
|
||||||
|
items: [
|
||||||
|
{ text: 'First Inspection', link: '/en/quality_control/first_inspection' },
|
||||||
|
{ text: 'Inspection', link: '/en/quality_control/inspection_management' },
|
||||||
|
{ text: 'SPC', link: '/en/quality_control/spc' },
|
||||||
|
{ text: 'SPC Attribute', link: '/en/quality_control/spc_attribute_charts' },
|
||||||
|
{ text: 'SPC Variable', link: '/en/quality_control/spc_variable_charts' }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: 'Data',
|
||||||
|
items: [
|
||||||
|
{ text: 'Battery Curve', link: '/en/data_middleground/battery_curve' },
|
||||||
|
{ text: 'Battery Report', link: '/en/data_middleground/battery_detail_report' },
|
||||||
|
{ text: 'Battery Trace', link: '/en/data_middleground/battery_traceability' },
|
||||||
|
{ text: 'Eagle Eyes', link: '/en/data_middleground/eagle_eyes' },
|
||||||
|
{ text: 'Equip History', link: '/en/data_middleground/equipment_history_report' },
|
||||||
|
{ text: 'Forward Trace', link: '/en/data_middleground/positive_direction_traceability' },
|
||||||
|
{ text: 'Reverse Trace', link: '/en/data_middleground/reverse_traceability' },
|
||||||
|
{ text: 'Tray Trace', link: '/en/data_middleground/tray_traceability' }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: 'Settings',
|
||||||
|
items: [
|
||||||
|
{ text: 'Menu Config', link: '/en/system_settings/menu_configuration' },
|
||||||
|
{ text: 'Assistant', link: '/en/system_settings/system_assistant' },
|
||||||
|
{ text: 'Monitor', link: '/en/system_settings/system_monitoring' },
|
||||||
|
{ text: 'Users', link: '/en/system_settings/user_management' }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: 'Operations',
|
||||||
|
items: [
|
||||||
|
{ text: 'System Ops', link: '/en/operation/system-operation' },
|
||||||
|
{ text: 'Support', link: '/en/operation/technical-support' }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: 'Appendix',
|
||||||
|
items: [
|
||||||
|
{ text: 'Glossary', link: '/en/appendix/glossary' }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
|
||||||
|
sidebar: {
|
||||||
|
'/en/guide/': [
|
||||||
|
{
|
||||||
|
text: 'Document Guide',
|
||||||
|
items: [
|
||||||
|
{ text: 'Document Guide', link: '/en/guide/document-guide' }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: 'System Overview',
|
||||||
|
items: [
|
||||||
|
{ text: 'System Overview', link: '/en/guide/system-overview' }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
'/en/getting-started/': [
|
||||||
|
{
|
||||||
|
text: 'Quick Start',
|
||||||
|
items: [
|
||||||
|
{ text: 'Quick Start', link: '/en/getting-started/quick-start' }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
'/en/production_configuration/': [
|
||||||
|
{
|
||||||
|
text: 'Basic Configuration',
|
||||||
|
items: [
|
||||||
|
{ text: 'Organization', link: '/en/production_configuration/Organization' },
|
||||||
|
{ text: 'Factory Model', link: '/en/production_configuration/factory_model' },
|
||||||
|
{ text: 'Material Model', link: '/en/production_configuration/material_model' },
|
||||||
|
{ text: 'Process Model', link: '/en/production_configuration/process_model' },
|
||||||
|
{ text: 'Product Model', link: '/en/production_configuration/product_model' },
|
||||||
|
{ text: 'SPC Configuration', link: '/en/production_configuration/SPC_configuration' }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
'/en/device_management/': [
|
||||||
|
{
|
||||||
|
text: 'Device Management',
|
||||||
|
items: [
|
||||||
|
{ text: 'Device Model', link: '/en/device_management/device_model' },
|
||||||
|
{ text: 'Equipment Consumables', link: '/en/device_management/equipment_consumables_management' },
|
||||||
|
{ text: 'Equipment Inspection', link: '/en/device_management/equipment_inspection' },
|
||||||
|
{ text: 'Equipment Maintenance', link: '/en/device_management/equipment_maintenance' },
|
||||||
|
{ text: 'Maintenance Management', link: '/en/device_management/equipment_maintenance_management' },
|
||||||
|
{ text: 'Equipment Status', link: '/en/device_management/equipment_status_management' }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
'/en/planning_production/': [
|
||||||
|
{
|
||||||
|
text: 'Planning & Production',
|
||||||
|
items: [
|
||||||
|
{ text: 'Alert Center', link: '/en/planning_production/alert_center' },
|
||||||
|
{ text: 'Batch Defect Report', link: '/en/planning_production/batch_defect_report' },
|
||||||
|
{ text: 'Batch Management', link: '/en/planning_production/batch_management' },
|
||||||
|
{ text: 'Batch Tray', link: '/en/planning_production/batch_tray' },
|
||||||
|
{ text: 'Device Monitoring', link: '/en/planning_production/device_monitoring' },
|
||||||
|
{ text: 'Material Monitoring', link: '/en/planning_production/material_monitoring' },
|
||||||
|
{ text: 'Reject Management', link: '/en/planning_production/reject_management' },
|
||||||
|
{ text: 'Technology Process', link: '/en/planning_production/technology_process' },
|
||||||
|
{ text: 'Tray Login', link: '/en/planning_production/tray_login' },
|
||||||
|
{ text: 'Tray Management', link: '/en/planning_production/tray_management' }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
'/en/quality_control/': [
|
||||||
|
{
|
||||||
|
text: 'Quality Control',
|
||||||
|
items: [
|
||||||
|
{ text: 'First Inspection', link: '/en/quality_control/first_inspection' },
|
||||||
|
{ text: 'Inspection Management', link: '/en/quality_control/inspection_management' },
|
||||||
|
{ text: 'SPC', link: '/en/quality_control/spc' },
|
||||||
|
{ text: 'SPC Attribute Charts', link: '/en/quality_control/spc_attribute_charts' },
|
||||||
|
{ text: 'SPC Variable Charts', link: '/en/quality_control/spc_variable_charts' }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
'/en/data_middleground/': [
|
||||||
|
{
|
||||||
|
text: 'Data Middle Platform',
|
||||||
|
items: [
|
||||||
|
{ text: 'Battery Curve', link: '/en/data_middleground/battery_curve' },
|
||||||
|
{ text: 'Battery Detail Report', link: '/en/data_middleground/battery_detail_report' },
|
||||||
|
{ text: 'Battery Traceability', link: '/en/data_middleground/battery_traceability' },
|
||||||
|
{ text: 'Eagle Eyes', link: '/en/data_middleground/eagle_eyes' },
|
||||||
|
{ text: 'Equipment History Report', link: '/en/data_middleground/equipment_history_report' },
|
||||||
|
{ text: 'Forward Traceability', link: '/en/data_middleground/positive_direction_traceability' },
|
||||||
|
{ text: 'Reverse Traceability', link: '/en/data_middleground/reverse_traceability' },
|
||||||
|
{ text: 'Tray Traceability', link: '/en/data_middleground/tray_traceability' }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
'/en/system_settings/': [
|
||||||
|
{
|
||||||
|
text: 'System Settings',
|
||||||
|
items: [
|
||||||
|
{ text: 'Menu Configuration', link: '/en/system_settings/menu_configuration' },
|
||||||
|
{ text: 'System Assistant', link: '/en/system_settings/system_assistant' },
|
||||||
|
{ text: 'System Monitoring', link: '/en/system_settings/system_monitoring' },
|
||||||
|
{ text: 'User Management', link: '/en/system_settings/user_management' }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
'/en/operation/': [
|
||||||
|
{
|
||||||
|
text: 'System Operation',
|
||||||
|
items: [
|
||||||
|
{ text: 'System Operation', link: '/en/operation/system-operation' }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: 'Technical Support',
|
||||||
|
items: [
|
||||||
|
{ text: 'Technical Support', link: '/en/operation/technical-support' }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
'/en/appendix/': [
|
||||||
|
{
|
||||||
|
text: 'Appendix',
|
||||||
|
items: [
|
||||||
|
{ text: 'Glossary', link: '/en/appendix/glossary' }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
socialLinks: [
|
||||||
|
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' }
|
||||||
|
],
|
||||||
|
|
||||||
|
footer: {
|
||||||
|
message: 'HF-MES v5.0 User Manual',
|
||||||
|
copyright: 'Copyright © 2026 All Rights Reserved'
|
||||||
|
},
|
||||||
|
|
||||||
|
search: {
|
||||||
|
provider: 'local'
|
||||||
|
},
|
||||||
|
|
||||||
|
editLink: {
|
||||||
|
pattern: 'https://github.com/vuejs/vitepress/edit/main/docs/:path',
|
||||||
|
text: 'Edit this page on GitHub'
|
||||||
|
},
|
||||||
|
|
||||||
|
lastUpdated: {
|
||||||
|
text: 'Last Updated',
|
||||||
|
formatOptions: {
|
||||||
|
dateStyle: 'short',
|
||||||
|
timeStyle: 'short'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
outline: {
|
||||||
|
level: [2, 3],
|
||||||
|
label: 'On this page'
|
||||||
|
},
|
||||||
|
|
||||||
|
docFooter: {
|
||||||
|
prev: '← Previous',
|
||||||
|
next: 'Next →'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
markdown: {
|
markdown: {
|
||||||
@@ -313,7 +565,10 @@ export default defineConfig({
|
|||||||
light: 'github-light',
|
light: 'github-light',
|
||||||
dark: 'github-dark'
|
dark: 'github-dark'
|
||||||
},
|
},
|
||||||
lineNumbers: false
|
lineNumbers: false,
|
||||||
|
config(md) {
|
||||||
|
md.use(mathjax3)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
head: [
|
head: [
|
||||||
@@ -321,4 +576,5 @@ export default defineConfig({
|
|||||||
['meta', { name: 'author', content: 'HF-MES' }],
|
['meta', { name: 'author', content: 'HF-MES' }],
|
||||||
['meta', { name: 'viewport', content: 'width=device-width, initial-scale=1.0' }]
|
['meta', { name: 'viewport', content: 'width=device-width, initial-scale=1.0' }]
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
)
|
||||||
|
|||||||
38
en/index.md
Normal file
38
en/index.md
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
---
|
||||||
|
layout: home
|
||||||
|
|
||||||
|
hero:
|
||||||
|
name: "HF-MES v5.0"
|
||||||
|
text: "MES User Manual"
|
||||||
|
tagline: "Digital Production · Intelligent Execution · Transparent Management"
|
||||||
|
actions:
|
||||||
|
- theme: brand
|
||||||
|
text: Quick Start
|
||||||
|
link: /en/getting-started/quick-start
|
||||||
|
- theme: alt
|
||||||
|
text: System Overview
|
||||||
|
link: /en/guide/system-overview
|
||||||
|
|
||||||
|
features:
|
||||||
|
- icon: 🏭
|
||||||
|
title: Production Management
|
||||||
|
details: Comprehensive coverage of production planning, work order execution, and process monitoring
|
||||||
|
- icon: 📊
|
||||||
|
title: Quality Management
|
||||||
|
details: Full-process quality control and traceability from raw materials to finished products
|
||||||
|
- icon: 📦
|
||||||
|
title: Warehouse Logistics
|
||||||
|
details: Optimized inventory management, inbound/outbound processes, and material tracking
|
||||||
|
- icon: 🔧
|
||||||
|
title: Equipment Management
|
||||||
|
details: Complete equipment lifecycle management, inspection, maintenance, and OEE analysis
|
||||||
|
- icon: 🔗
|
||||||
|
title: System Integration
|
||||||
|
details: Seamless integration with ERP, SCADA, and other systems for data connectivity
|
||||||
|
- icon: 📈
|
||||||
|
title: Report Analysis
|
||||||
|
details: Rich statistical analysis reports to support decision-making
|
||||||
|
|
||||||
|
footer: |
|
||||||
|
HF-MES v5.0 User Manual · Copyright © 2026 All Rights Reserved
|
||||||
|
---
|
||||||
Reference in New Issue
Block a user