Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ Relates to #XXXX

- [ ] I have read the [CONTRIBUTING](https://github.com/OpenListTeam/OpenList-Docs/blob/main/CONTRIBUTING.md) document.
我已阅读 [CONTRIBUTING](https://github.com/OpenListTeam/OpenList-Docs/blob/main/CONTRIBUTING.md) 文档。
- [ ] I have formatted my code or documentation with [prettier](https://prettier.io/) or other appropriate formatter.
我已使用 [prettier](https://prettier.io/) 或其他适当的格式化工具格式化提交的代码或文档。
- [ ] I have formatted my code or documentation with `pnpm format` ([Prettier](https://prettier.io/)) and checked code with `pnpm lint` ([ESLint](https://eslint.org/)).
我已使用 `pnpm format`([Prettier](https://prettier.io/))格式化提交的代码或文档,并使用 `pnpm lint`([ESLint](https://eslint.org/))检查代码。
- [ ] I have updated all supported languages (including Chinese and English) for documentation. (If it's needed)
我已为所有支持语言(包括中文和英文)更新文档内容。 (若适用)
- [ ] I have verified that the written documentation or code is properly formatted, with no syntax errors, spelling mistakes.
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on:
push:
branches:
- main
pull_request:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7

# pnpm version from `packageManager` in package.json, Node.js from .nvmrc,
# then `pnpm install --frozen-lockfile`
- name: Setup pnpm and Node.js
uses: pnpm/setup@v3
with:
cache: true
require-lockfile: true

- name: Format
run: pnpm format:check

- name: Lint
run: pnpm lint

- name: Typecheck
run: pnpm typecheck
28 changes: 8 additions & 20 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,32 +18,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7
with:
fetch-depth: 0
# submodules: true

- name: Install pnpm
uses: pnpm/action-setup@v5
# pnpm version from `packageManager` in package.json, Node.js from .nvmrc,
# then `pnpm install --frozen-lockfile`
- name: Setup pnpm and Node.js
uses: pnpm/setup@v3
with:
version: 10.12.1
run_install: false

- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 22
cache: pnpm

- name: Install Deps
run: pnpm install --frozen-lockfile
cache: true
require-lockfile: true

- name: Build Docs
env:
NODE_OPTIONS: --max_old_space_size=8192
DEPLOY_PLATFORM: github
run: |-
pnpm run build
run: pnpm build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
Expand Down
35 changes: 5 additions & 30 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,35 +1,10 @@
# vite-ssg
.vite-ssg-dist
.vite-ssg-temp

temp/
# temp pages
pages/temp/

.DS_Store
*.local
dist
dist-ssr
*.log
node_modules
dist
.idea/
*.log
.valaxy
components.d.ts

# valaxy fuse
public/valaxy-fuse-list.json

# valaxy rss
public/feed.xml

# valaxy rss
public/feed.json

# valaxy rss
public/atom.xml

# Git log prebuilt
public/git-log.json

# rollup-plugin-visualizer
stats.html
# VitePress
.vitepress/cache
.vitepress/.temp
3 changes: 0 additions & 3 deletions .npmrc

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
24
24
3 changes: 1 addition & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
dist
node_modules
.valaxy
.output
.vitepress/cache
coverage
*.min.js
*.min.css
Expand Down
Loading