Skip to content

Commit

Permalink
Skip translation of large bare-metal code blocks (#1853)
Browse files Browse the repository at this point in the history
This was done a bit inconsistently before. We now skip all of these
large blocks which are meant to be used as-is by the students.

This removes 700 lines from the PO files. I found this during the review
of #1651.
  • Loading branch information
mgeisler authored Feb 27, 2024
1 parent 3e7ce5e commit dc4a1eb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/exercises/bare-metal/compass.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ look in the `compass` directory for the following files.
_src/main.rs_:

<!-- File src/main.rs -->
<!-- mdbook-xgettext: skip -->

```rust,compile_fail
{{#include compass/src/main.rs:top}}
Expand Down
10 changes: 10 additions & 0 deletions src/exercises/bare-metal/rtc.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ look in the `rtc` directory for the following files.
_src/main.rs_:

<!-- File src/main.rs -->
<!-- mdbook-xgettext: skip -->

```rust,compile_fail
{{#include rtc/src/main.rs:top}}
Expand All @@ -41,6 +42,7 @@ _src/exceptions.rs_ (you should only need to change this for the 3rd part of the
exercise):

<!-- File src/exceptions.rs -->
<!-- mdbook-xgettext: skip -->

```rust,compile_fail
{{#include rtc/src/exceptions.rs}}
Expand All @@ -49,6 +51,7 @@ exercise):
_src/logger.rs_ (you shouldn't need to change this):

<!-- File src/logger.rs -->
<!-- mdbook-xgettext: skip -->

```rust,compile_fail
{{#include rtc/src/logger.rs}}
Expand All @@ -57,6 +60,7 @@ _src/logger.rs_ (you shouldn't need to change this):
_src/pl011.rs_ (you shouldn't need to change this):

<!-- File src/pl011.rs -->
<!-- mdbook-xgettext: skip -->

```rust,compile_fail
{{#include rtc/src/pl011.rs}}
Expand All @@ -74,6 +78,7 @@ _Cargo.toml_ (you shouldn't need to change this):
_build.rs_ (you shouldn't need to change this):

<!-- File build.rs -->
<!-- mdbook-xgettext: skip -->

```rust,compile_fail
{{#include rtc/build.rs}}
Expand All @@ -82,6 +87,7 @@ _build.rs_ (you shouldn't need to change this):
_entry.S_ (you shouldn't need to change this):

<!-- File entry.S -->
<!-- mdbook-xgettext: skip -->

```armasm
{{#include rtc/entry.S}}
Expand All @@ -90,6 +96,7 @@ _entry.S_ (you shouldn't need to change this):
_exceptions.S_ (you shouldn't need to change this):

<!-- File exceptions.S -->
<!-- mdbook-xgettext: skip -->

```armasm
{{#include rtc/exceptions.S}}
Expand All @@ -98,6 +105,7 @@ _exceptions.S_ (you shouldn't need to change this):
_idmap.S_ (you shouldn't need to change this):

<!-- File idmap.S -->
<!-- mdbook-xgettext: skip -->

```armasm
{{#include rtc/idmap.S}}
Expand All @@ -106,6 +114,7 @@ _idmap.S_ (you shouldn't need to change this):
_image.ld_ (you shouldn't need to change this):

<!-- File image.ld -->
<!-- mdbook-xgettext: skip -->

```ld
{{#include rtc/image.ld}}
Expand All @@ -114,6 +123,7 @@ _image.ld_ (you shouldn't need to change this):
_Makefile_ (you shouldn't need to change this):

<!-- File Makefile -->
<!-- mdbook-xgettext: skip -->

```makefile
{{#include rtc/Makefile}}
Expand Down

0 comments on commit dc4a1eb

Please sign in to comment.