Skip to content

Commit 8d71ef5

Browse files
authored
patches 3.1 (#215)
- **fix build warning** - **simplicity: replace (../)+ with +/** - **(treewide) content: no more ../../../, you can just import from +/**
1 parent 2741268 commit 8d71ef5

File tree

52 files changed

+152
-149
lines changed

Some content is hidden

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

52 files changed

+152
-149
lines changed

README.md

Lines changed: 15 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,49 +9,39 @@
99

1010
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/ut-code/website)
1111

12-
### 手動
12+
### ローカル
1313

1414
- (必須) Bun >= v1.1.39
1515
- 任意のエディタ https://docs.astro.build/en/editor-setup/
1616

17-
```shell
17+
```sh
1818
bun install --frozen-lockfile
1919
```
2020

2121
## 開発
2222

23-
```shell
23+
```sh
2424
bun dev
2525
```
2626

2727
<http://localhost:4321/> で開発用サーバーが起動します。
2828

2929
## ビルド
3030

31-
```shell
31+
```sh
3232
bun run build
3333
```
3434

3535
## ディレクトリ構造
3636

37-
- `contents`: 記事のデータです。`/templates` ディレクトリ内のファイルで HTML への変換ルールが定義されます。
38-
- `articles`: 記事です。`/articles/サブディレクトリ名` に出力されます。
39-
- `members`: メンバーの情報です。現状メンバー専用ページは用意していませんが、記事ページから表示できます。
40-
- `projects`: プロジェクトの情報です。`/projects/サブディレクトリ名` に出力されます。
41-
- `src`
42-
- `components`: 共通コンポーネント
43-
- `images`: 記事ではなくデザインに用いる画像です。import しない限り出力されません。
44-
- `pages`: Gatsby の機能によりファイル名がパスに変換されます。
45-
- `styles`: CSS ファイルです。
46-
- `templates`: `contents` ディレクトリ内の Markdown ファイルを HTML に変換するルールを定義します。対応関係は `gatsby-node.ts` で定義されています。
47-
- `gatsby-types.d.ts`: GraphQL クエリの型情報が入ります。自動生成されます。
48-
- `images.d.ts`: TypeScript ファイルから画像ファイルを import できるようにするための型定義ファイルです。
49-
- `gatsby-{browser,config,node}.ts`: Gatsby の設定ファイルです。
50-
- `apollo.config.js`: Apollo Language Server が動作するために必要なファイルです。削除してもウェブサイトの動作には影響を与えません。
51-
- `{postcss,tailwind}.config.js`: Tailwind 用の設定です。
52-
53-
## プルリクエストを出す前に
54-
55-
```shell
56-
npm run lint && npm run type-check
57-
```
37+
- `contents/`: 記事のデータです。Astro の Content Collection を使って `src/pages` から読み込みます。
38+
- `src/`
39+
- `images/`: 記事ではなくデザインに用いる画像です。
40+
- `pages/`: Astro の機能によりファイル名がパスに変換されます。
41+
- `islands/`: Astro で読み込む Island の集合です。
42+
- `content.config.ts`: Astro の Content Collection の設定を書きます。
43+
- `global.css`: Tailwind の設定ファイルです。
44+
- `astro.config.ts`: Astro の設定ファイルです。Vite の設定もここに書きます。
45+
- `biome.jsonc`: Biome の設定ファイルです。Biome のフォーマット部分は Astro に対応していないので、Lint だけ使っています。対応したら両方 Biome にしましょう。
46+
- `.prettier{rc,ignore}`: Prettier の設定ファイルです。 Prettier には、 astro と svelte と tailwind のプラグインが入っています。
47+
- `svelte.config.js`: 最もフィジカルで、最もプリミティブで、そして最もフェティッシュなフレームワークでいかせていただきます。

contents/articles/2019/09-30_2019a-first-lecture/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ date: 2019-09-30T23:10:44+09:00
44
categories:
55
- "info"
66
author: tnagaya
7-
image: ../../../../src/images/no-image.svg
7+
image: +/images/no-image.svg
88
---
99

1010
A セメスターが始まり、本日で一週間となりました。教養学部の皆様は、そろそろ履修が確定している頃ではないでしょうか。

contents/articles/2019/09-30_2019a-schedule/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ date: 2019-09-30T15:52:03+09:00
44
categories:
55
- "info"
66
author: tnagaya
7-
image: ../../../../src/images/no-image.svg
7+
image: +/images/no-image.svg
88
---
99

1010
## 開講日程

contents/articles/2019/09-30_syllabus-supports-2019a/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ date: 2019-09-30T03:55:32+09:00
44
categories:
55
- "info"
66
author: tnagaya
7-
image: ../../../../src/images/no-image.svg
7+
image: +/images/no-image.svg
88
---
99

1010
本年度 S セメスターでも大変多くの方にご好評をいただいた「[Syllabus by ut.code();](https://syllabus.utcode.net/)」が、A セメスターの授業に対応しました。

contents/articles/2019/10-01_windows-home-to-education/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ date: 2019-10-01T14:26:13+09:00
44
categories:
55
- "utokyo"
66
author: tnagaya
7-
image: ../../../../src/images/no-image.svg
7+
image: +/images/no-image.svg
88
---
99

1010
皆さんが購入された Windows マシンに搭載されている OS は、最近であれば Windows 10 Home であることが多いかと思いますが、この Home エディションでは、開発に必須の Hyper-V(仮想化支援機能)が有効化できなくなっています。幸いなことに、東京大学は学生に向け、Windows 10 の最上位エディションと同等の機能が利用できる Education ライセンスを無償で提供しています。この記事では、そちらの利用方法を解説します。

contents/articles/2019/10-03_2019a-first-lecture-record/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ date: 2019-10-04T03:36:06+09:00
44
categories:
55
- "events"
66
author: tnagaya
7-
image: ../../../../src/images/no-image.svg
7+
image: +/images/no-image.svg
88
---
99

1010
2019/10/2(水)、2019/10/5(土)に実施された[第一回「エンジニアになろう」講習会](https://utcode.net/2019/info/2019a-first-lecture/)の講義スライドを書き起こした資料です。説明の簡略化のため、一部不正確な書き方をしている部分がありますが、ご了承ください。東京大学の学生が A セメスターで学習することを想定しています。

contents/articles/2019/10-14_lecture-34-announcement/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ date: 2019-10-15T02:38:24+09:00
44
categories:
55
- "info"
66
author: tnagaya
7-
image: ../../../../src/images/no-image.svg
7+
image: +/images/no-image.svg
88
---
99

1010
「エンジニアになろう」講習会第三回・第四回を、以下の日程・場所で開講いたします。

contents/articles/2019/11-03_utcode-lectures-01/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "ut.code(); 学習カリキュラム #1"
33
date: 2019-11-03T09:29:17+09:00
44
categories:
55
- "internal"
6-
image: ../../../../src/images/no-image.svg
6+
image: +/images/no-image.svg
77
---
88

99
ようこそ!ut.code();へ。

contents/articles/2019/11-03_utcode-lectures-02/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "ut.code(); 学習カリキュラム #2"
33
date: 2019-11-03T09:30:33+09:00
44
categories:
55
- "internal"
6-
image: ../../../../src/images/no-image.svg
6+
image: +/images/no-image.svg
77
---
88

99
## 黒いアイツ

contents/articles/2019/11-03_utcode-lectures-03/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "ut.code(); 学習カリキュラム #3"
33
date: 2019-11-03T09:30:56+09:00
44
categories:
55
- "internal"
6-
image: ../../../../src/images/no-image.svg
6+
image: +/images/no-image.svg
77
---
88

99
今回からお待ちかねプログラミングの時間です!まずはターミナルで

0 commit comments

Comments
 (0)