Add images
|
|
@ -2,12 +2,14 @@ import process from 'node:process'
|
|||
import { viteBundler } from '@vuepress/bundler-vite'
|
||||
import { webpackBundler } from '@vuepress/bundler-webpack'
|
||||
import { defineUserConfig } from '@vuepress/cli'
|
||||
// import { docsearchPlugin } from '@vuepress/plugin-docsearch'
|
||||
import { shikiPlugin } from '@vuepress/plugin-shiki'
|
||||
import { defaultTheme } from '@vuepress/theme-default'
|
||||
import { getDirname, path } from '@vuepress/utils'
|
||||
import { backToTopPlugin } from "@vuepress/plugin-back-to-top"
|
||||
import { externalLinkIconPlugin } from "@vuepress/plugin-external-link-icon"
|
||||
import { nprogressPlugin } from "@vuepress/plugin-nprogress"
|
||||
|
||||
import { head } from './configs/head.js'
|
||||
import { headConfig } from './configs/head.js'
|
||||
import { mainConfig, defaultThemeConfig } from './configs/locales_config.js'
|
||||
|
||||
const __dirname = getDirname(import.meta.url)
|
||||
|
|
@ -18,7 +20,7 @@ export default defineUserConfig({
|
|||
base: '/',
|
||||
|
||||
// extra tags in `<head>`
|
||||
head: head,
|
||||
head: headConfig,
|
||||
|
||||
// site-level locales config
|
||||
locales: mainConfig,
|
||||
|
|
@ -29,7 +31,7 @@ export default defineUserConfig({
|
|||
// configure default theme
|
||||
theme: defaultTheme({
|
||||
logo: "/images/MCC_logo.png",
|
||||
repo: "https://github.com/MCCTeam/Minecraft-Console-Client",
|
||||
repo: "MCCTeam/Minecraft-Console-Client",
|
||||
docsDir: 'docs',
|
||||
|
||||
// theme-level locales config
|
||||
|
|
@ -53,6 +55,9 @@ export default defineUserConfig({
|
|||
|
||||
// use plugins
|
||||
plugins: [
|
||||
backToTopPlugin(),
|
||||
externalLinkIconPlugin(),
|
||||
nprogressPlugin(),
|
||||
// only enable shiki plugin in production mode
|
||||
isProd ? shikiPlugin({ theme: 'dark-plus' }) : [],
|
||||
],
|
||||
|
|
|
|||
|
|
@ -1,8 +1,32 @@
|
|||
import type { HeadConfig } from '@vuepress/core'
|
||||
|
||||
export const head: HeadConfig[] = [
|
||||
["meta", { name: "theme-color", content: "#3eaf7c" }],
|
||||
["meta", { name: "apple-mobile-web-app-capable", content: "yes" }],
|
||||
["meta", { name: "apple-mobile-web-app-status-bar-style", content: "black" }],
|
||||
["link", { rel: "icon", href: "../../favicon.ico" }],
|
||||
export const headConfig: HeadConfig[] = [
|
||||
[
|
||||
'link',
|
||||
{
|
||||
rel: 'icon',
|
||||
type: 'image/png',
|
||||
sizes: '16x16',
|
||||
href: `/images/icons/favicon-16x16.png`,
|
||||
},
|
||||
],
|
||||
[
|
||||
'link',
|
||||
{
|
||||
rel: 'icon',
|
||||
type: 'image/png',
|
||||
sizes: '32x32',
|
||||
href: `/images/icons/favicon-32x32.png`,
|
||||
},
|
||||
],
|
||||
['link', { rel: 'manifest', href: '/manifest.webmanifest' }],
|
||||
['meta', { name: 'application-name', content: 'MCC Doc' }],
|
||||
['meta', { name: 'apple-mobile-web-app-title', content: 'MCC Doc' }],
|
||||
['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }],
|
||||
[
|
||||
'link',
|
||||
{ rel: 'apple-touch-icon', href: `/images/icons/apple-touch-icon.png` },
|
||||
],
|
||||
['meta', { name: 'msapplication-TileColor', content: '#3eaf7c' }],
|
||||
['meta', { name: 'theme-color', content: '#3eaf7c' }],
|
||||
]
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
import type { SiteLocaleData } from '@vuepress/shared'
|
||||
import type { DefaultThemeLocaleData } from '@vuepress/theme-default'
|
||||
import { head } from '../head.js'
|
||||
import { headConfig } from '../head.js'
|
||||
|
||||
const Translation = require('../../translations/$LanguageCode$.json')
|
||||
|
||||
export const mainConfig_$LanguageCodeEscaped$: SiteLocaleData = {
|
||||
export const mainConfig_$LanguageCodeEscaped$ = {
|
||||
lang: '$LanguageCode$',
|
||||
title: Translation.title,
|
||||
description: Translation.description,
|
||||
head: head
|
||||
head: headConfig
|
||||
}
|
||||
|
||||
export const defaultThemeConfig_$LanguageCodeEscaped$: DefaultThemeLocaleData = {
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
/* This file is automatically generated by "gen_configs.py" */
|
||||
import type { SiteLocaleData } from '@vuepress/shared'
|
||||
import type { DefaultThemeLocaleData } from '@vuepress/theme-default'
|
||||
import { head } from '../head.js'
|
||||
import { headConfig } from '../head.js'
|
||||
|
||||
const Translation = require('../../translations/en.json')
|
||||
|
||||
export const mainConfig_en: SiteLocaleData = {
|
||||
export const mainConfig_en = {
|
||||
lang: 'en',
|
||||
title: Translation.title,
|
||||
description: Translation.description,
|
||||
head: head
|
||||
head: headConfig
|
||||
}
|
||||
|
||||
export const defaultThemeConfig_en: DefaultThemeLocaleData = {
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
/* This file is automatically generated by "gen_configs.py" */
|
||||
import type { SiteLocaleData } from '@vuepress/shared'
|
||||
import type { DefaultThemeLocaleData } from '@vuepress/theme-default'
|
||||
import { head } from '../head.js'
|
||||
import { headConfig } from '../head.js'
|
||||
|
||||
const Translation = require('../../translations/zh-Hans.json')
|
||||
|
||||
export const mainConfig_zh_Hans: SiteLocaleData = {
|
||||
export const mainConfig_zh_Hans = {
|
||||
lang: 'zh-Hans',
|
||||
title: Translation.title,
|
||||
description: Translation.description,
|
||||
head: head
|
||||
head: headConfig
|
||||
}
|
||||
|
||||
export const defaultThemeConfig_zh_Hans: DefaultThemeLocaleData = {
|
||||
|
|
|
|||
BIN
docs/.vuepress/public/icons/android-chrome-192x192.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
docs/.vuepress/public/icons/android-chrome-512x512.png
Normal file
|
After Width: | Height: | Size: 126 KiB |
BIN
docs/.vuepress/public/icons/apple-touch-icon.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
docs/.vuepress/public/icons/favicon-16x16.png
Normal file
|
After Width: | Height: | Size: 651 B |
BIN
docs/.vuepress/public/icons/favicon-32x32.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
docs/.vuepress/public/icons/favicon.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
docs/.vuepress/public/images/guide/ChunkStatus.png
Normal file
|
After Width: | Height: | Size: 5.3 KiB |
BIN
docs/.vuepress/public/images/guide/PlayerInventory.png
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
docs/.vuepress/public/images/guide/VPS_ConfigureStorage.png
Normal file
|
After Width: | Height: | Size: 40 KiB |
BIN
docs/.vuepress/public/images/guide/VPS_InstanceType.png
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
docs/.vuepress/public/images/guide/VPS_Name.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
docs/.vuepress/public/images/guide/VPS_NetworkSettings.png
Normal file
|
After Width: | Height: | Size: 92 KiB |
BIN
docs/.vuepress/public/images/guide/VPS_SelectOS.png
Normal file
|
After Width: | Height: | Size: 100 KiB |
20
docs/.vuepress/public/manifest.webmanifest
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"name": "MCC Documentation",
|
||||
"short_name": "MCC Doc",
|
||||
"description": "Documentation website for Minecraft Console Client (MCC)",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/android-chrome-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/android-chrome-512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
],
|
||||
"theme_color": "#3eaf7c",
|
||||
"background_color": "#ffffff",
|
||||
"display": "standalone"
|
||||
}
|
||||