feat: docs
This commit is contained in:
+17
-4
@@ -1,11 +1,24 @@
|
|||||||
FROM python:3.9.5-slim-buster
|
FROM python:3.9.5-slim-buster
|
||||||
LABEL author="Lan"
|
LABEL author="Lan"
|
||||||
LABEL email="vast@tom.com"
|
LABEL email="xzu@live.com"
|
||||||
|
|
||||||
|
# 将当前目录下的文件复制到容器的 /app 目录
|
||||||
COPY . /app
|
COPY . /app
|
||||||
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
|
||||||
RUN echo 'Asia/Shanghai' >/etc/timezone
|
# 设置时区为亚洲/上海
|
||||||
|
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
|
||||||
|
|
||||||
|
# 设置工作目录
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# 删除不必要的目录,减少镜像体积
|
||||||
|
RUN rm -rf docs fcb-fronted
|
||||||
|
|
||||||
|
# 安装依赖
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
|
# 暴露端口
|
||||||
EXPOSE 12345
|
EXPOSE 12345
|
||||||
CMD ["python","main.py"]
|
|
||||||
|
# 启动应用
|
||||||
|
CMD ["python", "main.py"]
|
||||||
+204
-203
@@ -1,216 +1,217 @@
|
|||||||
import { defineConfig } from 'vitepress'
|
import {defineConfig} from 'vitepress'
|
||||||
|
|
||||||
// https://vitepress.dev/reference/site-config
|
// https://vitepress.dev/reference/site-config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
title: 'FileCodeBox',
|
title: 'FileCodeBox',
|
||||||
description: '简单高效的文件分享工具',
|
description: '简单高效的文件分享工具',
|
||||||
lang: 'zh-CN',
|
lang: 'zh-CN',
|
||||||
lastUpdated: true,
|
base: 'FileCodeBox',
|
||||||
locales: {
|
lastUpdated: true,
|
||||||
root: {
|
locales: {
|
||||||
label: '简体中文',
|
root: {
|
||||||
lang: 'zh-CN',
|
label: '简体中文',
|
||||||
title: 'FileCodeBox',
|
lang: 'zh-CN',
|
||||||
description: '匿名口令分享文本,文件',
|
title: 'FileCodeBox',
|
||||||
themeConfig: {
|
description: '匿名口令分享文本,文件',
|
||||||
logo: '/logo_small.png',
|
themeConfig: {
|
||||||
nav: [
|
logo: '/logo_small.png',
|
||||||
{ text: '首页', link: '/' },
|
nav: [
|
||||||
{ text: '指南', link: '/guide/getting-started' },
|
{text: '首页', link: '/'},
|
||||||
{ text: 'API', link: '/api/' },
|
{text: '指南', link: '/guide/getting-started'},
|
||||||
{
|
{text: 'API', link: '/api/'},
|
||||||
text: '了解更多',
|
{
|
||||||
items: [
|
text: '了解更多',
|
||||||
{ text: '更新日志', link: '/changelog' },
|
items: [
|
||||||
{ text: '贡献指南', link: '/contributing' },
|
{text: '更新日志', link: '/changelog'},
|
||||||
],
|
{text: '贡献指南', link: '/contributing'},
|
||||||
},
|
],
|
||||||
],
|
},
|
||||||
|
],
|
||||||
|
|
||||||
sidebar: {
|
sidebar: {
|
||||||
'/guide/': [
|
'/guide/': [
|
||||||
{
|
{
|
||||||
text: '介绍',
|
text: '介绍',
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
text: '什么是 FileCodeBox',
|
text: '什么是 FileCodeBox',
|
||||||
link: '/guide/introduction',
|
link: '/guide/introduction',
|
||||||
|
},
|
||||||
|
{text: '快速开始', link: '/guide/getting-started'},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: '基础功能',
|
||||||
|
items: [
|
||||||
|
{text: '文件上传', link: '/guide/upload'},
|
||||||
|
{text: '文件分享', link: '/guide/share'},
|
||||||
|
{text: '文件管理', link: '/guide/management'},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: '高级特性',
|
||||||
|
items: [
|
||||||
|
{text: '存储配置', link: '/guide/storage'},
|
||||||
|
{text: '安全设置', link: '/guide/security'},
|
||||||
|
{text: '系统配置', link: '/guide/configuration'},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
'/api/': [
|
||||||
|
{
|
||||||
|
text: 'API 参考',
|
||||||
|
items: [
|
||||||
|
{text: '分享接口', link: '/api/#分享接口'},
|
||||||
|
{text: '管理接口', link: '/api/#管理接口'},
|
||||||
|
{text: '错误响应', link: '/api/#错误响应'},
|
||||||
|
{text: '状态码说明', link: '/api/#状态码说明'},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{ text: '快速开始', link: '/guide/getting-started' },
|
socialLinks: [
|
||||||
],
|
{icon: 'github', link: 'https://github.com/vastsa/FileCodeBox'},
|
||||||
},
|
],
|
||||||
{
|
|
||||||
text: '基础功能',
|
|
||||||
items: [
|
|
||||||
{ text: '文件上传', link: '/guide/upload' },
|
|
||||||
{ text: '文件分享', link: '/guide/share' },
|
|
||||||
{ text: '文件管理', link: '/guide/management' },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
text: '高级特性',
|
|
||||||
items: [
|
|
||||||
{ text: '存储配置', link: '/guide/storage' },
|
|
||||||
{ text: '安全设置', link: '/guide/security' },
|
|
||||||
{ text: '系统配置', link: '/guide/configuration' },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
'/api/': [
|
|
||||||
{
|
|
||||||
text: 'API 参考',
|
|
||||||
items: [
|
|
||||||
{ text: '分享接口', link: '/api/#分享接口' },
|
|
||||||
{ text: '管理接口', link: '/api/#管理接口' },
|
|
||||||
{ text: '错误响应', link: '/api/#错误响应' },
|
|
||||||
{ text: '状态码说明', link: '/api/#状态码说明' },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
socialLinks: [
|
|
||||||
{ icon: 'github', link: 'https://github.com/vastsa/FileCodeBox' },
|
|
||||||
],
|
|
||||||
footer: {
|
|
||||||
message: '基于 LGPL 许可发布',
|
|
||||||
copyright: 'Copyright © 2023-present FileCodeBox',
|
|
||||||
},
|
|
||||||
search: {
|
|
||||||
provider: 'local',
|
|
||||||
},
|
|
||||||
outline: {
|
|
||||||
level: [2, 3],
|
|
||||||
label: '目录',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
en: {
|
|
||||||
label: 'English',
|
|
||||||
lang: 'en-US',
|
|
||||||
title: 'FileCodeBox',
|
|
||||||
description: 'Simple and efficient file sharing tool',
|
|
||||||
themeConfig: {
|
|
||||||
logo: '/logo_small.png',
|
|
||||||
nav: [
|
|
||||||
{ text: 'Home', link: '/en/' },
|
|
||||||
{ text: 'Guide', link: '/en/guide/getting-started' },
|
|
||||||
{ text: 'API', link: '/en/api/' },
|
|
||||||
{
|
|
||||||
text: 'More',
|
|
||||||
items: [
|
|
||||||
{ text: 'Changelog', link: '/en/changelog' },
|
|
||||||
{ text: 'Contributing', link: '/en/contributing' },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
sidebar: {
|
|
||||||
'/en/guide/': [
|
|
||||||
{
|
|
||||||
text: 'Introduction',
|
|
||||||
items: [
|
|
||||||
{
|
|
||||||
text: 'What is FileCodeBox',
|
|
||||||
link: '/en/guide/introduction',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
text: 'Getting Started',
|
|
||||||
link: '/en/guide/getting-started',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
text: 'Basic Features',
|
|
||||||
items: [
|
|
||||||
{ text: 'File Upload', link: '/en/guide/upload' },
|
|
||||||
{ text: 'File Sharing', link: '/en/guide/share' },
|
|
||||||
{ text: 'File Management', link: '/en/guide/management' },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
text: 'Advanced Features',
|
|
||||||
items: [
|
|
||||||
{ text: 'Storage Configuration', link: '/en/guide/storage' },
|
|
||||||
{ text: 'Security Settings', link: '/en/guide/security' },
|
|
||||||
{
|
|
||||||
text: 'System Configuration',
|
|
||||||
link: '/en/guide/configuration',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
'/en/api/': [
|
|
||||||
{
|
|
||||||
text: 'API Reference',
|
|
||||||
items: [
|
|
||||||
{ text: 'Share API', link: '/en/api/#share-api' },
|
|
||||||
{ text: 'Admin API', link: '/en/api/#admin-api' },
|
|
||||||
{ text: 'Error Response', link: '/en/api/#error-response' },
|
|
||||||
{ text: 'Status Codes', link: '/en/api/#status-codes' },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
socialLinks: [
|
|
||||||
{ icon: 'github', link: 'https://github.com/vastsa/FileCodeBox' },
|
|
||||||
],
|
|
||||||
footer: {
|
|
||||||
message: '基于 MIT 许可发布',
|
|
||||||
copyright: 'Copyright © 2023-present FileCodeBox',
|
|
||||||
},
|
|
||||||
search: {
|
|
||||||
provider: 'local',
|
|
||||||
},
|
|
||||||
outline: {
|
|
||||||
level: [2, 3],
|
|
||||||
label: '目录',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
themeConfig: {
|
|
||||||
// 语言切换器
|
|
||||||
langMenuLabel: '切换语言',
|
|
||||||
|
|
||||||
// 社交链接
|
|
||||||
socialLinks: [
|
|
||||||
{ icon: 'github', link: 'https://github.com/vastsa/FileCodeBox' },
|
|
||||||
],
|
|
||||||
|
|
||||||
// 页脚
|
|
||||||
footer: {
|
|
||||||
message: '基于 MIT 许可发布',
|
|
||||||
copyright: 'Copyright © 2023-present FileCodeBox',
|
|
||||||
},
|
|
||||||
|
|
||||||
// 搜索
|
|
||||||
search: {
|
|
||||||
provider: 'local',
|
|
||||||
options: {
|
|
||||||
locales: {
|
|
||||||
zh: {
|
|
||||||
translations: {
|
|
||||||
button: {
|
|
||||||
buttonText: '搜索文档',
|
|
||||||
buttonAriaLabel: '搜索文档',
|
|
||||||
},
|
|
||||||
modal: {
|
|
||||||
noResultsText: '无法找到相关结果',
|
|
||||||
resetButtonTitle: '清除查询条件',
|
|
||||||
footer: {
|
footer: {
|
||||||
selectText: '选择',
|
message: '基于 LGPL 许可发布',
|
||||||
navigateText: '切换',
|
copyright: 'Copyright © 2023-present FileCodeBox',
|
||||||
|
},
|
||||||
|
search: {
|
||||||
|
provider: 'local',
|
||||||
|
},
|
||||||
|
outline: {
|
||||||
|
level: [2, 3],
|
||||||
|
label: '目录',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
en: {
|
||||||
|
label: 'English',
|
||||||
|
lang: 'en-US',
|
||||||
|
title: 'FileCodeBox',
|
||||||
|
description: 'Simple and efficient file sharing tool',
|
||||||
|
themeConfig: {
|
||||||
|
logo: '/logo_small.png',
|
||||||
|
nav: [
|
||||||
|
{text: 'Home', link: '/en/'},
|
||||||
|
{text: 'Guide', link: '/en/guide/getting-started'},
|
||||||
|
{text: 'API', link: '/en/api/'},
|
||||||
|
{
|
||||||
|
text: 'More',
|
||||||
|
items: [
|
||||||
|
{text: 'Changelog', link: '/en/changelog'},
|
||||||
|
{text: 'Contributing', link: '/en/contributing'},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
sidebar: {
|
||||||
|
'/en/guide/': [
|
||||||
|
{
|
||||||
|
text: 'Introduction',
|
||||||
|
items: [
|
||||||
|
{
|
||||||
|
text: 'What is FileCodeBox',
|
||||||
|
link: '/en/guide/introduction',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: 'Getting Started',
|
||||||
|
link: '/en/guide/getting-started',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: 'Basic Features',
|
||||||
|
items: [
|
||||||
|
{text: 'File Upload', link: '/en/guide/upload'},
|
||||||
|
{text: 'File Sharing', link: '/en/guide/share'},
|
||||||
|
{text: 'File Management', link: '/en/guide/management'},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: 'Advanced Features',
|
||||||
|
items: [
|
||||||
|
{text: 'Storage Configuration', link: '/en/guide/storage'},
|
||||||
|
{text: 'Security Settings', link: '/en/guide/security'},
|
||||||
|
{
|
||||||
|
text: 'System Configuration',
|
||||||
|
link: '/en/guide/configuration',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
'/en/api/': [
|
||||||
|
{
|
||||||
|
text: 'API Reference',
|
||||||
|
items: [
|
||||||
|
{text: 'Share API', link: '/en/api/#share-api'},
|
||||||
|
{text: 'Admin API', link: '/en/api/#admin-api'},
|
||||||
|
{text: 'Error Response', link: '/en/api/#error-response'},
|
||||||
|
{text: 'Status Codes', link: '/en/api/#status-codes'},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
socialLinks: [
|
||||||
|
{icon: 'github', link: 'https://github.com/vastsa/FileCodeBox'},
|
||||||
|
],
|
||||||
|
footer: {
|
||||||
|
message: '基于 MIT 许可发布',
|
||||||
|
copyright: 'Copyright © 2023-present FileCodeBox',
|
||||||
|
},
|
||||||
|
search: {
|
||||||
|
provider: 'local',
|
||||||
|
},
|
||||||
|
outline: {
|
||||||
|
level: [2, 3],
|
||||||
|
label: '目录',
|
||||||
},
|
},
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
|
||||||
outline: {
|
themeConfig: {
|
||||||
level: [2, 3],
|
// 语言切换器
|
||||||
label: '目录',
|
langMenuLabel: '切换语言',
|
||||||
|
|
||||||
|
// 社交链接
|
||||||
|
socialLinks: [
|
||||||
|
{icon: 'github', link: 'https://github.com/vastsa/FileCodeBox'},
|
||||||
|
],
|
||||||
|
|
||||||
|
// 页脚
|
||||||
|
footer: {
|
||||||
|
message: '基于 MIT 许可发布',
|
||||||
|
copyright: 'Copyright © 2023-present FileCodeBox',
|
||||||
|
},
|
||||||
|
|
||||||
|
// 搜索
|
||||||
|
search: {
|
||||||
|
provider: 'local',
|
||||||
|
options: {
|
||||||
|
locales: {
|
||||||
|
zh: {
|
||||||
|
translations: {
|
||||||
|
button: {
|
||||||
|
buttonText: '搜索文档',
|
||||||
|
buttonAriaLabel: '搜索文档',
|
||||||
|
},
|
||||||
|
modal: {
|
||||||
|
noResultsText: '无法找到相关结果',
|
||||||
|
resetButtonTitle: '清除查询条件',
|
||||||
|
footer: {
|
||||||
|
selectText: '选择',
|
||||||
|
navigateText: '切换',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
outline: {
|
||||||
|
level: [2, 3],
|
||||||
|
label: '目录',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user