Skip to content

Commit

Permalink
chore(deps): update to saber alter v0.12.2
Browse files Browse the repository at this point in the history
Signed-off-by: Chawye Hsu <[email protected]>
  • Loading branch information
chawyehsu committed Oct 16, 2024
1 parent eae30ee commit 339d346
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 181 deletions.
57 changes: 24 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,54 +1,49 @@
<img src="./static/_saber/images/icons/chawyehsu_128x128.svg" alt="Logo" width="128" height="128" align="right" />

# chawyehsu.com

[![deployment][deployment-badge]][deployment-url]
[![status][status-badge]][status-url]
[![webpagetest][webpagetest-badge]][webpagetest-url]
[![generator][generator-badge]][generator-url]
[![repo][repo-badge]][repo-url]

This repository contains all the source code of Chawye Hsu's personal [website].
You can also see the auto-generated deployable files at [gh-pages] branch.

## Architecture

```
GitHub Preview, DNS,
+---------+ Redirect, Cache,
| Actions | Functions, Security,
| | etc. etc.
+---+----+----v-----+ +--------+ +------------+ +---------+
+--------+ Push | | | Deploy | | Proxy | | | |
| Author +--------> main | gh-pages +--------> Vercel <-------+ Cloudflare <---------+ Clients |
+--------+ | | | | | | | Request | |
+--------+----------+ +--------+ +------------+ +---------+
```

## Playground

**Prerequisites:**
Git, Nodejs, Yarn
**Prerequisites:** Git, Nodejs, Yarn

### Get the project:
### Get the project

``` sh
```raw
$ git clone https://github.com/chawyehsu/chawyehsu.com
$ cd chawyehsu.com
```

### Run and play:
### Run and play

``` sh
```sh
# Bootstrap, install dependencies
$ yarn
# Start localhost dev server
$ yarn dev
# Serve 127.0.0.1:3000
```

## Architecture

```raw
GitHub Preview, DNS,
+---------+ Redirect, Cache,
| Actions | Functions, Security,
| | etc. etc.
+---+----+----v-----+ +--------+ +------------+ +---------+
+--------+ Push | | | Deploy | | Proxy | | | |
| Author +--------> main | gh-pages +--------> Vercel <-------+ Cloudflare <---------+ Clients |
+--------+ | | | | | | | Request | |
+--------+----------+ +--------+ +------------+ +---------+
```

## Credits

Complete open sourcing was inspired by [daneden.me].
Expand All @@ -65,15 +60,11 @@ accommodation.</em></sub>


[deployment-url]: https://github.com/chawyehsu/chawyehsu.com/actions?query=workflow%3ADeployment
[deployment-badge]: https://img.shields.io/github/actions/workflow/status/chawyehsu/chawyehsu.com/deployment.yml?style=flat-square
[status-url]: https://chawyehsu.com
[status-badge]: https://img.shields.io/website-up-down-green-red/https/chawyehsu.com.svg?style=flat-square
[webpagetest-url]: https://www.webpagetest.org/result/230820_AiDcV0_5MW/1/details/
[webpagetest-badge]: https://img.shields.io/badge/WebPageTest-Not%20Bad-44CC11.svg?style=flat-square
[deployment-badge]: https://img.shields.io/github/actions/workflow/status/chawyehsu/chawyehsu.com/deployment.yml?style=flat&labelColor=121212&colorB=544D6B
[generator-url]: https://github.com/chawyehsu/saber
[generator-badge]: https://img.shields.io/badge/Powered%20by-Saber%20Alter-2B2F42.svg?style=flat-square
[generator-badge]: https://img.shields.io/badge/Powered%20by-Saber%20Alter-544D6B.svg?style=flat&labelColor=121212&colorB=544D6B
[repo-url]: https://github.com/chawyehsu/chawyehsu.com
[repo-badge]: https://img.shields.io/github/repo-size/chawyehsu/chawyehsu.com.svg?style=flat-square&colorB=328657
[repo-badge]: https://img.shields.io/github/repo-size/chawyehsu/chawyehsu.com.svg?style=flat&labelColor=121212&colorB=544D6B
[website]: https://chawyehsu.com
[gh-pages]: https://github.com/chawyehsu/chawyehsu.com/tree/gh-pages
[daneden.me]: https://github.com/daneden/daneden.me
12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,21 @@
"build": "saber build"
},
"dependencies": {
"@alterjs/saber": "^0.12.1",
"@alterjs/saber-plugin-prismjs": "^0.12.0",
"@alterjs/saber": "^0.12.2",
"@alterjs/saber-plugin-feed": "^0.12.2",
"@alterjs/saber-plugin-query-posts": "^0.12.2",
"disqusjs": "1.3.0",
"markdown-it-abbr": "2.0.0",
"markdown-it-attrs": "4.2.0",
"markdown-it-cjk-breaks": "1.1.3",
"markdown-it-figure-gallery": "0.2.0",
"markdown-it-footnote": "4.0.0",
"prismjs": "^1.29.0",
"saber-plugin-adobe-font": "0.3.0",
"saber-plugin-baidu-analytics": "0.1.0",
"saber-plugin-feed": "0.4.3",
"saber-plugin-ga-lite": "0.4.0",
"saber-plugin-google-adsense": "0.3.0",
"saber-plugin-image-photoswipe": "0.1.0",
"saber-plugin-jsdelivr-cdn": "0.1.0",
"saber-plugin-query-posts": "0.4.6",
"saber-plugin-sitemap": "0.5.0",
"sharp": "^0.30.7",
"tinytime": "0.2.6",
Expand All @@ -36,10 +34,10 @@
"packages/*"
],
"engines": {
"node": ">=18"
"node": ">=16"
},
"volta": {
"node": "18.20.3",
"node": "16.20.2",
"yarn": "1.22.22"
},
"devDependencies": {
Expand Down
7 changes: 2 additions & 5 deletions saber-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,16 +145,13 @@ module.exports = {
}
},
{
resolve: 'saber-plugin-feed',
resolve: '@alterjs/saber-plugin-feed',
options: {
atomFeed: '/feed/atom.xml'
}
},
{
resolve: '@alterjs/saber-plugin-prismjs'
},
{
resolve: 'saber-plugin-query-posts',
resolve: '@alterjs/saber-plugin-query-posts',
options: {
permalinks: {
category: '/blog/category/:name',
Expand Down
Loading

0 comments on commit 339d346

Please sign in to comment.