-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
1,341 additions
and
9,854 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Deploy VitePress site to Pages | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
|
||
workflow_dispatch: | ||
|
||
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@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: pnpm/action-setup@v2 | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: pnpm | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v4 | ||
- name: Install dependencies | ||
run: pnpm install | ||
- name: Build with VitePress | ||
run: | | ||
pnpm run docs:build | ||
touch docs/.vitepress/dist/.nojekyll | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: docs/.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@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
dist | ||
node_modules | ||
types | ||
types | ||
|
||
cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
shamefully-hoist=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import { defineConfig } from "vitepress"; | ||
|
||
export default defineConfig({ | ||
title: "ZAff", | ||
description: "ES module for processing arcaea file format", | ||
lang: "zh-CN", | ||
base: "/zaff/", | ||
themeConfig: { | ||
nav: [ | ||
{ | ||
text: "主页", | ||
link: "/" | ||
}, | ||
{ | ||
text: "文档", | ||
link: "/quick/" | ||
}, | ||
{ | ||
text: "Github", | ||
link: "https://github.com/KazariEX/zaff" | ||
} | ||
], | ||
sidebar: [ | ||
{ | ||
text: "快速开始", | ||
collapsed: false, | ||
items: [ | ||
{ | ||
text: "简介", | ||
link: "/quick/" | ||
}, | ||
{ | ||
text: "安装", | ||
link: "/quick/download" | ||
}, | ||
{ | ||
text: "基础", | ||
link: "/quick/base" | ||
} | ||
] | ||
}, | ||
{ | ||
text: "进阶", | ||
collapsed: false, | ||
items: [ | ||
{ | ||
text: "缓动", | ||
link: "/advance/easing" | ||
} | ||
] | ||
} | ||
], | ||
footer: { | ||
message: "MIT License", | ||
copyright: "Copyright © 2023-2024 KazariEX" | ||
} | ||
} | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
layout: home | ||
hero: | ||
name: ZAff | ||
text: 用于处理 Arcaea 谱面文件的 Node.js 库 | ||
|
||
actions: | ||
- theme: brand | ||
text: 快速上手 | ||
link: /quick/ | ||
--- |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
# 安装 | ||
--- | ||
title: 安装 | ||
--- | ||
|
||
# {{ $frontmatter.title }} | ||
|
||
通过以下方式安装ZAff。 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: 简介 | ||
--- | ||
|
||
# {{ $frontmatter.title }} | ||
|
||
欢迎使用ZAff。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,21 +26,22 @@ | |
], | ||
"exports": { | ||
".": { | ||
"import": "./dist/zaff.js", | ||
"require": "./dist/zaff.cjs" | ||
"import": "./dist/zaff.js", | ||
"require": "./dist/zaff.cjs" | ||
} | ||
}, | ||
"packageManager": "[email protected]", | ||
"scripts": { | ||
"docs:deploy": "sh deploy.sh", | ||
"docs:dev": "SET NODE_OPTIONS=--openssl-legacy-provider && vuepress dev docs --temp .temp", | ||
"docs:build": "SET NODE_OPTIONS=--openssl-legacy-provider && vuepress build docs", | ||
"docs:dev": "vitepress dev docs", | ||
"docs:build": "vitepress build docs", | ||
"build": "vite build -w", | ||
"test": "vitest" | ||
}, | ||
"devDependencies": { | ||
"vite": "^5.0.12", | ||
"vite-plugin-dts": "^3.7.2", | ||
"vitest": "^1.2.2", | ||
"vuepress": "^1.9.10" | ||
"vitepress": "1.0.0-rc.41", | ||
"vitest": "^1.2.2" | ||
} | ||
} |
Oops, something went wrong.