Skip to content

Commit

Permalink
从VuePress改为VitePress
Browse files Browse the repository at this point in the history
  • Loading branch information
沫烬染 committed Jan 17, 2024
1 parent cba911e commit 9ed4c14
Show file tree
Hide file tree
Showing 47 changed files with 2,082 additions and 11,406 deletions.
47 changes: 0 additions & 47 deletions .github/workflows/deploy-docs.yml

This file was deleted.

68 changes: 68 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# 构建 VitePress 站点并将其部署到 GitHub Pages 的示例工作流程
#
name: Deploy VitePress site to Pages

on:
# 在针对 `main` 分支的推送上运行。如果你
# 使用 `master` 分支作为默认分支,请将其更改为 `master`
push:
branches: [main]

# 允许你从 Actions 选项卡手动运行此工作流程
workflow_dispatch:

# 设置 GITHUB_TOKEN 的权限,以允许部署到 GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# 只允许同时进行一次部署,跳过正在运行和最新队列之间的运行队列
# 但是,不要取消正在进行的运行,因为我们希望允许这些生产部署完成
concurrency:
group: pages
cancel-in-progress: false

jobs:
# 构建工作
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # 如果未启用 lastUpdated,则不需要

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm

- name: Setup Pages
uses: actions/configure-pages@v3

- name: Install dependencies
run: npm ci

- name: Build with VitePress
run: |
npm run docs:build
touch .vitepress/dist/.nojekyll
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: .vitepress/dist

# 部署工作
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
node_modules
src/.vuepress/.cache/
src/.vuepress/.temp/
src/.vuepress/dist/
.vitepress/cache/
.vitepress/dist/
76 changes: 76 additions & 0 deletions .vitepress/config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
import { defineConfig } from "vitepress";


// https://vitepress.dev/reference/site-config
export default defineConfig({
srcDir: "src",
lang: "zh-Hans",
title: "LiteLoaderQQNT",
description: "QQNT 插件加载器",
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: "首页", link: "/" },
{ text: "开始使用", link: "/guide/introduction", activeMatch: "/guide" },
{ text: "开发文档", link: "/docs/introduction", activeMatch: "/docs" }
],
sidebar: [
{
text: "教程",
items: [
{
text: "开始使用",
collapsed: false,
items: [
{ text: "介绍", link: "/guide/introduction" },
{ text: "安装", link: "/guide/install" }
]
},
{
text: "开发文档",
collapsed: false,
items: [
{ text: "开始你的第一个插件", link: "/docs/introduction" },
{ text: "LiteLoader API", link: "/docs/LiteLoader-API" },
{ text: "Web Components ", link: "/docs/Web-Components" }
]
}
]
},
{
text: "其他",
items: [
{
text: "LLAPI",
collapsed: false,
items: [
{ text: "LLAPI用法", link: "/others/LLAPI" },
]
}
]
}
],
editLink: {
pattern: "https://github.com/LiteLoaderQQNT/LiteLoaderQQNT.github.io/edit/main/src/:path",
text: "在GitHub上编辑此页面"
},
lastUpdated: {
text: "最后更新",
formatOptions: {
dateStyle: "medium",
timeStyle: "short"
}
},
docFooter: {
prev: "上一页",
next: "下一页"
},
search: {
provider: "local",
},
footer: {
message: "Released under the MIT License.",
copyright: "Copyright © 2024 LiteLoaderQQNT"
}
}
});
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# LiteLoaderQQNT-Homepage
# Website

LiteLoaderQQNT的主页
LiteLoaderQQNT网站:主页 · 文档 · 教程 · 开发

临时域名:
- [llqqnt.mukapp.top](https://llqqnt.mukapp.top/)\
运行状态:[![status](https://status.mukapp.top/api/badge/9/status)](https://status.mukapp.top/status)
运行状态:[![status](https://status.mukapp.top/api/badge/9/status)](https://status.mukapp.top/status)
Loading

0 comments on commit 9ed4c14

Please sign in to comment.