Short links using document site

This commit is contained in:
BruceChen 2022-11-05 13:30:46 +08:00
parent 55dda7bc43
commit 02e344724d
13 changed files with 773 additions and 52 deletions

View file

@ -6,6 +6,7 @@ import { shikiPlugin } from '@vuepress/plugin-shiki'
import { defaultTheme } from '@vuepress/theme-default'
import { getDirname, path } from '@vuepress/utils'
import { searchPlugin } from "@vuepress/plugin-search";
import { redirectPlugin } from "vuepress-plugin-redirect";
import { headConfig } from './configs/head.js'
import { mainConfig, defaultThemeConfig } from './configs/locales_config.js'
@ -54,8 +55,32 @@ export default defineUserConfig({
// use plugins
plugins: [
redirectPlugin({
hostname: "https://mccteam.github.io",
config: {
"/r/entity.html": "https://github.com/MCCTeam/Minecraft-Console-Client/blob/master/MinecraftClient/Mapping/EntityType.cs",
"/r/entity/index.html": "https://github.com/MCCTeam/Minecraft-Console-Client/blob/master/MinecraftClient/Mapping/EntityType.cs",
"/r/item.html": "https://github.com/MCCTeam/Minecraft-Console-Client/blob/master/MinecraftClient/Inventory/ItemType.cs",
"/r/item/index.html": "https://github.com/MCCTeam/Minecraft-Console-Client/blob/master/MinecraftClient/Inventory/ItemType.cs",
"/r/block.html": "https://github.com/MCCTeam/Minecraft-Console-Client/blob/master/MinecraftClient/Mapping/Material.cs",
"/r/block/index.html": "https://github.com/MCCTeam/Minecraft-Console-Client/blob/master/MinecraftClient/Mapping/Material.cs",
"/r/l-code.html": "https://github.com/MCCTeam/Minecraft-Console-Client/discussions/2239#discussion-4447461",
"/r/l-code/index.html": "https://github.com/MCCTeam/Minecraft-Console-Client/discussions/2239#discussion-4447461",
"/r/dc-fmt.html": "https://www.writebots.com/discord-text-formatting/",
"/r/dc-fmt/index.html": "https://www.writebots.com/discord-text-formatting/",
"/r/tg-fmt.html": "https://sendpulse.com/blog/telegram-text-formatting",
"/r/tg-fmt/index.html": "https://sendpulse.com/blog/telegram-text-formatting",
},
}),
// only enable shiki plugin in production mode
isProd ? shikiPlugin({ theme: 'dark-plus' }) : [],
searchPlugin({
maxSuggestions: 15,
hotKeys: ["s", "/"],

View file

@ -1,4 +1,5 @@
---
title: "Home"
home: true
heroImage: /images/MCC_logo_with_edge.png
tagline: Minecraft Console Client (MCC) is a lightweight open-source Minecraft Java client implemented in C#

View file

@ -1,3 +1,6 @@
---
title: "About & Features"
---
# Introduction
- [About](#about)

View file

@ -1,3 +1,7 @@
---
title: "Chat Bots"
redirectFrom: ["/g/bots/index.html", "/g/bots.html"]
---
# Chat Bots
- [About](#about)
@ -431,7 +435,7 @@
A list of mobs which are either whitelisted or blacklisted, the mode is set in `List_Mode` setting.
You can find the full list of mobs [here](https://bit.ly/3Rg68lp).
You can find the full list of mobs [here](https://mccteam.github.io/r/entity/#L15).
- **Format:** `["<entity type>", "<entity type>", ...]`
@ -616,7 +620,7 @@
**If you have a case where you have to leave some fields empty, use `"Null"` to mark them as empty. Example for stone bricks: `Slots = [ "Stone", "Stone", "Null", "Stone", "Stone", "Null", "Null", "Null", "Null", ]`**
**All item types can be found [here](https://github.com/MCCTeam/Minecraft-Console-Client/blob/master/MinecraftClient/Inventory/ItemType.cs).**
**All item types can be found [here](https://mccteam.github.io/r/item/#L12).**
**Make sure to provide materials for your bot by placing them in inventory first.**
@ -792,7 +796,7 @@
This setting specifies the list of blocks which either should not should not be dug out.
**The list of block types can be found [here](https://github.com/MCCTeam/Minecraft-Console-Client/blob/master/MinecraftClient/Mapping/Material.cs).**
**The list of block types can be found [here](https://mccteam.github.io/r/block/#L15).**
- **Format:** `[ "<block type>", "<block type>", ...]`
@ -862,7 +866,7 @@
<div class="custom-container tip"><p class="custom-container-title">Tip</p>
**All item types can be found [here](https://github.com/MCCTeam/Minecraft-Console-Client/blob/master/MinecraftClient/Inventory/ItemType.cs).**
**All item types can be found [here](https://mccteam.github.io/r/item/#L12).**
</div>

View file

@ -1,3 +1,7 @@
---
title: "Configuration"
redirectFrom: ["/g/conf/index.html", "/g/conf.html"]
---
# Configuration
**Minecraft Console Client** can be both configured by the [command line parameters](usage.md#command-line-parameters) and the configuration file.

View file

@ -1,3 +1,6 @@
---
title: "Contributing"
---
# Contributing
At this moment this page needs to be created.
@ -32,7 +35,7 @@ MCC now supports the following languages (Alphabetical order) :
* Translation `zh-Hans.ini` applies to `zh-Hans`, `zh`, `zh-CN`, `zh-SG`.
3. Which game languages are recommended to use this translation?
* Check out the table in [this link](https://github.com/MCCTeam/Minecraft-Console-Client/discussions/2239), where the `Locale Code` column indicates the language code in minecraft.
* Check out the table in [this link](https://mccteam.github.io/r/l-code/), where the `Locale Code` column indicates the language code in minecraft.
* You will need to indicate which locale codes this translation applies to.
* For example:
* Translation `fr.ini` applies to `fr_ca`, `fr_fr`.

View file

@ -1,3 +1,6 @@
---
title: "Creating Chat Bots"
---
# Creating Chat Bots
- [Notes](#notes)

View file

@ -1,3 +1,6 @@
---
title: "Installation"
---
# Installation
- [YouTube Tutorials](#youtube-tutorials)

View file

@ -1,3 +1,6 @@
---
title: "Usage"
---
# Usage
How to run the program:
@ -350,7 +353,7 @@ In scripts and remote control, no slash is needed to perform the command, eg. `q
<div class="custom-container tip"><p class="custom-container-title">Tip</p>
**All item types can be found [here](https://github.com/MCCTeam/Minecraft-Console-Client/blob/master/MinecraftClient/Inventory/ItemType.cs).**
**All item types can be found [here](https://mccteam.github.io/r/item/#L12).**
</div>
@ -388,7 +391,7 @@ In scripts and remote control, no slash is needed to perform the command, eg. `q
<div class="custom-container tip"><p class="custom-container-title">Tip</p>
**All entity types can be found [here](https://github.com/MCCTeam/Minecraft-Console-Client/blob/master/MinecraftClient/Mapping/EntityType.cs).**
**All entity types can be found [here](https://mccteam.github.io/r/entity/#L15).**
</div>
@ -954,7 +957,7 @@ In scripts and remote control, no slash is needed to perform the command, eg. `q
<div class="custom-container tip"><p class="custom-container-title">Tip</p>
**To find item types, check out [this list](https://github.com/MCCTeam/Minecraft-Console-Client/blob/master/MinecraftClient/Inventory/ItemType.cs)**
**To find item types, check out [this list](https://mccteam.github.io/r/item/#L12)**
</div>
@ -1028,7 +1031,7 @@ In scripts and remote control, no slash is needed to perform the command, eg. `q
<div class="custom-container tip"><p class="custom-container-title">Tip</p>
**To find item types, check out [this list](https://github.com/MCCTeam/Minecraft-Console-Client/blob/master/MinecraftClient/Inventory/ItemType.cs)**
**To find item types, check out [this list](https://mccteam.github.io/r/item/#L12)**
</div>

View file

@ -14,8 +14,12 @@
},
"devDependencies": {
"@vuepress/bundler-webpack": "^2.0.0-beta.53",
"@vuepress/plugin-shiki": "^2.0.0-beta.53",
"@vuepress/plugin-search": "^2.0.0-beta.53",
"vuepress": "^2.0.0-beta.53"
"@vuepress/plugin-shiki": "^2.0.0-beta.53",
"vuepress": "^2.0.0-beta.53",
"vuepress-plugin-redirect": "^2.0.0-beta.120"
},
"dependencies": {
"anywhere": "^1.6.0"
}
}

File diff suppressed because it is too large Load diff