Skip to content

Commit 3cedcc2

Browse files
committed
Initial commit
0 parents  commit 3cedcc2

171 files changed

Lines changed: 16886 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: pnpm/action-setup@v2
18+
- uses: actions/setup-node@v3
19+
with:
20+
node-version: lts/*
21+
cache: pnpm
22+
23+
- name: Install
24+
run: pnpm install
25+
26+
- name: Lint
27+
run: pnpm run lint
28+
29+
typecheck:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v3
33+
- uses: pnpm/action-setup@v2
34+
- uses: actions/setup-node@v3
35+
with:
36+
node-version: lts/*
37+
cache: pnpm
38+
39+
- name: Install
40+
run: pnpm install
41+
42+
- name: Typecheck
43+
run: pnpm run typecheck
44+
45+
# check windows build
46+
build:
47+
runs-on: ${{ matrix.os }}
48+
49+
strategy:
50+
matrix:
51+
node-version: [lts/*]
52+
os: [ubuntu-latest, windows-latest]
53+
fail-fast: false
54+
55+
steps:
56+
- uses: actions/checkout@v3
57+
58+
- name: Install pnpm
59+
uses: pnpm/action-setup@v2
60+
61+
- name: Use Node.js ${{ matrix.node-version }}
62+
uses: actions/setup-node@v3
63+
with:
64+
node-version: ${{ matrix.node-version }}
65+
registry-url: https://registry.npmjs.org/
66+
cache: pnpm
67+
68+
- name: Install
69+
run: pnpm install
70+
71+
- name: Build
72+
run: pnpm run build
73+
74+
- name: Build:demo
75+
run: pnpm run build:demo

.github/workflows/gh-pages.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: pnpm/action-setup@v2
18+
- uses: actions/setup-node@v3
19+
with:
20+
node-version: lts/*
21+
cache: pnpm
22+
23+
- name: Install
24+
run: pnpm install
25+
26+
- name: Build Theme
27+
run: pnpm run build
28+
29+
- name: Build Demo
30+
run: pnpm run build:demo
31+
32+
- name: Deploy
33+
uses: peaceiris/actions-gh-pages@v3
34+
with:
35+
github_token: ${{ secrets.GITHUB_TOKEN }}
36+
publish_dir: ./demo/dist
37+
force_orphan: true

.github/workflows/release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Install pnpm
17+
uses: pnpm/action-setup@v2
18+
with:
19+
run_install: true
20+
21+
# after pnpm
22+
- name: Use Node.js LTS
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: 'lts/*'
26+
registry-url: https://registry.npmjs.org/
27+
cache: pnpm
28+
29+
- run: pnpm run build
30+
# https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
31+
- run: pnpm ci:publish
32+
env:
33+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
34+
35+
- run: npx changelogithub
36+
env:
37+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.gitignore

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# custom
2+
package-lock.json
3+
yarn.lock
4+
5+
pnpm-global
6+
7+
# vite plugin
8+
components.d.ts
9+
auto-imports.d.ts
10+
11+
.vite-ssg-dist
12+
.vite-ssg-temp
13+
14+
dist/
15+
dist-ssr
16+
*.local
17+
18+
temp/
19+
20+
# local env files
21+
.env.local
22+
.env.*.local
23+
24+
# Logs
25+
logs
26+
*.log
27+
npm-debug.log*
28+
yarn-debug.log*
29+
yarn-error.log*
30+
pnpm-debug.log*
31+
32+
# Editor directories and files
33+
.idea
34+
*.suo
35+
*.ntvs*
36+
*.njsproj
37+
*.sln
38+
*.sw?
39+
40+
# Dependencies
41+
node_modules/
42+
43+
# Coverage
44+
coverage
45+
46+
# Transpiled files
47+
build/
48+
49+
# JetBrains IDEs
50+
.idea/
51+
52+
# Optional npm cache directory
53+
.npm
54+
55+
# Optional eslint cache
56+
.eslintcache
57+
58+
# Misc
59+
.DS_Store
60+
61+
# plugins
62+
.VSCodeCounter

.markdownlint.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"MD013": false,
3+
"MD022": false,
4+
"MD024": false,
5+
"MD033": false,
6+
"MD048": false
7+
}

.npmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
shamefully-hoist=true
2+
ignore-workspace-root-check=true
3+
strict-peer-dependencies=false

.vscode/extensions.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"recommendations": [
3+
"antfu.iconify",
4+
"antfu.unocss",
5+
"antfu.vite",
6+
"antfu.goto-alias",
7+
"csstools.postcss",
8+
"dbaeumer.vscode-eslint",
9+
"vue.volar",
10+
"lokalise.i18n-ally",
11+
"streetsidesoftware.code-spell-checker"
12+
]
13+
}

.vscode/settings.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"cSpell.words": [
3+
"algoliasearch",
4+
"antfu",
5+
"beian",
6+
"bumpp",
7+
"composables",
8+
"instantsearch",
9+
"typecheck",
10+
"valaxy",
11+
"valaxyjs"
12+
],
13+
"i18n-ally.sourceLanguage": "en",
14+
"i18n-ally.keystyle": "nested",
15+
"i18n-ally.localesPaths": ["./locales"],
16+
"i18n-ally.sortKeys": true,
17+
"files.associations": {
18+
"*.css": "postcss"
19+
},
20+
"svg.preview.background": "editor",
21+
22+
"stylelint.validate": ["css", "scss", "vue"],
23+
24+
// Disable the default formatter, use eslint instead
25+
"prettier.enable": false,
26+
"editor.formatOnSave": false,
27+
28+
// Auto fix
29+
"editor.codeActionsOnSave": {
30+
"source.fixAll.eslint": "explicit",
31+
"source.organizeImports": "never"
32+
},
33+
34+
// Enable eslint for all supported languages
35+
"eslint.validate": [
36+
"javascript",
37+
"javascriptreact",
38+
"typescript",
39+
"typescriptreact",
40+
"vue",
41+
"html",
42+
"markdown",
43+
"json",
44+
"jsonc",
45+
"yaml",
46+
"toml",
47+
"xml",
48+
"gql",
49+
"graphql",
50+
"astro",
51+
"css",
52+
"less",
53+
"scss",
54+
"pcss",
55+
"postcss"
56+
]
57+
}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 WRXinYue
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<p align="center">
2+
valaxy-theme-antfu<sup><em>(vue)</em></sup>
3+
</p>
4+
5+
This project is a port of [antfu.me](https://github.com/antfu/antfu.me). I am very fond of Anthony Fu's style and a huge fan of antfu himself. Many thanks to antfu for open-sourcing his blog and providing such a beautiful one 💖
6+
7+
You can find the theme documentation here:
8+
9+
&emsp;&emsp;<https://antfu.wrxinyue.org/docs>
10+
11+
<br>
12+
13+
<samp>code is licensed under <a href='./LICENSE'>MIT</a>,<br> words and images are licensed under <a href='https://creativecommons.org/licenses/by-nc-sa/4.0/'>CC BY-NC-SA 4.0</a></samp>.

0 commit comments

Comments
 (0)