From 4cf943c087dca23823d81c960e6e4a21159469b5 Mon Sep 17 00:00:00 2001 From: Ed Morley <501702+edmorley@users.noreply.github.com> Date: Wed, 18 Oct 2023 12:31:20 +0100 Subject: [PATCH] Improve the UX of README command codeblocks * Removes the leading terminal prompt `$` from single command codeblocks, so that GitHub's "copy to clipboard" feature can be used to copy the commands directly into the terminal. * Switches multi-line "command plus example output" codeblocks from language `shell` to `console` to prevent broken syntax highlighting (e.g. the "test" in "To test your buildpack" was being highlighted as a bash script, not console output). --- README.md | 23 +++++++++++------------ libcnb-cargo/README.md | 8 ++++---- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index ab5e3f5f..329046f5 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,8 @@ be carried out once and don't need to be repeated for each buildpack you will wr Start by installing [libcnb-cargo](https://crates.io/crates/libcnb-cargo), which provides the `libcnb` Cargo command that we will use later to package our buildpack: -```shell -$ cargo install libcnb-cargo +``` +cargo install libcnb-cargo ``` #### Cross-compilation prerequisites @@ -41,8 +41,8 @@ eventually run. This means we have to cross-compile our buildpack. The `libcnb p up your environment depending on your host platform, but we always need the appropriate target platform for Rust, which we can install with `rustup`: -```shell -$ rustup target add x86_64-unknown-linux-musl +``` +rustup target add x86_64-unknown-linux-musl ``` #### Docker @@ -61,15 +61,14 @@ Find their documentation about installing it here: