From dd906fe95ba11523700bf0bdb7c780e13e652402 Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Tue, 17 Dec 2024 16:24:15 +0100 Subject: [PATCH] Disable code blocks copy on certain blocks (#433) for which it does not make sense, specialy on blog posts --- docs/blog/posts/v0.10.0.md | 4 ++-- docs/blog/posts/v0.11.0.md | 14 +++++++------- docs/blog/posts/v0.11.0rc0.md | 2 +- docs/blog/posts/v0.8.md | 12 ++++++------ docs/blog/posts/v0.9.0rc.md | 2 +- docs/blog/posts/v0.9.md | 14 +++++++------- 6 files changed, 24 insertions(+), 24 deletions(-) diff --git a/docs/blog/posts/v0.10.0.md b/docs/blog/posts/v0.10.0.md index c1925d86..3727c3bf 100644 --- a/docs/blog/posts/v0.10.0.md +++ b/docs/blog/posts/v0.10.0.md @@ -35,7 +35,7 @@ The complete lifecycle of the revocation document and its storage in a file is n The `revocation` command comes with four sub-commands: -``` +```{..yaml .no-copy} silkaj revocation --help Usage: silkaj revocation [OPTIONS] COMMAND [ARGS]... @@ -89,7 +89,7 @@ This update brings fixes and improvements on the existing languages and brings a The display is now only displaying the embedded license files in the console, since it’s available in six up-to-date languages. -``` +```{..yaml .no-copy} silkaj license In which language would you like to display Äž1 monetary license? (es, en, eo, it, fr, pt) [en]: fr ``` diff --git a/docs/blog/posts/v0.11.0.md b/docs/blog/posts/v0.11.0.md index 1bc2398b..bcb23f30 100644 --- a/docs/blog/posts/v0.11.0.md +++ b/docs/blog/posts/v0.11.0.md @@ -50,7 +50,7 @@ For a comprehensive documentation, check the [installation documentation](/insta The commands have been grouped into following groups: `blockchain`, `money`, and `wot`. The other commands not related to these topics have been kept at the root of the CLI tree. -``` +```{..yaml .no-copy} silkaj --help about Display program information authentication Generate authentication file @@ -61,7 +61,7 @@ silkaj --help wot Web-of-Trust related commands ``` -``` +```{..yaml .no-copy} silkaj blockchain --help blocks Display blocks: default: 0 for current window size difficulty Display the current Proof of Work difficulty level to... @@ -69,14 +69,14 @@ silkaj blockchain --help verify Verify blocks’ signatures. ``` -``` +```{..yaml .no-copy} silkaj money --help balance Get wallet balance history Display transaction history transfer Transfer money ``` -``` +```{..yaml .no-copy} silkaj wot --help certify Send certification lookup User identifier and public key lookup @@ -87,7 +87,7 @@ silkaj wot --help In this process following commands have been renamed: -``` +```{..yaml .no-copy} diffi −> difficulty tx −> transfer cert −> certify @@ -104,7 +104,7 @@ The migration has been done. You will probably notice differences in the table s Before, with `tabulate`: -``` +```{..yaml .no-copy} | uid | blocks | percent | |-------------+----------+-----------| | vit2 | 33 | 33.0 | @@ -116,7 +116,7 @@ Before, with `tabulate`: Now, with `texttable`: -``` +```{..yaml .no-copy} │─────────────│────────│─────────│ │ uid │ blocks │ percent │ │â•â•â•â•â•â•â•â•â•â•â•â•â•│â•â•â•â•â•â•â•â•│â•â•â•â•â•â•â•â•â•│ diff --git a/docs/blog/posts/v0.11.0rc0.md b/docs/blog/posts/v0.11.0rc0.md index 79ba9c48..eace4904 100644 --- a/docs/blog/posts/v0.11.0rc0.md +++ b/docs/blog/posts/v0.11.0rc0.md @@ -60,7 +60,7 @@ Silkaj commands have been reorganized into following groups: `blockchain`, `mone Some commands not related to these contexts have been kept in the top-level group. Tell us if the new CLI design with sub-sub-commands compared to the previous one with all the commands at the top-level instead fits best, is less convenient, is following a more structured logic. -``` +```{..yaml .no-copy} Commands: about Display program information authentication Generate authentication file diff --git a/docs/blog/posts/v0.8.md b/docs/blog/posts/v0.8.md index c53696b9..d59d95a7 100644 --- a/docs/blog/posts/v0.8.md +++ b/docs/blog/posts/v0.8.md @@ -39,7 +39,7 @@ After the transaction and the certification commands, the much awaited `membersh Users can send their first membership request to be a certified member of the Äž1 community. As certified members have to renew their membership each year, this command allows to send the renewal application in question. It displays the expiration date of the current membership and indicates the identification blockstamp of the user. In the event a user forgets that they have already sent a membership request, a pop up displays if there is a pending membership request in the mempool. -``` +```{ ..yaml .no-copy } silkaj membership Please enter your Scrypt Salt (Secret identifier): Please enter your Scrypt password (masked): @@ -72,7 +72,7 @@ Do you confirm sending a membership document for this identity? [y/N]: When using the commands `wot`, `cert`, and `membership`, Silkaj used to select the first identity on the list. As this can lead to fishing, we added a new feature to pick the identity of your choice. Now, you can use the `uid` and the `pubkey` to certify an identity and study its status in the Web of Trust. Please note that identities can have the same user identifier and the same public key. -``` +```{ ..yaml .no-copy } silkaj -gt wot moul | id | uid | pubkey | timestamp | |------+-----------+--------------------------------------------------+-----------------------| @@ -105,7 +105,7 @@ v0.8.0 comes with three **breaking changes** and four small options: The follow examples illustrates the change operated on the CLI. With the previous version of Silkaj, the following procedure was operated to send one unit to `pubkey1` and `pubkey2`: -``` +```{ ..yaml .no-copy } silkaj tx --amount 1 --output <pubkey>1!<checksum1>:<pubkey2>!<checksum2> ``` @@ -129,7 +129,7 @@ We merged the relative and absolute amounts into one cell. This applies to the c To send a different amount of Äž1 to multi-recipient proceed following: -``` +```{ ..yaml .no-copy } silkaj tx -d 1 -d 2 \ -r CrznBiyq8G4RVUprH9jHmAw1n1iuzw8y9FdJbrESnaX7 \ -r d88fPFbDdJXJANHH7hedFMaRyGcnVZj9c5cDaE76LRN:FVm \ @@ -164,7 +164,7 @@ Do you confirm sending this transaction? [yes/no]: The balance of a given public key is now displayed in a table. Bellow you can find an example of such a display. -``` +```{ ..yaml .no-copy } silkaj balance 78ZwwgpgdH5uLZLbThUQH7LKwPgjMunYfLiCfUCySkM8 â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•╤â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•• │ Balance of pubkey │ 78ZwwgpgdH5uLZLbThUQH7LKwPgjMunYfLiCfUCySkM8:4VT │ @@ -191,7 +191,7 @@ Cf [Forum topic](https://forum.duniter.org/t/duniter-utilise-une-ancienne-versio To verify blocks proceed following: -``` +```{ ..yaml .no-copy } silkaj verify Processing blocks verification [####################################] 100% Within 0-342803 range, blocks with a wrong signature: 15144 31202 85448 87566 90830 109327 189835 199172 221274 253582 diff --git a/docs/blog/posts/v0.9.0rc.md b/docs/blog/posts/v0.9.0rc.md index d1ff4f06..c7c3f2f3 100644 --- a/docs/blog/posts/v0.9.0rc.md +++ b/docs/blog/posts/v0.9.0rc.md @@ -25,7 +25,7 @@ Please test it globally, and check the changelog which contains the changes whic Pay a special attention to the transaction part where a part of the algorithm changed. There are new options on following commands: -``` +```{ ..yaml .no-copy } silkaj history --full-pubkey silkaj --dry-run cert silkaj --dry-run/--display membership diff --git a/docs/blog/posts/v0.9.md b/docs/blog/posts/v0.9.md index 88234665..1eca4205 100644 --- a/docs/blog/posts/v0.9.md +++ b/docs/blog/posts/v0.9.md @@ -33,7 +33,7 @@ Now the non-member user identifier are displayed. The command now uses same algorithm as `choose_identity()` which relies exclusively on `/wot/lookup` BMA's path. The command has been renamed to `lookup` to represent more closely what it does. This command renaming will also allow to introduce the future `identity` command. -``` +```{ ..yaml .no-copy } silkaj lookup titi Public keys or user id found matching 'titi': @@ -53,7 +53,7 @@ Public keys or user id found matching 'titi': The `history` command adds a new option to display the whole public keys `--full-pubkey`: -``` +```{ ..yaml .no-copy } silkaj -gt history 5B8iMAzq1dNmFe3ZxFTBQkqhq4fsztg1gZvxHXCk1XYH --full-pubkey Transactions history from: moul-test 5B8iMAzq1dNmFe3ZxFTBQkqhq4fsztg1gZvxHXCk1XYH:baK @@ -73,7 +73,7 @@ Current balance: 9012407.83 ÄžTest, 161.34 UD ÄžTest on the 2021-04-09 15:16:42 #### `balance` command is now displaying corresponding member identity user identifier -``` +```{ ..yaml .no-copy } silkaj -gt balance 5B8iMAzq1dNmFe3ZxFTBQkqhq4fsztg1gZvxHXCk1XYH â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•╤â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•• │ Balance of pubkey │ 5B8iMAzq1dNmFe3ZxFTBQkqhq4fsztg1gZvxHXCk1XYH:baK │ @@ -93,7 +93,7 @@ It can be used for debugging, safety, or curiosity purposes. This option has only been implemented on the `cert` and the `membership` commands for now. The option should be available in next releases for the three others send-documents commands. -``` +```{ ..yaml .no-copy } silkaj --gtest --auth-file --display cert KapisTest â•’â•â•â•â•â•â•â•â•╤â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•╤â•â•â•â•╤â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•• │ Cert │ Issuer │ –> │ Recipient: Published: #block-hash date │ @@ -118,7 +118,7 @@ Do you confirm sending this certification? [y/N]: y Certification successfully sent. ``` -``` +```{ ..yaml .no-copy } silkaj --gtest --auth-file --display membership â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•╤â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•• │ Expiration date of current membership │ in 2 months │ @@ -153,13 +153,13 @@ Membership successfully sent Before: -``` +```{ ..yaml .no-copy } silkaj membership --dry-run ``` Now: -``` +```{ ..yaml .no-copy } silkaj --dry-run membership ``` -- GitLab