Skip to content

Commit

Permalink
add valaxy
Browse files Browse the repository at this point in the history
  • Loading branch information
BlitherBoom812 committed Apr 10, 2024
1 parent 2ceb14c commit 800c057
Show file tree
Hide file tree
Showing 454 changed files with 26,973 additions and 0 deletions.
2 changes: 2 additions & 0 deletions blitherboom-blog/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
9 changes: 9 additions & 0 deletions blitherboom-blog/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
42 changes: 42 additions & 0 deletions blitherboom-blog/.github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: GitHub Pages

on:
push:
branches:
# The branch where the project source code resides
# 项目源代码所在的分支
- main
- master
- valaxy

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
node-version: [lts/*]
os: [ubuntu-latest]
fail-fast: false

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/

- name: 📦 Install Dependencies
run: npm i

- name: 🌌 Build Valaxy Blog
run: npm run build

- name: 🪤 Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
force_orphan: true
20 changes: 20 additions & 0 deletions blitherboom-blog/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# valaxy

valaxy-fuse-list.json

# vite-ssg

.vite-ssg-dist
.vite-ssg-temp

temp/

.DS_Store
*.local
dist
dist-ssr
node_modules
.idea/
*.log

components.d.ts
3 changes: 3 additions & 0 deletions blitherboom-blog/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# for pnpm
shamefully-hoist=true
strict-peer-dependencies=false
56 changes: 56 additions & 0 deletions blitherboom-blog/.valaxy/typed-router.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/* eslint-disable */
/* prettier-ignore */
// @ts-nocheck
// Generated by unplugin-vue-router. ‼️ DO NOT MODIFY THIS FILE ‼️
// It's recommended to commit this file.
// Make sure to add this file to your tsconfig.json file as an "includes" or "files" entry.

declare module 'vue-router/auto-routes' {
import type {
RouteRecordInfo,
ParamValue,
ParamValueOneOrMore,
ParamValueZeroOrMore,
ParamValueZeroOrOne,
} from 'unplugin-vue-router/types'

/**
* Route name map generated by unplugin-vue-router
*/
export interface RouteNamedMap {
'/': RouteRecordInfo<'/', '/', Record<never, never>, Record<never, never>>,
'/[...path]': RouteRecordInfo<'/[...path]', '/:path(.*)', { path: ParamValue<true> }, { path: ParamValue<false> }>,
'/404': RouteRecordInfo<'/404', '/404', Record<never, never>, Record<never, never>>,
'/about/': RouteRecordInfo<'/about/', '/about', Record<never, never>, Record<never, never>>,
'/about/site': RouteRecordInfo<'/about/site', '/about/site', Record<never, never>, Record<never, never>>,
'/archives/': RouteRecordInfo<'/archives/', '/archives', Record<never, never>, Record<never, never>>,
'/categories/': RouteRecordInfo<'/categories/', '/categories', Record<never, never>, Record<never, never>>,
'/links/': RouteRecordInfo<'/links/', '/links', Record<never, never>, Record<never, never>>,
'/page/[page]': RouteRecordInfo<'/page/[page]', '/page/:page', { page: ParamValue<true> }, { page: ParamValue<false> }>,
'/posts/量筒': RouteRecordInfo<'/posts/量筒', '/posts/量筒', Record<never, never>, Record<never, never>>,
'/posts/数逻': RouteRecordInfo<'/posts/数逻', '/posts/数逻', Record<never, never>, Record<never, never>>,
'/posts/数字系统设计': RouteRecordInfo<'/posts/数字系统设计', '/posts/数字系统设计', Record<never, never>, Record<never, never>>,
'/posts/通网': RouteRecordInfo<'/posts/通网', '/posts/通网', Record<never, never>, Record<never, never>>,
'/posts/AI': RouteRecordInfo<'/posts/AI', '/posts/AI', Record<never, never>, Record<never, never>>,
'/posts/Antenna': RouteRecordInfo<'/posts/Antenna', '/posts/Antenna', Record<never, never>, Record<never, never>>,
'/posts/Computer-Network': RouteRecordInfo<'/posts/Computer-Network', '/posts/Computer-Network', Record<never, never>, Record<never, never>>,
'/posts/cpp-multi-file': RouteRecordInfo<'/posts/cpp-multi-file', '/posts/cpp-multi-file', Record<never, never>, Record<never, never>>,
'/posts/CSAPP学习笔记': RouteRecordInfo<'/posts/CSAPP学习笔记', '/posts/CSAPP学习笔记', Record<never, never>, Record<never, never>>,
'/posts/DataAndAlgorithms': RouteRecordInfo<'/posts/DataAndAlgorithms', '/posts/DataAndAlgorithms', Record<never, never>, Record<never, never>>,
'/posts/Digital-Signal-Processing': RouteRecordInfo<'/posts/Digital-Signal-Processing', '/posts/Digital-Signal-Processing', Record<never, never>, Record<never, never>>,
'/posts/DRL': RouteRecordInfo<'/posts/DRL', '/posts/DRL', Record<never, never>, Record<never, never>>,
'/posts/github-command': RouteRecordInfo<'/posts/github-command', '/posts/github-command', Record<never, never>, Record<never, never>>,
'/posts/hello-valaxy': RouteRecordInfo<'/posts/hello-valaxy', '/posts/hello-valaxy', Record<never, never>, Record<never, never>>,
'/posts/hello-world': RouteRecordInfo<'/posts/hello-world', '/posts/hello-world', Record<never, never>, Record<never, never>>,
'/posts/Introduction-to-Probability': RouteRecordInfo<'/posts/Introduction-to-Probability', '/posts/Introduction-to-Probability', Record<never, never>, Record<never, never>>,
'/posts/Physics': RouteRecordInfo<'/posts/Physics', '/posts/Physics', Record<never, never>, Record<never, never>>,
'/posts/PhysicsExercise': RouteRecordInfo<'/posts/PhysicsExercise', '/posts/PhysicsExercise', Record<never, never>, Record<never, never>>,
'/posts/Python-OJ': RouteRecordInfo<'/posts/Python-OJ', '/posts/Python-OJ', Record<never, never>, Record<never, never>>,
'/posts/Signal-and-Systems': RouteRecordInfo<'/posts/Signal-and-Systems', '/posts/Signal-and-Systems', Record<never, never>, Record<never, never>>,
'/posts/Speech-SP': RouteRecordInfo<'/posts/Speech-SP', '/posts/Speech-SP', Record<never, never>, Record<never, never>>,
'/posts/StaSP': RouteRecordInfo<'/posts/StaSP', '/posts/StaSP', Record<never, never>, Record<never, never>>,
'/posts/Stochastic-Process': RouteRecordInfo<'/posts/Stochastic-Process', '/posts/Stochastic-Process', Record<never, never>, Record<never, never>>,
'/posts/stuffs': RouteRecordInfo<'/posts/stuffs', '/posts/stuffs', Record<never, never>, Record<never, never>>,
'/tags/': RouteRecordInfo<'/tags/', '/tags', Record<never, never>, Record<never, never>>,
}
}
18 changes: 18 additions & 0 deletions blitherboom-blog/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM node:16-alpine as build-stage

WORKDIR /app
RUN corepack enable

COPY .npmrc package.json ./
RUN --mount=type=cache,id=pnpm-store,target=/root/.pnpm-store \
pnpm install

COPY . .
RUN pnpm build

FROM nginx:stable-alpine as production-stage

COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 80

CMD ["nginx", "-g", "daemon off;"]
51 changes: 51 additions & 0 deletions blitherboom-blog/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# create-valaxy

Example: [valaxy.site](https://valaxy.site)

## Usage

```bash
# install
npm i
# or pnpm i

# start
npm run dev
# or pnpm dev
```

See `http://localhost:4859/`, have fun!

### Config

Modify `valaxy.config.ts` to custom your blog.

English & Chinese Docs is coming!

> Wait a minute.
### Docker

```bash
docker build . -t your-valaxy-blog-name:latest
```

## Structure

In most cases, you only need to work in the `pages` folder.

### Main folders

- `pages`: your all pages
- `posts`: write your posts here, will be counted as posts
- `styles`: override theme styles, `index.scss`/`vars.csss`/`index.css` will be loaded automatically
- `components`: custom your vue components (will be loaded automatically)
- `layouts`: custom layouts (use it by `layout: xxx` in md)
- `locales`: custom i18n

### Other

- `.vscode`: recommend some useful plugins & settings, you can preview icon/i18n/class...
- `.github`: GitHub Actions to auto build & deploy to GitHub Pages
- `netlify.toml`: for [netlify](https://www.netlify.com/)
- `vercel.json`: for [vercel](https://vercel.com/)
7 changes: 7 additions & 0 deletions blitherboom-blog/components/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Components

Components in this dir will be auto-registered and on-demand, powered by [`unplugin-vue-components`](https://github.com/antfu/unplugin-vue-components).

## Icons

You can use icons from almost any icon sets by the power of [Iconify](https://iconify.design/).
3 changes: 3 additions & 0 deletions blitherboom-blog/layouts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# layouts

You can override valaxy/theme layouts here.
3 changes: 3 additions & 0 deletions blitherboom-blog/locales/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# locales

You can custom i18n here.
4 changes: 4 additions & 0 deletions blitherboom-blog/locales/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# you can custom locale
intro:
desc: Valaxy Template
hi: Hello, Valaxy!
4 changes: 4 additions & 0 deletions blitherboom-blog/locales/zh-CN.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# 你可以像这样自定义 i18n
intro:
desc: Valaxy 模版
hi: 你好,Valaxy
17 changes: 17 additions & 0 deletions blitherboom-blog/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[build]
publish = "dist"
command = "npm run build"

[build.environment]
NODE_VERSION = "16"

[[redirects]]
from = "/*"
to = "/index.html"
status = 200

[[headers]]
for = "/manifest.webmanifest"

[headers.values]
Content-Type = "application/manifest+json"
21 changes: 21 additions & 0 deletions blitherboom-blog/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "blitherboom-blog",
"type": "module",
"version": "0.0.0",
"private": true,
"scripts": {
"build": "npm run build:ssg",
"build:spa": "valaxy build",
"build:ssg": "valaxy build --ssg",
"dev": "valaxy",
"rss": "valaxy rss",
"serve": "vite preview"
},
"dependencies": {
"valaxy": "0.18.5",
"valaxy-theme-yun": "0.18.5"
},
"devDependencies": {
"typescript": "^5.3.3"
}
}
3 changes: 3 additions & 0 deletions blitherboom-blog/pages/404.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
layout: 404
---
15 changes: 15 additions & 0 deletions blitherboom-blog/pages/about/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: 关于我
---

I am developing [Valaxy](https://github.com/YunYouJun/valaxy) - Next Generation Static Blog Framework.

If you like it, you can sponsor me in [GitHub](https://github.com/sponsors/YunYouJun) or [sponsors.yunyoujun.cn](https://sponsors.yunyoujun.cn).

---

我正在开发 [Valaxy](https://github.com/YunYouJun/valaxy) - 下一代静态博客框架。

如果你喜欢它,你可以在 [GitHub](https://github.com/sponsors/YunYouJun)[sponsors.yunyoujun.cn](https://sponsors.yunyoujun.cn) 赞助我。

Check out the [Valaxy | GitHub](https://github.com/YunYouJun/valaxy) for more details.
7 changes: 7 additions & 0 deletions blitherboom-blog/pages/about/site.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: 关于站点
---

Valaxy + valaxy-theme-yun Demo Site

- Default Theme: [valaxy-theme-yun](https://github.com/YunYouJun/valaxy/blob/main/packages/valaxy-theme-yun/)
5 changes: 5 additions & 0 deletions blitherboom-blog/pages/archives/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
layout: archives
nav: false
comment: false
---
9 changes: 9 additions & 0 deletions blitherboom-blog/pages/categories/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
layout: categories
nav: false
toc: false
icon: i-ri-folder-2-line
# You can custom title
# title: 云游的小分类
# comment: false
---
70 changes: 70 additions & 0 deletions blitherboom-blog/pages/css/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
@font-face {
font-family: "宋体";
font-weight: normal;
font-style: normal;
src: url("/fonts/SIMSUN.TTC");
}

@font-face {
font-family: "华文宋体";
font-weight: normal;
font-style: normal;
src: url("/fonts/STSONG.TTF");
}

@font-face {
font-family: "华文宋体";
font-weight: normal;
font-style: italic;
src: url("/fonts/STKAITI.TTF");
}

@font-face {
font-family: "华文楷体";
font-weight: normal;
font-style: normal;
src: url("/fonts/STKAITI.TTF");
}

@font-face {
font-family: "华文仿宋";
font-weight: normal;
font-style: normal;
src: url("/fonts/STFANGSO.TTF");
}

@font-face {
font-family: "SmileySans";
font-weight: normal;
font-style: normal;
src: url("/fonts/SmileySans-Oblique.otf");
}


@font-face {
font-family: "Latin Modern Roman 10";
font-weight: normal;
font-style: normal;
src: url("/fonts/LMROMAN10-REGULAR.OTF");
}

@font-face {
font-family: "Latin Modern Roman 10";
font-weight: bold;
font-style: normal;
src: url("/fonts/LMROMAN10-BOLD.OTF");
}

@font-face {
font-family: "Latin Modern Roman 10";
font-weight: normal;
font-style: italic;
src: url("/fonts/LMROMAN10-ITALIC.OTF");
}

@font-face {
font-family: "Latin Modern Roman 10";
font-weight: bold;
font-style: italic;
src: url("/fonts/LMROMAN10-BOLDITALIC.OTF");
}
Loading

0 comments on commit 800c057

Please sign in to comment.