You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-06-21 08:19:32 +02:00
Add mdbook-xgettext skip for untranslatable codeblocks in Bare Metal (#1339)
See #1327 Removes 280 lines from `messages.pot`. Signed-off-by: 0scvr <71343264+0scvr@users.noreply.github.com>
This commit is contained in:
@ -43,7 +43,7 @@ use microbit::{hal::uarte::{Baudrate, Parity, Uarte}, Board};
|
||||
_Cargo.toml_ (you shouldn't need to change this):
|
||||
|
||||
<!-- File Cargo.toml -->
|
||||
|
||||
<!-- mdbook-xgettext: skip -->
|
||||
```toml
|
||||
{{#include compass/Cargo.toml}}
|
||||
```
|
||||
@ -51,7 +51,7 @@ _Cargo.toml_ (you shouldn't need to change this):
|
||||
_Embed.toml_ (you shouldn't need to change this):
|
||||
|
||||
<!-- File Embed.toml -->
|
||||
|
||||
<!-- mdbook-xgettext: skip -->
|
||||
```toml
|
||||
{{#include compass/Embed.toml}}
|
||||
```
|
||||
@ -59,19 +59,19 @@ _Embed.toml_ (you shouldn't need to change this):
|
||||
_.cargo/config.toml_ (you shouldn't need to change this):
|
||||
|
||||
<!-- File .cargo/config.toml -->
|
||||
|
||||
<!-- mdbook-xgettext: skip -->
|
||||
```toml
|
||||
{{#include compass/.cargo/config.toml}}
|
||||
```
|
||||
|
||||
See the serial output on Linux with:
|
||||
|
||||
<!-- mdbook-xgettext: skip -->
|
||||
```sh
|
||||
picocom --baud 115200 --imap lfcrlf /dev/ttyACM0
|
||||
```
|
||||
|
||||
Or on Mac OS something like (the device name may be slightly different):
|
||||
|
||||
<!-- mdbook-xgettext: skip -->
|
||||
```sh
|
||||
picocom --baud 115200 --imap lfcrlf /dev/tty.usbmodem14502
|
||||
```
|
||||
|
@ -61,7 +61,7 @@ _src/pl011.rs_ (you shouldn't need to change this):
|
||||
_Cargo.toml_ (you shouldn't need to change this):
|
||||
|
||||
<!-- File Cargo.toml -->
|
||||
|
||||
<!-- mdbook-xgettext: skip -->
|
||||
```toml
|
||||
{{#include rtc/Cargo.toml}}
|
||||
```
|
||||
@ -117,7 +117,7 @@ _Makefile_ (you shouldn't need to change this):
|
||||
_.cargo/config.toml_ (you shouldn't need to change this):
|
||||
|
||||
<!-- File .cargo/config.toml -->
|
||||
|
||||
<!-- mdbook-xgettext: skip -->
|
||||
```toml
|
||||
{{#include rtc/.cargo/config.toml}}
|
||||
```
|
||||
|
Reference in New Issue
Block a user