Skip to content

Commit 24b9256

Browse files
authored
feat: add news section for announcements and releases (#4)
- Add news plugin using @docusaurus/plugin-content-blog - Create news directory with sample announcement post - Add News link to navbar and footer - Add Korean and Japanese translations for news content Closes #3
1 parent 4ccb9d8 commit 24b9256

File tree

7 files changed

+167
-0
lines changed

7 files changed

+167
-0
lines changed

docusaurus.config.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,29 @@ const config: Config = {
5555
],
5656
],
5757

58+
plugins: [
59+
[
60+
'@docusaurus/plugin-content-blog',
61+
{
62+
id: 'news',
63+
path: './news',
64+
routeBasePath: 'news',
65+
blogTitle: 'T-Ruby News',
66+
blogDescription: 'Release notes, announcements, and project updates',
67+
blogSidebarTitle: 'Recent News',
68+
blogSidebarCount: 10,
69+
postsPerPage: 10,
70+
showReadingTime: false,
71+
editUrl: 'https://github.com/type-ruby/t-ruby.github.io/tree/main/',
72+
feedOptions: {
73+
type: ['rss', 'atom'],
74+
xslt: true,
75+
copyright: `Copyright ${new Date().getFullYear()} T-Ruby.`,
76+
},
77+
},
78+
],
79+
],
80+
5881
themeConfig: {
5982
image: 'img/t-ruby-social-card.png',
6083
colorMode: {
@@ -79,6 +102,11 @@ const config: Config = {
79102
label: 'Playground',
80103
position: 'left',
81104
},
105+
{
106+
to: '/news',
107+
label: 'News',
108+
position: 'left',
109+
},
82110
{
83111
type: 'localeDropdown',
84112
position: 'right',
@@ -117,6 +145,10 @@ const config: Config = {
117145
label: 'Playground',
118146
to: '/playground',
119147
},
148+
{
149+
label: 'News',
150+
to: '/news',
151+
},
120152
{
121153
label: 'Type Cheatsheet',
122154
to: '/docs/reference/cheatsheet',
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
slug: introducing-t-ruby
3+
title: T-Ruby のご紹介
4+
authors: [t-ruby-team]
5+
tags: [announcement]
6+
---
7+
8+
Ruby 向けの TypeScript スタイル静的型システム、T-Ruby をご紹介します。
9+
10+
T-Ruby は、TypeScript 開発者にとって馴染みのある開発体験を Ruby 開発者に提供し、コードに直接型アノテーションを追加して、ランタイム前に型エラーを検出できるようにします。
11+
12+
## 主な機能
13+
14+
- **TypeScript スタイルの構文**: TypeScript 開発者に馴染みのある型アノテーション構文
15+
- **段階的な型付け**: 既存の Ruby コードベースに段階的に型を追加可能
16+
- **RBS 生成**: `.rbs` シグネチャファイルの自動生成
17+
- **ゼロランタイムオーバーヘッド**: コンパイル時に型が削除される
18+
19+
## はじめに
20+
21+
T-Ruby をインストールして、Ruby コードに型を追加しましょう:
22+
23+
```bash
24+
gem install t-ruby
25+
```
26+
27+
最初の `.trb` ファイルを作成します:
28+
29+
```ruby
30+
def greet(name: String): String
31+
"Hello, #{name}!"
32+
end
33+
```
34+
35+
Ruby にコンパイル:
36+
37+
```bash
38+
trc greet.trb
39+
```
40+
41+
詳細については、[ドキュメント](/docs/introduction/what-is-t-ruby)をご覧ください!
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
t-ruby-team:
2+
name: T-Ruby チーム
3+
url: https://github.com/type-ruby
4+
image_url: /img/logo.svg
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
slug: introducing-t-ruby
3+
title: T-Ruby 소개
4+
authors: [t-ruby-team]
5+
tags: [announcement]
6+
---
7+
8+
Ruby를 위한 TypeScript 스타일 정적 타입 시스템, T-Ruby를 소개합니다.
9+
10+
T-Ruby는 TypeScript 개발자에게 익숙한 개발 경험을 Ruby 개발자에게 제공하여, 코드에 직접 타입 어노테이션을 추가하고 런타임 전에 타입 오류를 감지할 수 있게 합니다.
11+
12+
## 주요 기능
13+
14+
- **TypeScript 스타일 문법**: TypeScript 개발자에게 익숙한 타입 어노테이션 문법
15+
- **점진적 타이핑**: 기존 Ruby 코드베이스에 점진적으로 타입 추가 가능
16+
- **RBS 생성**: `.rbs` 시그니처 파일 자동 생성
17+
- **제로 런타임 오버헤드**: 컴파일 시 타입이 제거됨
18+
19+
## 시작하기
20+
21+
T-Ruby를 설치하고 Ruby 코드에 타입을 추가해보세요:
22+
23+
```bash
24+
gem install t-ruby
25+
```
26+
27+
첫 번째 `.trb` 파일을 작성합니다:
28+
29+
```ruby
30+
def greet(name: String): String
31+
"Hello, #{name}!"
32+
end
33+
```
34+
35+
Ruby로 컴파일:
36+
37+
```bash
38+
trc greet.trb
39+
```
40+
41+
더 자세한 내용은 [문서](/docs/introduction/what-is-t-ruby)를 확인하세요!
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
t-ruby-team:
2+
name: T-Ruby 팀
3+
url: https://github.com/type-ruby
4+
image_url: /img/logo.svg
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
slug: introducing-t-ruby
3+
title: Introducing T-Ruby
4+
authors: [t-ruby-team]
5+
tags: [announcement]
6+
---
7+
8+
We're excited to introduce T-Ruby, a TypeScript-style static type system for Ruby.
9+
10+
T-Ruby brings the familiar TypeScript development experience to Ruby developers, allowing you to add type annotations directly in your code and catch type errors before runtime.
11+
12+
## Key Features
13+
14+
- **TypeScript-style syntax**: Familiar type annotation syntax for TypeScript developers
15+
- **Gradual typing**: Add types incrementally to your existing Ruby codebase
16+
- **RBS generation**: Automatically generate `.rbs` signature files
17+
- **Zero runtime overhead**: Types are stripped at compile time
18+
19+
## Getting Started
20+
21+
Install T-Ruby and start adding types to your Ruby code:
22+
23+
```bash
24+
gem install t-ruby
25+
```
26+
27+
Create your first `.trb` file:
28+
29+
```ruby
30+
def greet(name: String): String
31+
"Hello, #{name}!"
32+
end
33+
```
34+
35+
Compile to Ruby:
36+
37+
```bash
38+
trc greet.trb
39+
```
40+
41+
Check out our [documentation](/docs/introduction/what-is-t-ruby) to learn more!

news/authors.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
t-ruby-team:
2+
name: T-Ruby Team
3+
url: https://github.com/type-ruby
4+
image_url: /img/logo.svg

0 commit comments

Comments
 (0)