1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-01-09 09:11:50 +02:00
Commit Graph

187 Commits

Author SHA1 Message Date
Henri F
5899752873
Add workflow support for Arabic translation (#2194)
Part of : #445, #2193
2024-07-08 08:51:52 +01:00
Younies Mahmoud
a976603da5
First step in Arabic Translation (#2193)
Part of : #445
2024-07-05 22:40:03 -07:00
Andrew Walbran
5db15cccb6
Publish all languages. (#2189) 2024-07-05 11:11:12 -07:00
Andrew Walbran
2de95fa2de
Fix publish workflow (#2171)
Need to `apt-get update` before `apt-get install`.
2024-06-25 09:42:16 -04:00
dependabot[bot]
c7425f91c4
build(deps): bump crate-ci/typos from 1.22.7 to 1.22.9 (#2162)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.22.7 to
1.22.9.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-25 10:48:20 +01:00
dependabot[bot]
a89a4d70ca
build(deps): bump crate-ci/typos from 1.22.3 to 1.22.7 (#2149)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.22.3 to
1.22.7.
2024-06-17 09:10:02 -04:00
dependabot[bot]
53daee6993
build(deps): bump crate-ci/typos from 1.21.0 to 1.22.3 (#2134)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.21.0 to
1.22.3.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-10 09:38:06 +01:00
Darkhan Kubigenov
f337c0f70d
Upgrade dependencies in github actions (#2101) 2024-05-28 10:49:12 +02:00
Alexandra Imbrisca
3d999663ac
Add @AlexandraImbrisca to CODEOWNERS (#2091)
Co-authored-by: Martin Geisler <martin@geisler.net>
2024-05-22 11:17:25 +02:00
Razvan Musaloiu-E
23c5f66758
Add razvanm CODEOWNERS for ro.po (#2090) 2024-05-22 11:15:40 +02:00
Henri F
6b1b024a47
Update CODEOWNERS with new vi.po reviewer (#2051)
Ignored unrelated failing tests.
2024-05-21 20:30:17 -07:00
Martin Geisler
3d99e1badf
Retire @suetfei as zh-CN reviewer (#2059)
I talked with Suet-fei and she told me that she does not have time to
review the translation.

Thanks for the help!
2024-05-06 09:13:30 -07:00
dependabot[bot]
43f910aa41
build(deps): bump crate-ci/typos from 1.20.10 to 1.21.0 (#2055)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.20.10
to 1.21.0.
2024-05-06 09:34:29 -04:00
dependabot[bot]
6f4f29e603
Bump crate-ci/typos from 1.20.9 to 1.20.10 (#2034)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.20.9 to
1.20.10.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-29 11:30:19 +01:00
dependabot[bot]
4259b63c44
Bump crate-ci/typos from 1.20.8 to 1.20.9 (#2018)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.20.8 to
1.20.9.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-22 09:14:00 +02:00
Caleb Maclennan
487d1710c9
Add @alerque as a reviewer for the Turkish translation (#1999)
See invitation here:
https://github.com/google/comprehensive-rust/pull/1971#issuecomment-2061199545

Also note that @enes1313 is marked as a code owner, but they are *not* a
collaborator on the repository so the code owner features are
non-functional and this is considered an error by the GH parser.
Obviously there are two possible resolutions to that...
2024-04-18 12:48:18 +02:00
Keiichi Watanabe
f103971cf4
Add @HidenoriKobayashi to CODEOWNERS for Japanese translation (#1997)
@HidenoriKobayashi has been working on Japanese translation very well so
it'd be nice to have him as a CODEOWNER
2024-04-16 14:11:34 +09:00
dependabot[bot]
956a1361f1
Bump crate-ci/typos from 1.20.4 to 1.20.8 (#1990)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.20.4 to
1.20.8.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-15 10:25:43 +01:00
Martin Geisler
8ed4d48aa5
Only save CI cache on main branch (#1962)
When a PR restores the cache, it will find the most recent cache from
the `main` branch. This cache should be mostly up to date.

We are constantly at the 10 GB limit for our CI caches, so removing the
extra caches from the many PR branches should ensure that we always have
space for the `main` branch caches.
2024-04-08 18:04:42 +02:00
dependabot[bot]
13336fc428
Bump crate-ci/typos from 1.19.0 to 1.20.4 (#1968)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.19.0 to
1.20.4.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-08 15:48:59 +01:00
Martin Geisler
620b8a3b72
Run mdbook test on translated code (#1961)
I made a small mistake during the refactor in #1492: I removed the
`MDBOOK_BOOK__LANGUAGE` environment variable, which means that we ended
up testing the original Rust code snippets again and again.

This commit also fixes the few typos that have sneaked into the
translations due to the lack of testing.
2024-04-07 19:38:18 +09:00
dependabot[bot]
6e8000e35d
Bump actions/configure-pages from 4 to 5 (#1953)
Bumps
[actions/configure-pages](https://github.com/actions/configure-pages)
from 4 to 5.
2024-04-01 11:26:15 -04:00
Henri F
6064631f50
Adding Vietnamese to the publish workflow. (#1933) 2024-03-26 10:47:13 -07:00
Henri F
eff410cd1a
Update CODEOWNERS with Vietnamese (#1932)
Add @daivinhtran as Vietnamese codeowner.
2024-03-24 22:57:35 +01:00
Henri F
6fc747aa05
Update labeler.yml with Vietnamese (#1931) 2024-03-22 16:55:06 +00:00
Max Heller
97ac0e7caf
set fallback fonts for PDF rendering (#1728)
Once a new version of Pandoc is released that includes
https://github.com/jgm/pandoc/pull/9204 and
https://github.com/jgm/pandoc/pull/9353 (both merged), this will fix the
emoji and symbol rendering issues in #1708.

It doesn't seem to be possible to set fallback fonts with
`luatexja-fontspec` (used to configure CJK fonts), which results in some
missing symbols in the translations but at least renders the emoji
properly.

Closes #1708
2024-03-07 14:37:52 +01:00
Martin Geisler
c866c13b68
Retire @duyguisler as a Turkish reviewer (#1880)
Thanks for the work so far, feel free to come back if you have more
time!
2024-03-06 17:04:53 +00:00
Manichand Kondapaka
0761f936ca
Add a dev theme to help with slide aspect ratio (#1842)
Added a dev theme to help with slide aspect ratio while updating content
or for reviewing PRs.

Fixes #1796.

---------

Co-authored-by: Dustin J. Mitchell <djmitche@google.com>
Co-authored-by: Martin Geisler <martin@geisler.net>
2024-03-05 10:33:42 +00:00
Martin Geisler
c509dbd9e4
Always install and run mdbook-pandoc (#1713)
Before, we only installed and ran `mdbook-pandoc` when publishing the
course — which means that a PR change could accidentally break the
publish workflow. We now test that it works on every PR.

From a discussion in #1704.
2024-03-04 16:25:58 +01:00
Gergely Risko
e74a8b77bd
URGENT: Fix course schedule watcher github action (#1867)
@djmitche Currently all PRs are marked as schedule change PRs.

This is my try to propose a fix for this, but please review diligently,
I'm no github actions expert, and I don't have an environment to test.
2024-03-04 09:39:30 -05:00
dependabot[bot]
2bed943920
build(deps): bump crate-ci/typos from 1.18.2 to 1.19.0 (#1872)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.18.2 to
1.19.0.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-04 10:54:38 +00:00
Dustin J. Mitchell
adff70d025
Update course-schedule PR comments in-place (#1856)
Instead of always adding a new comment, just update the existing comment
if one exists.

This fixes #1834.
2024-02-29 10:51:37 -05:00
Dustin J. Mitchell
152354e9c9
Put a header on schedule comments (#1814)
This will add a little more context. See the current result in
https://github.com/google/comprehensive-rust/pull/1813.
2024-02-20 09:19:14 -05:00
Max Heller
8080e2add6
Rendered PDF improvements (#1805)
Updates `mdbook-pandoc` to
[0.5.0](https://github.com/max-heller/mdbook-pandoc/releases/tag/v0.5.0)
to use some new features:
- Table wrapping (closes #1709)
  
The wrapping logic mirror's
[Pandoc's](https://pandoc.org/MANUAL.html#extension-pipe_tables) (i.e.,
compare the relative widths of the `---` columns to determine column
widths) so tables in the source may need tweaking to get the proportions
right
- Replace broken links in PDF with corresponding links to
https://google.github.io/comprehensive-rust/
2024-02-20 11:04:30 +01:00
Dustin J. Mitchell
33b19848ef
Improved support for commenting when course timings change. (#1797)
This
* Works with the GitHub permissions model (at least in local testing on
another temporary repo)
 * Only comments when the timings actually change
2024-02-12 11:03:24 +00:00
dependabot[bot]
4f719ddc72
build(deps): bump crate-ci/typos from 1.18.0 to 1.18.2 (#1811)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.18.0 to
1.18.2.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-12 10:11:15 +00:00
dependabot[bot]
73a6ab6ded
build(deps): bump crate-ci/typos from 1.17.2 to 1.18.0 (#1785)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.17.2 to
1.18.0.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-05 10:31:16 +00:00
azevedoalice
55604ddbeb
Add myself to pt-BR reviewers (#1770) 2024-01-31 10:16:19 -08:00
Jean Carlo Vicelli
87df46cf07
pt-BR: add myself to CODEOWNERS (#1774) 2024-01-31 16:46:36 +01:00
Henri F
88dd268b01
Add @namhyung to Korean code reviewers. (#1771) 2024-01-30 17:22:36 -05:00
Yihao Wang
e990b395cd
Add myself (Ethan) to zh-CN reviewers (#1734) 2024-01-22 20:13:47 -08:00
dependabot[bot]
d76ca698ba
Bump crate-ci/typos from 1.17.1 to 1.17.2 (#1731)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.17.1 to
1.17.2.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-22 09:20:40 -05:00
Andrew Walbran
01f5ecf1e6
Run dependabot on bare-metal examples and exercises too. (#1712)
These can't be in the main workspace due to needing custom cargo config
for linker scripts and targets.
2024-01-18 10:21:46 +00:00
Chan Wang
4797401c83
Add myself to zh-CN reviewers (#1714) 2024-01-17 21:47:15 +00:00
Dustin J. Mitchell
e785962ca4
split typos and formatting checks into separate workflows (#1710)
Without this it's easy for failures of one of these checks to hide
failures of the other.
2024-01-17 13:57:42 +00:00
Martin Geisler
d731da4a5e
Move pandoc/ folder out of the way (#1704)
The config fragments there are only used in the GitHub actions, so we
can stash them way in the `.github/` folder.
2024-01-16 19:25:45 -05:00
Max Heller
9ed01cca77
Render book as PDF in publish.yml workflow (#1572)
Renders the book as a PDF and includes it in the published HTML bundle
as `comprehensive-rust.pdf`.

Closes #1543
2024-01-15 23:02:05 +01:00
Martin Geisler
3dc774d8e7
Group Dependabot PRs by minor/patch level (#1701)
This should help us limit the number of PRs opened by Dependabot. The
intention is for the bot to mostly open two PRs per week:

- one for patch updates (the ‘z’ in ‘x.y.z’)
- one for minor updates (the ‘y’ in ‘x.y.z’)

The rare major version updates (the ‘x’ in ‘x.y.z’) are sent
individually.

The configuration options here are taken from


https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#groups

This might help with #1681, but I don’t know yet how the new PR
description looks.
2024-01-15 13:53:14 +00:00
Martin Geisler
60c5a332ec
Partially revert #1576 (#1700)
The GitHub action added in #1576 fails because it cannot run with the
necessary permissions: it requires write access to be able to post a
comment, but when triggered from a fork, the token is limited to read
access.

The error is from the thollander/actions-comment-pull-request action:

No comment has been found with asked pattern. Creating a new comment.
    Error: Resource not accessible by integration

The downgrading of the token is explained on:

https://docs.github.com/en/actions/security-guides/automatic-token-authentication

where “Maximum access for pull requests from public forked repositories”
says that the pull-requests permission is capped at read in the typical
case for us.

I kept the underlying functionality since we might want to use it for
something else (perhaps track the duration in the README).

Fixes the errors seen on the recent PRs: #1693, #1687, and likely
others.
2024-01-15 13:56:05 +01:00
dependabot[bot]
39424810c2
build(deps): bump crate-ci/typos from 1.17.0 to 1.17.1 (#1695)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.17.0 to
1.17.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/crate-ci/typos/releases">crate-ci/typos's
releases</a>.</em></p>
<blockquote>
<h2>v1.17.1</h2>
<h2>[1.17.1] - 2024-01-12</h2>
<h3>Features</h3>
<ul>
<li>First attempt at aarch64 for Mac</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/crate-ci/typos/blob/master/CHANGELOG.md">crate-ci/typos's
changelog</a>.</em></p>
<blockquote>
<h2>[1.17.1] - 2024-01-12</h2>
<h3>Features</h3>
<ul>
<li>First attempt at aarch64 for Mac</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="a35b382b44"><code>a35b382</code></a>
chore: Release</li>
<li><a
href="4c32fc5ec4"><code>4c32fc5</code></a>
docs: Update changelog</li>
<li><a
href="b02f5895d3"><code>b02f589</code></a>
Merge pull request <a
href="https://redirect.github.com/crate-ci/typos/issues/908">#908</a>
from epage/ci</li>
<li><a
href="7b12730b18"><code>7b12730</code></a>
chore(ci): Build for aarch64</li>
<li><a
href="5adfdc2ade"><code>5adfdc2</code></a>
chore(ci): Show what gets bundled</li>
<li><a
href="657d1b1764"><code>657d1b1</code></a>
chore(ci): Remove use of undefined variable</li>
<li><a
href="a7762787d8"><code>a776278</code></a>
chore(ci): Ensure rustfmt is available</li>
<li>See full diff in <a
href="https://github.com/crate-ci/typos/compare/v1.17.0...v1.17.1">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=crate-ci/typos&package-manager=github_actions&previous-version=1.17.0&new-version=1.17.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-15 10:01:53 +00:00