Skip to content

Commit

Permalink
Merge pull request #100 from Mister-Hope/main
Browse files Browse the repository at this point in the history
chore: bump deps
  • Loading branch information
Masterain98 authored Dec 16, 2024
2 parents 6830f8e + 93d172e commit 8dc368a
Show file tree
Hide file tree
Showing 10 changed files with 4,879 additions and 5,600 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,34 @@

name: Deploy Docs

on:
push:
branches:
# make sure this is the branch you are using
- main

jobs:
deploy-gh-pages:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
# if your docs needs submodules, uncomment the following line
# submodules: true


- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
node-version: 22
cache: pnpm

- name: Install Deps
run: npm install
run: pnpm install --frozen-lockfile

- name: Build Docs
env:
NODE_OPTIONS: --max_old_space_size=8192
run: |-
npm run docs:build
pnpm docs:build
> dist/.nojekyll
- name: Deploy Docs
Expand All @@ -42,4 +37,3 @@ jobs:
# This is the branch where the docs are deployed to
branch: gh-pages
folder: dist

2 changes: 1 addition & 1 deletion docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineUserConfig } from "vuepress";
import { viteBundler } from "@vuepress/bundler-vite";
import theme from "./theme.js";
import { googleAnalyticsPlugin } from "@vuepress/plugin-google-analytics";
import theme from "./theme.js";

