Skip to content

Commit c460dfd

Browse files
authored
Merge branch 'master' into improve-font-family-with-lang-attr
2 parents ededa2a + 9c3d084 commit c460dfd

109 files changed

Lines changed: 10781 additions & 185 deletions

File tree

Some content is hidden

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

404.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permalink: /404.html
99
(function() {
1010
// Detect language from URL path
1111
var path = window.location.pathname;
12-
var match = path.match(/^\/(bg|de|en|es|fr|id|it|ja|ko|pl|pt|ru|tr|vi|zh_cn|zh_tw)\//);
12+
var match = path.match(/^\/(bg|de|en|es|fr|id|it|ja|ko|pl|pt|ru|tr|ua|vi|zh_cn|zh_tw)\//);
1313

1414
if (match && match[1] !== 'en') {
1515
var lang = match[1];

README.md

Lines changed: 86 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -5,115 +5,123 @@ www.ruby-lang.org
55

66
[![Build Status](https://github.com/ruby/www.ruby-lang.org/workflows/ci/badge.svg)](https://github.com/ruby/www.ruby-lang.org/actions?query=branch%3Amaster)
77

8-
This is the [Jekyll](http://www.jekyllrb.com/) source of
9-
the [www.ruby-lang.org](https://www.ruby-lang.org/) website.
8+
This is the [Jekyll](http://www.jekyllrb.com/) source code for the official [Ruby programming language website](https://www.ruby-lang.org/).
109

11-
## How to Contribute?
10+
## 🚀 Quick Start
1211

13-
You can contribute by reporting errors or suggesting improvements.
14-
Just open an issue or pull request.
12+
**First time contributing?** Welcome! This guide will help you get the website running locally in just a few steps.
1513

16-
This is a big project with many translations involved.
17-
Please help us stay on top of things by following our
18-
[guidelines for contributors](https://github.com/ruby/www.ruby-lang.org/wiki).
14+
### Prerequisites
1915

20-
## Get It!
16+
- **Ruby** (latest stable version recommended) - [Install Ruby](https://www.ruby-lang.org/en/documentation/installation/)
17+
- **Git** - [Install Git](https://git-scm.com/downloads)
2118

22-
Bundler will take care of the dependencies, so unless you
23-
already have done so, you might need to install bundler with:
19+
### Get It Running
2420

25-
``` sh
26-
gem install bundler
27-
```
21+
1. **Install Bundler** (if you haven't already):
22+
```sh
23+
gem install bundler
24+
```
2825

29-
Then clone the repository and install the dependencies:
30-
31-
``` sh
32-
git clone https://github.com/ruby/www.ruby-lang.org.git
33-
cd www.ruby-lang.org/
34-
bundle config set --local without production
35-
bundle install
36-
```
26+
2. **Clone and setup the project**:
27+
```sh
28+
git clone https://github.com/ruby/www.ruby-lang.org.git
29+
cd www.ruby-lang.org/
30+
bundle config set --local without production
31+
bundle install
32+
```
3733

38-
## Make Changes
34+
3. **Start the development server**:
35+
```sh
36+
bundle exec rake serve
37+
```
3938

40-
Making changes is easy:
41-
just locate the Markdown source of the page you want to improve,
42-
then make your changes or add content.
39+
4. **View the website**: Open [http://localhost:4000/](http://localhost:4000/) in your browser
4340

44-
If you plan to submit a pull request or want to preview your changes
45-
on Heroku, you need to
41+
⏱️ **Note:** The initial build takes several minutes. Make some tea! 🍵
4642

47-
* create a topic branch,
48-
* commit your changes to this branch.
43+
## 🤝 How to Contribute
4944

50-
See the [project's wiki][wiki] for some guidelines on how
51-
your commits and PRs should look like.
45+
### Quick Fixes
46+
- **Found a typo?** Just edit the Markdown file and submit a pull request!
47+
- **Broken link?** Open an issue and we'll fix it quickly
48+
- **Translation error?** Check our [translation guidelines](https://github.com/ruby/www.ruby-lang.org/wiki)
5249

53-
## Preview Your Changes
50+
### Making Changes
5451

55-
### Preview Locally
52+
1. **Find the content**: Website pages are in Markdown format in language-specific folders (e.g., `en/`, `ja/`, `es/`)
53+
2. **Create a branch**: `git checkout -b fix-typo-in-getting-started`
54+
3. **Make your changes**: Edit the Markdown files
55+
4. **Test as you go**: Run `bundle exec rake serve` to preview your changes
56+
5. **Run the test suite**: Before submitting, ensure all tests pass (see Testing section below)
57+
6. **Submit**: Open a pull request with a clear description
5658

57-
Generate the website with
59+
**New to open source?** Check out [First Contributions](https://github.com/firstcontributions/first-contributions) for a beginner-friendly guide.
5860

59-
``` sh
60-
bundle exec rake build
61-
```
61+
## 🛠️ Development
6262

63-
Then start a local web server with
63+
### Local Development
64+
```sh
65+
# Quick development server (faster rebuilds)
66+
bundle exec jekyll serve --watch --future --incremental
6467

65-
``` sh
66-
bundle exec rake serve
68+
# Full build (for testing)
69+
bundle exec rake build
6770
```
6871

69-
Open [http://localhost:4000/](http://localhost:4000/)
70-
in your browser to access the preview.
71-
72-
**Note:** The build of the site will take several minutes.
72+
### Testing Your Changes
7373

74-
Alternatively, you can use Jekyll directly.
74+
**Important**: Always run the full test suite before submitting a pull request:
7575

76-
```
77-
bundle exec jekyll serve --watch --future --incremental
76+
```sh
77+
bundle exec rake lint # Check markdown formatting
78+
bundle exec rake check:markup # Validate HTML output
79+
bundle exec rake check:links # Check for broken links (requires local server)
7880
```
7981

80-
If your draft uses future date, you may want to use `--future` option.
82+
You can run these tests while developing to catch issues early.
8183

82-
### Preview on Heroku
84+
## 🌐 Translations
8385

84-
In case a build is not possible on your local machine
85-
or you want to test your changes under production conditions
86-
you can also create a preview on Heroku.
86+
This project supports multiple languages! Each language has its own folder:
87+
- `en/` - English (base language)
88+
- `ja/` - Japanese
89+
- `es/` - Spanish
90+
- `fr/` - French
91+
- And many more...
8792

88-
* Sign up for [Heroku](http://www.heroku.com) if you do not have
89-
an account yet.
93+
**Want to help translate?** See our [translation guide](https://github.com/ruby/www.ruby-lang.org/wiki) for detailed instructions.
9094

91-
* Install the [Heroku Toolbelt](https://toolbelt.heroku.com).
95+
## 📝 Content Guidelines
9296

93-
* Unless you already have, `cd` into your local working copy of this repo.
97+
- **Keep it simple**: Write for a global audience of developers with varying English proficiency
98+
- **Be clear**: Use straightforward language that's easy to understand
99+
- **Stay current**: Update version numbers and examples regularly
100+
- **Test your changes**: Always preview locally before submitting
94101

95-
* Create a preview app on Heroku using the custom buildpack:
102+
## 🔧 Heroku Preview (Advanced)
96103

97-
``` sh
98-
heroku login
99-
heroku create --buildpack https://github.com/ruby/heroku-buildpack-www-ruby-lang.git
100-
```
104+
If you can't build locally or want to test under production conditions:
101105

102-
* Push your feature branch:
106+
1. **Setup Heroku**: Sign up at [heroku.com](http://www.heroku.com) and install [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli)
103107

104-
``` sh
105-
git push heroku feature_branch:master
106-
```
108+
2. **Create preview app**:
109+
```sh
110+
heroku login
111+
heroku create --buildpack https://github.com/ruby/heroku-buildpack-www-ruby-lang.git
112+
```
107113

108-
To create a preview of the master branch:
114+
3. **Deploy your branch**:
115+
```sh
116+
git push heroku your-branch-name:master
117+
heroku open
118+
```
109119

110-
``` sh
111-
git push heroku master
112-
```
113-
114-
Open the preview in your browser with `heroku open` or
115-
retrieve the preview URL using `heroku info` and open it in your browser.
120+
## 💬 Getting Help
116121

122+
- **Questions?** Join our [Gitter chat](https://gitter.im/ruby/www.ruby-lang.org)
123+
- **Found a bug?** [Open an issue](https://github.com/ruby/www.ruby-lang.org/issues)
124+
- **Need more info?** Check the [project wiki](https://github.com/ruby/www.ruby-lang.org/wiki)
117125

118126
## Styling with Tailwind CSS
119127

@@ -139,8 +147,10 @@ bundle exec rake check:markup # check markup for all generated pages
139147
bundle exec rake check:links # check for 404's (needs a running local server)
140148
```
141149

142-
## More Information
150+
## 📚 More Information
151+
152+
For detailed contribution guidelines, coding standards, and project structure, see our [wiki](https://github.com/ruby/www.ruby-lang.org/wiki).
143153

144-
For more information see the [wiki][wiki].
154+
---
145155

146-
[wiki]: https://github.com/ruby/www.ruby-lang.org/wiki
156+
**Thank you for helping make Ruby's website better for everyone!** 🎉

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ rescue LoadError => e
88
exit(-1)
99
end
1010

11-
LANGUAGES = %w[bg de en es fr id it ja ko pl pt ru tr vi zh_cn zh_tw].freeze
11+
LANGUAGES = %w[bg de en es fr id it ja ko pl pt ru tr ua vi zh_cn zh_tw].freeze
1212
CONFIG = "_config.yml"
1313

1414
task default: [:build]

_data/languages.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
- code: tr
3939
name: Turkish
4040
native_name: Türkçe
41+
- code: ua
42+
name: Ukrainian
43+
native_name: Українська
4144
- code: vi
4245
name: Vietnamese
4346
native_name: Tiếng Việt

_data/locales/home/ua.yml

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
hero:
2+
since: "З"
3+
year: "1995"
4+
title: "Ruby"
5+
latest_version_label: "Остання версія:"
6+
download_button: "Завантажити"
7+
or: "або"
8+
learn_more: "Дізнатися більше"
9+
10+
try_ruby:
11+
title: "Спробуйте Ruby!"
12+
description: "Спробуйте Ruby у браузері просто зараз"
13+
button_url: "https://try.ruby-lang.org/"
14+
bottom_text: "Хочете дізнатися більше або спробувати Ruby?"
15+
bottom_link_url: "https://try.ruby-lang.org/"
16+
17+
why_ruby:
18+
title: Чому Ruby?
19+
description: Чому програмісти по всьому світу люблять Ruby? Що робить його <strong>цікавим</strong>?
20+
features:
21+
- id: ecosystem
22+
title: Екосистема
23+
read: Багаті геми підтримують усі види розробки.<br />Зрілі інструменти готові до використання.
24+
copy: |
25+
Ruby має велику колекцію бібліотек, що називаються гемами, які підтримують усе — від веброзробки до обробки даних.
26+
Зі зрілими фреймворками на кшталт Rails і комплексними наборами інструментів ви можете поєднувати чудові наявні ресурси
27+
для швидкого створення високоякісних застосунків без повторного винайдення колеса.
28+
comment:
29+
author:
30+
id: matz
31+
name: Yukihiro "Matz" Matsumoto
32+
title: Творець Ruby
33+
content: |
34+
Коли я випустив Ruby у світ, я й не уявляв, що з нього виросте така багата екосистема.
35+
Понад 200 000 гемів, Ruby on Rails, RSpec, Bundler — усе це створила й підтримувала спільнота.
36+
Моє бажання «зробити програмістів щасливими» здійснилося так, як я не зміг би досягти сам.
37+
- id: simple
38+
title: Простота
39+
read: Легко писати, легко читати.<br />Природний синтаксис, як у розмовній мові.
40+
copy: |
41+
Ruby має простий та інтуїтивний синтаксис, який читається як природна мова.
42+
Позбуваючись складних символів і багатослівних конструкцій, філософія дизайну Ruby дозволяє вам безпосередньо висловлювати те, що ви хочете.
43+
З мінімумом шаблонного коду й високою читабельністю він дружній для новачків і зручний для досвідчених розробників.
44+
comment:
45+
author:
46+
id: dhh
47+
name: David Heinemeier Hansson
48+
title: Творець Ruby on Rails
49+
content: |
50+
Ruby — це просто найкрасивіша мова програмування, яку я коли-небудь бачив.<br />
51+
І я приділяю чималу увагу новим мовам програмування, що з'являються,
52+
новим середовищам, новим фреймворкам, і досі не бачив нічого, що відповідало б Ruby або перевершило його в чистоті дизайну.
53+
- id: productivity
54+
title: Продуктивність
55+
read: Робіть більше з меншим обсягом коду.<br />Інтуїтивний синтаксис прискорює розробку.
56+
copy: |
57+
Виразний синтаксис Ruby дозволяє стисло писати складну логіку.
58+
Використовуючи потужні можливості, як-от метапрограмування та блоки, ви можете зменшити повторення й зосередитися на вирішенні основних задач.
59+
З потужними фреймворками для тестування ви можете зберігати якість і досягати швидких циклів розробки.
60+
comment:
61+
author:
62+
id: pragdave
63+
name: Dave Thomas
64+
title: Автор "The Pragmatic Programmer"
65+
content: |
66+
Ruby швидко перетворює ідеї на код.
67+
Його простота допомагає мені залишатися зосередженим; його виразність дозволяє писати так, як я думаю.<br />
68+
Відчуття, ніби мова відходить убік, залишаючи тільки мене і задачу.
69+
З чудовими інструментами та бібліотеками ідеї швидко стають працюючим, елегантним кодом.
70+
71+
- id: community
72+
title: Спільнота
73+
read: Розробники по всьому світу підтримують одне одного.<br />Тепла, активна спільнота.
74+
copy: |
75+
Спільнота Ruby дотримується культури "Matz is nice and so we are nice (MINASWAN)",
76+
вітаючи всіх — від новачків до експертів. Конференції та зустрічі по всьому світу сприяють обміну знаннями й налагодженню зв'язків.
77+
Це тепла, стійка спільнота, де люди допомагають один одному й ростуть разом.
78+
comment:
79+
author:
80+
id: amanda
81+
name: Amanda Perino
82+
title: Виконавчий директор Rails Foundation
83+
content: |
84+
Спільнота Ruby сповнена таланту й креативності — розробників, яких приваблює елегантний синтаксис Ruby і які програмують заради задоволення.
85+
Це яскрава, гостинна спільнота, готова поділитися своєю любов'ю до програмування з усіма.
86+
Цей дух тепла й співпраці — безумовно, найбільша цінність Ruby.
87+
88+
companies:
89+
title: "Компанії"
90+
heart: ""
91+
subtitle: "Ruby"
92+
93+
community:
94+
title: "Долучайтеся до спільноти"
95+
description_1: "Людей, які взаємодіють із Ruby не лише як користувачі, називають Rubyists."
96+
description_2: "Rubyists, які люблять Ruby, — усі милі #rubyfriends. Активності спільноти бурхливі та веселі."
97+
motto_prefix: "Універсальний девіз —"
98+
motto_minaswan: "MINASWAN"
99+
motto_separator: ""
100+
motto_translation: "Matz добрий, тож і ми добрі"
101+
links:
102+
- text: "Дізнайтеся більше про спільноту"
103+
url: "/community/"
104+
- text: "Майбутні міжнародні конференції"
105+
url: "https://www.rubyevents.org"
106+
external: true
107+
108+
news_security:
109+
news:
110+
title: "Новини"
111+
more_link: "Читати більше новин"
112+
security:
113+
title: "Безпека"
114+
more_link: "Читати більше про безпеку"

0 commit comments

Comments
 (0)