Repository navigation
Expand file tree
/
Copy pathdocs.config.ts
More file actions
113 lines (112 loc) · 3.66 KB
/
Copy pathdocs.config.ts
File metadata and controls
113 lines (112 loc) · 3.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
// LegacyScriptEngine documentation — built with levimc-kit (see kit/README.md).
// Ported 1:1 from the former mkdocs.yml (MkDocs Material + mkdocs-static-i18n).
import { defineDocsConfig } from './kit/docs/node/config.ts';
export default defineDocsConfig({
base: '/LegacyScriptEngine/',
title: 'LegacyScriptEngine',
titleTemplate: ':title - :site',
logo: 'img/logo.png',
favicon: 'img/logo.png',
project: 'LegacyScriptEngine',
repo: 'https://github.com/LiteLDev/LegacyScriptEngine',
editLink: 'https://github.com/LiteLDev/LegacyScriptEngine/edit/develop/docs/:path',
contentDir: 'docs',
hostname: 'https://docs.levimc.org',
sitemap: { hostname: 'https://docs.levimc.org' },
lastUpdated: true,
i18n: {
mode: 'suffix',
defaultLocale: 'en',
locales: [
{ code: 'en', label: 'English', lang: 'en' },
{ code: 'zh', label: '中文', lang: 'zh' },
],
},
urlStyle: 'directory',
slug: 'pymdownx',
markdown: { compat: 'python-markdown' },
// MkDocs Material lists h2–h6 in "Table of contents"; the API entries of File, Basic, Command, DataBase
// and LanguageSupport are h5 headings, so keep the full depth instead of the kit default [2, 4].
outline: [2, 6],
sidebar: 'tabs',
// Same tree as mkdocs.yml. Like MkDocs Material without navigation.expand, the 'tabs' sidebar starts every API
// sub-group collapsed except the one that holds the current page (kit default since 1.1.0).
nav: [
{ Home: 'index.md' },
{ Tutorials: ['tutorials/create_your_first_plugin.md'] },
'faq.md',
{
APIs: [
'apis/README.md',
'apis/LanguageSupport.md',
{
DataAPI: [
'apis/DataAPI/ConfigFile.md',
'apis/DataAPI/DataBase.md',
'apis/DataAPI/Economy.md',
'apis/DataAPI/OtherData.md',
'apis/DataAPI/PlayerData.md',
],
},
{
EventAPI: [
'apis/EventAPI/Listen.md',
'apis/EventAPI/BlockEvents.md',
'apis/EventAPI/EconomicEvents.md',
'apis/EventAPI/EntityEvents.md',
'apis/EventAPI/OtherEvents.md',
'apis/EventAPI/PlayerEvents.md',
],
},
{
GameAPI: [
'apis/GameAPI/Basic.md',
'apis/GameAPI/Block.md',
'apis/GameAPI/BlockEntity.md',
'apis/GameAPI/Command.md',
'apis/GameAPI/Container.md',
'apis/GameAPI/Device.md',
'apis/GameAPI/Entity.md',
'apis/GameAPI/GameUtils.md',
'apis/GameAPI/Item.md',
'apis/GameAPI/Packet.md',
'apis/GameAPI/Particle.md',
'apis/GameAPI/Player.md',
'apis/GameAPI/ScoreBoard.md',
'apis/GameAPI/Server.md',
],
},
{ GuiAPI: ['apis/GuiAPI/Form.md', 'apis/GuiAPI/FormBuilder.md'] },
{
NbtAPI: [
'apis/NbtAPI/NBT.md',
'apis/NbtAPI/NBTCompound.md',
'apis/NbtAPI/NBTList.md',
'apis/NbtAPI/NBTValue.md',
],
},
{
ScriptAPI: [
'apis/ScriptAPI/Logger.md',
'apis/ScriptAPI/ScriptHelp.md',
'apis/ScriptAPI/i18n.md',
'apis/ScriptAPI/Ll.md',
'apis/ScriptAPI/VanillaI18n.md',
],
},
{
SystemAPI: [
'apis/SystemAPI/File.md',
'apis/SystemAPI/FileSystem.md',
'apis/SystemAPI/Network.md',
'apis/SystemAPI/SystemCall.md',
'apis/SystemAPI/SystemInfo.md',
],
},
],
},
],
navTranslations: {
zh: { Home: '主页', Tutorials: '教程', APIs: '接口' },
},
});