Skip to content

Commit 20c89c7

Browse files
committed
Merge branch 'main' into hide-join-link
2 parents ec01a4b + b0f296b commit 20c89c7

File tree

25 files changed

+293
-353
lines changed

25 files changed

+293
-353
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- uses: actions/checkout@v4
2424
- uses: oven-sh/setup-bun@v2
2525
with:
26-
bun-version: 1.2.5
26+
bun-version: 1.3
2727
- run: bun install --frozen-lockfile
2828
- uses: actions/cache@v4
2929
with:

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,13 @@
1616
- HEIC は対応していないので、 ImageMagick で他のフォーマットに変換してください。
1717
- 例: `magick picture.HEIC picture.webp`
1818
- すべての画像ファイルは 1 MB 未満に抑えてください。既存のものを変更したり、 CI でチェックしたりはまだ実装してないです。
19-
2019
- ffmpeg や ImageMagick を使い、解像度を下げたり、画質 (Quality) を下げたり、WebP (or AVIF) に変換するなどができます。
21-
2220
- 例:
23-
2421
- `mogrify -resize 800x -quality 80 -format webp input.png`
25-
2622
- ImageMagick についてきます。
2723
- コマンドの引数は見ての通り。
2824

2925
- `ffmpeg -i ./input.png -vf 'scale=1920:-1' -crf 10 output.avif`
30-
3126
- -> 50〜300kb 程度になります。AVIF の場合、多少 (数秒〜1分程度) 時間がかかります。
3227
- `-vf scale={width}:{height}`: 画像の横幅。height が -1 のときは、横幅から計算する。
3328
- `-crf`: 画像の圧縮率。大きいほうが圧縮率が高い。
@@ -42,7 +37,6 @@
4237
### 記事
4338

4439
- サムネイルは縦横比 3:5 にクロップされます。
45-
4640
- 可能なら 3:5 に近い画像を使い、
4741
- できないかつクロップが許容できない場合は、 `thumbnail.fit: contain` と背景色 (`thumbnail.bg`) を指定してください。
4842

astro.config.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
import { defineConfig } from "astro/config";
2-
3-
import tailwind from "@tailwindcss/vite";
4-
51
import mdx from "@astrojs/mdx";
62
import sitemap from "@astrojs/sitemap";
73
import svelte from "@astrojs/svelte";
4+
import tailwind from "@tailwindcss/vite";
5+
import { defineConfig } from "astro/config";
86
import icon from "astro-icon";
97
// import { visualizer } from "rollup-plugin-visualizer";
108