export default defineUserConfig({
base: "/",
Expand Down
2 changes: 1 addition & 1 deletion docs/.vuepress/shim.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
declare module "*.vue" {
import type { DefineComponent } from "vue";
const component: DefineComponent<{}, {}, any>;
const component: DefineComponent;
export default component;
}
2 changes: 1 addition & 1 deletion docs/.vuepress/styles/config.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// you can change config here
$code-lang: "css" "html" "js" "ts" "vue";
$theme-color: #096dd9;
1 change: 0 additions & 1 deletion docs/.vuepress/styles/index.scss

This file was deleted.

2 changes: 0 additions & 2 deletions docs/.vuepress/styles/palette.scss

This file was deleted.

245 changes: 105 additions & 140 deletions docs/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,176 +2,141 @@ import { hopeTheme } from "vuepress-theme-hope";
import { enNavbar, zhNavbar } from "./navbar/index.js";
import { enSidebar, zhSidebar } from "./sidebar/index.js";

export default hopeTheme(
{
hostname: "https://uigf.org",
export default hopeTheme({
hostname: "https://uigf.org",

author: {
name: "UIGF-org",
url: "https://github.com/UIGF-org",
},
author: {
name: "UIGF-org",
url: "https://github.com/UIGF-org",
},

iconAssets: [
"https://at.alicdn.com/t/c/font_2410206_5vb9zlyghj.css",
],
iconAssets: ["https://at.alicdn.com/t/c/font_2410206_5vb9zlyghj.css"],

logo: "/uigf-logo128.png",
logo: "/uigf-logo128.png",

repo: "UIGF-org",
repo: "UIGF-org",

repoDisplay: true,
repoDisplay: true,

docsDir: "docs",
docsDir: "docs",

pageInfo: ["Author", "Original", "Date", "Category", "Tag", "ReadingTime"],
pageInfo: ["Author", "Original", "Date", "Category", "Tag", "ReadingTime"],

locales: {
"/en/": {
// navbar
navbar: enNavbar,
locales: {
"/en/": {
// navbar
navbar: enNavbar,

// sidebar
sidebar: enSidebar,
// sidebar
sidebar: enSidebar,

footer: "Uniformed Interchangeable GenshinData Format",
footer: "Uniformed Interchangeable GenshinData Format",

displayFooter: true,
displayFooter: true,

metaLocales: {
editLink: "Edit this page on GitHub",
},
metaLocales: {
editLink: "Edit this page on GitHub",
},
},

/**
* Chinese locale config
*/
"/zh/": {
// navbar
navbar: zhNavbar,
/**
* Chinese locale config
*/
"/zh/": {
// navbar
navbar: zhNavbar,

// sidebar
sidebar: zhSidebar,
// sidebar
sidebar: zhSidebar,

footer: "统一可交换原神数据标准",
footer: "统一可交换原神数据标准",

displayFooter: true,
displayFooter: true,

// page meta
metaLocales: {
editLink: "在 GitHub 上编辑此页",
},
// page meta
metaLocales: {
editLink: "在 GitHub 上编辑此页",
},
},
},

plugins: {
// Disable features you don't want here
mdEnhance: {
align: true,
attrs: true,
codetabs: true,
hint: true,
demo: true,
gfm: false,
imgSize: true,
include: true,
imgLazyload: true,
mark: true,
playground: {
presets: ["ts", "vue"],
},
stylize: [
{
matcher: "Recommanded",
replacer: ({ tag }) => {
if (tag === "em")
return {
tag: "Badge",
attrs: { type: "tip" },
content: "Recommanded",
};
},
},
],
sub: true,
sup: true,
tabs: true,
vPre: true,
},
components: {
components: ["SiteInfo", "Badge", "FontIcon"],
},
markdown: {
include: true,
imgLazyload: true,
tabs: true,
},

pwa: false,

docsearch: {
appId: "8RHTTFZDBN",
apiKey: "3ff93fd55e3600cff166ca199d6e05cd",
indexName: "uigf",
locales: {
"/zh/": {
placeholder: "搜索文档",
translations: {
button: {
buttonText: "搜索文档",
buttonAriaLabel: "搜索文档",
plugins: {
components: {
components: ["SiteInfo", "Badge", "FontIcon"],
},

docsearch: {
appId: "8RHTTFZDBN",
apiKey: "3ff93fd55e3600cff166ca199d6e05cd",
indexName: "uigf",
locales: {
"/zh/": {
placeholder: "搜索文档",
translations: {
button: {
buttonText: "搜索文档",
buttonAriaLabel: "搜索文档",
},
modal: {
searchBox: {
resetButtonTitle: "清除查询条件",
resetButtonAriaLabel: "清除查询条件",
cancelButtonText: "取消",
cancelButtonAriaLabel: "取消",
},
startScreen: {
recentSearchesTitle: "搜索历史",
noRecentSearchesText: "没有搜索历史",
saveRecentSearchButtonTitle: "保存至搜索历史",
removeRecentSearchButtonTitle: "从搜索历史中移除",
favoriteSearchesTitle: "收藏",
removeFavoriteSearchButtonTitle: "从收藏中移除",
},
errorScreen: {
titleText: "无法获取结果",
helpText: "你可能需要检查你的网络连接",
},
footer: {
selectText: "选择",
navigateText: "切换",
closeText: "关闭",
searchByText: "搜索提供者",
},
modal: {
searchBox: {
resetButtonTitle: "清除查询条件",
resetButtonAriaLabel: "清除查询条件",
cancelButtonText: "取消",
cancelButtonAriaLabel: "取消",
},
startScreen: {
recentSearchesTitle: "搜索历史",
noRecentSearchesText: "没有搜索历史",
saveRecentSearchButtonTitle: "保存至搜索历史",
removeRecentSearchButtonTitle: "从搜索历史中移除",
favoriteSearchesTitle: "收藏",
removeFavoriteSearchButtonTitle: "从收藏中移除",
},
errorScreen: {
titleText: "无法获取结果",
helpText: "你可能需要检查你的网络连接",
},
footer: {
selectText: "选择",
navigateText: "切换",
closeText: "关闭",
searchByText: "搜索提供者",
},
noResultsScreen: {
noResultsText: "无法找到相关结果",
suggestedQueryText: "你可以尝试查询",
reportMissingResultsText: "你认为该查询应该有结果?",
reportMissingResultsLinkText: "点击反馈",
},
noResultsScreen: {
noResultsText: "无法找到相关结果",
suggestedQueryText: "你可以尝试查询",
reportMissingResultsText: "你认为该查询应该有结果?",
reportMissingResultsLinkText: "点击反馈",
},
},
},
"/en/": {
placeholder: "Search documents",
translations: {
button: {
buttonText: "Search documents",
},
},
"/en/": {
placeholder: "Search documents",
translations: {
button: {
buttonText: "Search documents",
},
},
},
},
redirect: {
defaultLocale: "/en/",
defaultBehavior: "defaultLocale",
autoLocale: true,
localeConfig: {
"/en/": ["en-US", "en-UK", "en"],
"/zh/": ["zh-CN", "zh-TW", "zh"],
},
switchLocale: "modal",
},

redirect: {
defaultLocale: "/en/",
defaultBehavior: "defaultLocale",
autoLocale: true,
localeConfig: {
"/en/": ["en-US", "en-UK", "en"],
"/zh/": ["zh-CN", "zh-TW", "zh"],
},
switchLocale: "modal",
},
},
{
custom: true,
},
);
});
Loading

0 comments on commit 8dc368a

Please sign in to comment.