mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-22 19:07:39 +08:00
📝 [docs]: 重新更改开发文档侧边栏顺序
This commit is contained in:
parent
bdc32b26fe
commit
77b77c285b
@ -10,7 +10,7 @@ export const en = defineConfig({
|
|||||||
{text: 'Deploy', link: '/en/deploy/install'},
|
{text: 'Deploy', link: '/en/deploy/install'},
|
||||||
{text: 'Usage', link: '/en/usage/basic'},
|
{text: 'Usage', link: '/en/usage/basic'},
|
||||||
{text: 'Extension', link: '/en/store/resource'},
|
{text: 'Extension', link: '/en/store/resource'},
|
||||||
{text: 'Develop', link: '/en/dev/api'},
|
{text: 'Develop', link: '/en/dev/guide'},
|
||||||
],
|
],
|
||||||
docFooter: {
|
docFooter: {
|
||||||
prev: 'Prev Page',
|
prev: 'Prev Page',
|
||||||
|
@ -10,7 +10,7 @@ export const zh = defineConfig({
|
|||||||
{text: '部署', link: '/deploy/install'},
|
{text: '部署', link: '/deploy/install'},
|
||||||
{text: '使用', link: '/usage/basic'},
|
{text: '使用', link: '/usage/basic'},
|
||||||
{text: '扩展', link: '/store/resource'},
|
{text: '扩展', link: '/store/resource'},
|
||||||
{text: '开发', link: '/dev/api'},
|
{text: '开发', link: '/dev/guide'},
|
||||||
],
|
],
|
||||||
docFooter: {
|
docFooter: {
|
||||||
prev: '上一页',
|
prev: '上一页',
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
"""
|
||||||
|
---
|
||||||
|
title: liteyuki API
|
||||||
|
order: 100
|
||||||
|
---
|
||||||
|
此模块为liteyuki的框架整体
|
||||||
|
This module is the overall framework of liteyuki.
|
||||||
|
"""
|
||||||
from liteyuki.bot import (
|
from liteyuki.bot import (
|
||||||
LiteyukiBot,
|
LiteyukiBot,
|
||||||
get_bot,
|
get_bot,
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
"""
|
"""
|
||||||
该模块用于常用配置文件的加载
|
该模块用于常用配置文件的加载
|
||||||
多配置文件编写原则:
|
多配置文件编写原则:
|
||||||
1.尽量不要冲突: 一个键不要多次出现
|
1. 尽量不要冲突: 一个键不要多次出现
|
||||||
2.分工明确: 每个配置文件给一个或一类服务提供配置
|
2. 分工明确: 每个配置文件给一个或一类服务提供配置
|
||||||
3.扁平化编写: 配置文件尽量扁平化,不要出现过多的嵌套
|
3. 扁平化编写: 配置文件尽量扁平化,不要出现过多的嵌套
|
||||||
4.注意冲突时的优先级: 项目目录下的配置文件优先级高于config目录下的配置文件
|
4. 注意冲突时的优先级: 项目目录下的配置文件优先级高于config目录下的配置文件
|
||||||
5.请不要将需要动态加载的内容写入配置文件,你应该使用其他储存方式
|
5. 请不要将需要动态加载的内容写入配置文件,你应该使用其他储存方式
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
5
liteyuki/plugins/__init__.py
Normal file
5
liteyuki/plugins/__init__.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""
|
||||||
|
此模块为内置插件文件夹,用于存放内置插件。
|
||||||
|
This module is the built-in plugin folder, used to store built-in plugins.
|
||||||
|
"""
|
Loading…
Reference in New Issue
Block a user