1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-12-15 14:27:50 +02:00
Commit Graph

81 Commits

Author SHA1 Message Date
Martin Geisler
186d333227
Run builds on both Mac OS and Linux (#830)
* Run builds on both Mac OS and Linux

This would have helped us catch #570.

* Fix MacOS CI (#848)

* Revert unnecessary changes

The changes might be good, but I want to keep this PR small and
focused. If we end up with the extra `cfg` statements, we should
include a comment to let students know what they do: we’re targeting
people new to Rust, so we need to be careful with explanations.

---------

Co-authored-by: Dominik Maier <domenukk@gmail.com>
2023-06-22 10:38:41 +02:00
Ming-Ying Chung
a5fbd2fd7c
Add PR labeler action to label translation-related PRs (#845)
* Add PR labeler action to label translation-related PRs

* Sync labels when PR changes

* Update instructions for new translation
2023-06-22 14:21:33 +09:00
Andrew Kushyk
a311edb3fb
uk: Create Ukrainian translation (#835)
* Create ua.po

Added Ukrainian translation

* Update ua.po

* Update CODEOWNERS

* Rename ua.po to uk.po

* Update CODEOWNERS

* Update CODEOWNERS

* Update CODEOWNERS

* Update CODEOWNERS
2023-06-21 11:46:11 +01:00
Dima
fa58fc8144
Add dyeroshenko@ as reviewer for po/uk.po (#839)
Add dyeroshenko@ as reviewer for */uk.* file

- Add dyeroshenko@ for translations in Ukrainian
- Fix alphabetical sorting
2023-06-20 14:15:43 +00:00
Md. Rasel Mandol
5d56a529da
Bengali translation: to link incomplete Bengali translation (#819)
Bengali translation: to link incomplete Bengali translation
2023-06-14 19:37:22 +01:00
Nurlita Dhuha Fatmawati
c0a14c6d3e
Update CODEOWNERS to add me as an id reviewer (#804)
Update CODEOWNERS to add me as a id reviewer

Co-authored-by: Nurlita Dhuha Fatmawati <nurlitadf@google.com>
2023-06-13 09:07:30 +00:00
zvonden
c1750baa07
Update CODEOWNERS to add 'zvonden' as a ru reviewer (#768)
Update CODEOWNERS to add me as ru reviewer
2023-06-09 13:30:04 +00:00
osiris5498
05ed9b9889
Update CODEOWNERS (#752)
Co-authored-by: Martin Geisler <mgeisler@google.com>
2023-06-09 09:07:26 +00:00
Jonathan Hao
ede2971a55
zh-TW: Translate testing.md and update CODEOWNERS (#774)
Translate testing.md to zh-TW and update CODEOWNERS
2023-06-09 09:07:12 +00:00
Tjong Anthony
806dbca402
Update CODEOWNERS (#783)
Add tjonganthony@ as ID translation owner.
2023-06-08 12:23:28 +00:00
whd
63252e9d60
Add superwhd to CODEOWNERS of zh-CN.po (#751)
Add superwhd to CODEOWNERS of zh-Hans.po
2023-06-08 08:26:01 +00:00
Yauheni Baltukha
6f1afdb36b
ru: Add @baltuky to CODEOWNERS (#769)
Add @baltuky to CODEOWNERS
2023-06-05 17:38:40 +02:00
Olga Khylkouskaya
bf5e9f832d
Add myself for Russian translations (#764)
add myself for Russian translations
2023-06-03 07:39:27 +00:00
wnghl
41c160260e
Rename zh-CN.po in CODEOWNERS (#759) 2023-06-02 12:07:26 +02:00
Ming-Ying Chung
1d730b0e1b
Rename zh-Hant.po to zh-TW.po and add CODEOWNER (#757)
- Add myself as the code reviewer for zh-TW, as I am already listed in
  [the
  sheet](https://docs.google.com/spreadsheets/d/1bVSJEUGkI9gcqmmA4va4y-I7LzgQUqNwnZYJsQNMBGE/edit#gid=0) for zh-Hant translation
- As mentioned in
https://github.com/google/comprehensive-rust/issues/684#issuecomment-1571700135, Traditional Chinese are used differently in HK and TW. The intention for zh-Hant.go was to cover zh-TW.
2023-06-02 09:53:41 +02:00
Martin Geisler
5de9cdafea
Link to incomplete French, German, and Japanese translations (#730)
These translations all have more than 200 translated messages and
they’ve been updated in the last month.

I suggest we update the list here every few weeks based on input from
the translators: we don’t need a super strict rule here, we just need
interested translators who would like to see their work celebrated.

I suggest we only link completed translations in the language picker
since we have limited space there to differentiate the different
levels of completeness.
2023-05-31 11:55:39 +02:00
Abner Chou
4f2263a785
Update CODEOWNERS (#734)
Chinese translation reviewer.
2023-05-31 09:01:08 +00:00
Martin Geisler
aaca44f62b
Format files with dprint (#711)
The dprint formatter is a flexible system which will use sandboxed
WebAssembly formatters to format our code (mostly: it calls out to
`rustfmt` for Rust code).

A particularly interesting feature is that dprint can format Rust code
blocks in the Markdown files. However, before we turn that on, we need
to have a way to normalize the Markdown text as it is extracted[1].
That is so that the word put into the translations is kept after the
reformatting.

[1]: https://github.com/google/mdbook-i18n-helpers/issues/19
2023-05-30 17:04:19 +02:00
duyguisler
8c726f9c5a
Update CODEOWNERS (#731)
Adding self to owners file.
2023-05-30 12:04:09 +00:00
Eric Dong
326e5bc332
Add @edong to CODEOWNERS for po/zh-Hant.po (#715)
Add @edong to CODEOWNERS for po/zh-Hant.po.
Also, sort the usernames on that row.
2023-05-30 11:04:04 +02:00
Yi Kong
ae705b274c
Add kongy to CODEOWNERS (#706)
I work on the Android LLVM Team and contributed to Rust on Android.

Co-authored-by: Martin Geisler <mgeisler@google.com>
2023-05-27 09:37:58 +00:00
Anlun Xu
8739d1c41d
Add anlunx to CODEOWNERS of zh-Hans (#707) 2023-05-27 11:31:40 +02:00
kuanhungchen
b4ff206b7b
Add kuanhungchen to CODEOWNERS of zh-Hant (#703) 2023-05-26 16:48:58 +00:00
Addison Luh
1b38979a0a
Add hueich to CODEOWNERS (#702) 2023-05-26 17:47:37 +02:00
Victor Hsieh
6886c765ff
Update CODEOWNERS to add victorhsieh as zh-Hant reviewer (#701) 2023-05-26 15:14:08 +00:00
wnghl
7739b4925a
Update CODEOWNERS add @wnghl for Chinese (Simplified) (#696)
Co-authored-by: Martin Geisler <mgeisler@google.com>
2023-05-26 11:46:48 +00:00
Jakub Kotur
0974f5ce28
Update CODEOWNERS add @jkotur for Polish (#691) 2023-05-26 11:49:14 +02:00
pawelpaa
d245da50d0
Adding myself to CODEOWNERS (#690) 2023-05-26 10:11:19 +02:00
suetfei
7dab9419bd
zh-Hans: Update CODEOWNERS to include zh-Hans (#679)
* Update CODEOWNERS to include zh-cn

* Update filename to follow #676

---------

Co-authored-by: Martin Geisler <martin@geisler.net>
2023-05-25 19:29:17 +02:00
Martin Geisler
2ddd7770f4
No need to run apt update before apt install (#634)
The VMs on GitHub have updated APT caches.
2023-05-24 15:58:34 -04:00
Sudipta Chatterjee
837923d5bc
Update CODEOWNERS to add Sudipta as BN reviewer (#665)
Added Googler Sudipta Chatterjee as volunteer reviewer for Bengali translations
2023-05-24 08:31:22 +01:00
N. Shimizu
220c0d4783
Update CODEOWNERS (#657)
Nominate myself to a reviewer for Japanese translations.
2023-05-23 03:55:42 +00:00
Mir Wasi Ahmed
c2572455aa
Update CODEOWNERS to include Bengali owners (#655) 2023-05-22 15:21:43 +00:00
Keiichi Watanabe
16e0f03a5e
Add CODEOWNERS for Japanese (#654) 2023-05-22 16:55:43 +02:00
Martin Geisler
b9959bfeb1
Publish the in-progress Italian translation (#645)
This makes the translation available on the official site. It's not linked yet, but having it available there should make it easier to review the state.
2023-05-19 14:25:51 +02:00
Martin Geisler
b4fb870af6
Enable imports_granularity for rustfmt (#637)
This requires us to run a nightly Rust for our formatting check[1]. Other
users will see a warning when invoking `rustfmt`:

  Warning: can't set `imports_granularity = Module`, unstable features
  are only available in nightly channel.

This should be harmless overall and help us ensure better consistency
in our import formatting.

[1]: https://rust-lang.github.io/rustfmt/?version=v1.5.1&search=#imports_granularity
2023-05-16 12:35:49 +02:00
Per Larsen
780c23e610
Update CODEOWNERS for Danish (#630) 2023-05-12 13:38:25 +02:00
Martin Geisler
ba50f568df
Add CODEOWNERS for Danish, Greek, Spanish, French, and Italian (#615) 2023-05-10 10:25:14 +02:00
Martin Geisler
e19fc8bfd2
Simplify GitHub actions (#621)
* Remove unnecessary jobs names

They are inconsistent with the rest of the jobs and they overflow the
horizontal space in the GitHub UI.

* Remove unnecessary toolchain action

The GitHub runners include rustup and a recent stable Rust. We only
need to add the necessary target and we’re good to go.

This removes a lot of warnings because the action used an outdated
GitHub API: https://github.com/actions-rs/toolchain/issues/219

* Simplify job name

The job is testing a single translation, so it should be singular.

* Test English source with translations

This simplifies the workflow a little and ensures that we get
artifacts uploaded of the English version for every PR.

* Avoid shell command chain

GitHub actions supports setting the working directory directly.

* Upload only the book artifact

Right now, the artifacts all contain the same two top-level folders:
html/ and exerciser/. The former is what we actually deploy, the
second is a side-effect of the exerciser plugin.

With this change, we only upload the HTML and we ensure the zip file
for the xx language has a top-level comprehensive-rust-xx/ folder.
This makes it much nicer to use the generated artifacts.
2023-05-08 16:32:25 +02:00
Martin Geisler
934f9368c1
Remove unnecessary cache key (#586)
They caches have been refreshed long ago. I'm no longer sure which #1322 I was referring to in the comment — it might have been a weird typo for #552.
2023-04-27 13:25:02 -04:00
Andrew Walbran
86d8c4ae54 Rename exercise template directory and archive. 2023-04-05 16:28:07 +01:00
Andrew Walbran
ed4f5b64c4 Zip exercise templates for translation build artifacts. 2023-04-05 16:28:07 +01:00
Andrew Walbran
6b7c7cbc73 Fix publishing translations. 2023-04-05 16:28:07 +01:00
Andrew Walbran
b6f5ba1af0 Run exerciser as mdbook renderer. 2023-04-05 16:28:07 +01:00
Andrew Walbran
edd9df042c Make exerciser an mdbook renderer. 2023-04-05 16:28:07 +01:00
Andrew Walbran
3f7cc60686 Make zip part as part of script.
This makes running local builds easier.
2023-04-05 16:28:07 +01:00
Andrew Walbran
d0ef072cf2 Publish exercise templates to Pages. 2023-04-05 16:28:07 +01:00
Andrew Walbran
9372d14378 Build exercise templates in CI. 2023-04-05 16:28:07 +01:00
Martin Geisler
49bf110b31
Use mdbook-i18n-helpers crate (#552)
The i18n-helpers are now available as a stand-alone crate:
https://crates.io/crates/mdbook-i18n-helpers.

Because we cache the Rust binaries in our GitHub workflows, I bumped
the cache prefix to ensure we use a clean cache. Otherwise, Cargo
won’t install the new binaries in mdbook-i18n-helpers because it sees
the old ones from this repository.
2023-04-05 16:08:11 +02:00
Andrew Walbran
72ff50e60b Build bare-metal examples in presubmit. 2023-03-23 15:06:23 +00:00