Skip to content

Commit 85b1989

Browse files
committed
use code tabs (docusaurus)
1 parent 393e5a7 commit 85b1989

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/python-advanced.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,17 @@ To cross-compile for a Raspberry Pi you need to run the following in your termin
125125
rustup target add arm-unknown-linux-gnueabihf
126126
```
127127

128-
On Linux you also need the following dependencies
128+
You also need to install the following dependencies
129129

130+
<!--DOCUSAURUS_CODE_TABS-->
131+
132+
<!--Linux-->
130133
```bash
131134
sudo apt-get update
132135
sudo apt-get install -y gcc-arm-linux-gnueabihf libc6-dev-armhf-cross
133136
```
134137

135-
On MacOS, do the following
136-
138+
<!--MacOS-->
137139
```bash
138140
# Tap the repository that provides the cross-compiler
139141
brew tap messense/macos-cross-toolchains
@@ -146,8 +148,10 @@ brew install arm-unknown-linux-gnueabihf
146148
# Verify the compiler is found
147149
which arm-linux-gnueabihf-gcc || (echo "arm-linux-gnueabihf-gcc not found in PATH" && exit 1)
148150
```
151+
<!--END_DOCUSAURUS_CODE_TABS-->
149152
</details>
150153

154+
<br>
151155
If you need to compile for a target other than `arm-linux-gnueabihf-gcc` (`rpi`)
152156
some manual configuration may be needed (you may need to install the target
153157
and/or a compiler/linker) and you may need to edit the auto-generated

0 commit comments

Comments
 (0)