biome.jsonc

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.2.5/schema.json",
33
"vcs": {
44
"enabled": true,
55
"clientKind": "git",
@@ -14,13 +14,14 @@
1414
"indentWidth": 2,
1515
"lineWidth": 120,
1616
},
17-
"organizeImports": {
18-
"enabled": true,
19-
},
17+
"assist": { "actions": { "source": { "organizeImports": "on" } } },
2018
"linter": {
2119
"enabled": true,
2220
"rules": {
2321
"recommended": true,
22+
"suspicious": {
23+
"noUnknownAtRules": "off",
24+
},
2425
},
2526
},
2627
"javascript": {
@@ -31,13 +32,17 @@
3132
},
3233
"overrides": [
3334
{
34-
"include": ["*.svelte", "*.astro", "*.vue"],
35+
"includes": ["**/*.svelte", "**/*.astro", "**/*.vue"],
3536
"linter": {
3637
"rules": {
3738
"style": {
3839
"useConst": "off",
3940
"useImportType": "off",
4041
},
42+
"correctness": {
43+
"noUnusedImports": "off",
44+
"noUnusedVariables": "off",
45+
},
4146
},
4247
},
4348
},

bun.lock

Lines changed: 224 additions & 274 deletions
Large diffs are not rendered by default.

contents/banner.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { Banner } from "+/schema.ts";
2+
23
const banner: Banner = {
34
shown: false,
45
kind: "notify",

docs/contents/article.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,15 @@
55
### base
66

77
- title: string
8-
98
- 記事タイトル。
109

1110
- date: Date
12-
1311
- **記事を書いた**日。
1412
- フォーマット:
1513
- yyyy-MM-dd (日付のみ)
1614
- yyyy-MM-dd hh:mm:ss+09:00 (日付+時間)
1715

1816
- author: string & keyof Member
19-
2017
- 著者。
2118

2219
- categories?: string[]
@@ -25,18 +22,15 @@
2522
### image 系
2623

2724
- thumbnail.src: path
28-
2925
- タイトル画像。記事一覧とトップで使うよ。
3026
- 縦横比 3:5 に crop されるよ。
3127

3228
- thumbnail.fit?: "cover" | "contain" | fill" | "none" = "cover"
33-
3429
- `object-fit`
3530
- Astro のビルド段階で Sharp に渡されるよ。
3631
- <https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit>
3732

3833
- thumbnail.position?: "center" | "left" | "right" | "top" | "bottom"
39-
4034
- `object-position`
4135
- Astro のビルド段階で Sharp に渡されるよ。
4236

flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -23,34 +23,34 @@
2323
"preview": "astro preview"
2424
},
2525
"dependencies": {
26-
"@astrojs/mdx": "^4.3.0",
27-
"@astrojs/sitemap": "^3.4.1",
28-
"@astrojs/svelte": "^7.1.0",
29-
"@date-fns/tz": "^1.2.0",
26+
"@astrojs/mdx": "^4.3.7",
27+
"@astrojs/sitemap": "^3.6.0",
28+
"@astrojs/svelte": "^7.2.0",
29+
"@date-fns/tz": "^1.4.1",
3030
"@iconify-json/feather": "^1.2.1",
31-
"@iconify-json/flowbite": "^1.2.5",
32-
"@tailwindcss/typography": "^0.5.16",
33-
"astro": "^5.10.0",
31+
"@iconify-json/flowbite": "^1.2.7",
32+
"@tailwindcss/typography": "^0.5.19",
33+
"astro": "^5.14.4",
3434
"astro-icon": "^1.1.5",
35-
"bits-ui": "^1.8.0",
36-
"cheerio": "^1.1.0",
37-
"daisyui": "^5.0.43",
35+
"bits-ui": "^2.11.5",
36+
"cheerio": "^1.1.2",
37+
"daisyui": "^5.2.3",
3838
"date-fns": "^4.1.0",
3939
"markdown-to-txt": "^2.0.1",
40-
"sharp": "^0.34.2",
41-
"svelte": "^5.34.7",
42-
"tailwindcss": "^4.1.10",
43-
"@tailwindcss/vite": "^4.1.10"
40+
"sharp": "^0.34.4",
41+
"svelte": "^5.39.11",
42+
"tailwindcss": "^4.1.14",
43+
"@tailwindcss/vite": "^4.1.14"
4444
},
4545
"devDependencies": {
4646
"@astrojs/check": "^0.9.4",
47-
"@biomejs/biome": "^1.9.4",
48-
"lefthook": "^1.11.14",
49-
"prettier": "^3.5.3",
47+
"@biomejs/biome": "^2.2.5",
48+
"lefthook": "^1.13.6",
49+
"prettier": "^3.6.2",
5050
"prettier-plugin-astro": "^0.14.1",
5151
"prettier-plugin-svelte": "^3.4.0",
52-
"prettier-plugin-tailwindcss": "^0.6.13",
53-
"rollup-plugin-visualizer": "^5.14.0",
54-
"typescript": "^5.8.3"
52+
"prettier-plugin-tailwindcss": "^0.6.14",
53+
"rollup-plugin-visualizer": "^6.0.4",
54+
"typescript": "^5.9.3"
5555
}
5656
}

src/components/ActionButton.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
// support legacy articles because they import from this path
33
import ActionButtonSource from "./utils/ActionButton.astro";
4+
45
interface Props {
56
to: string;
67
}

0 commit comments

Comments
 (0)