Merge branch 'syntax-color-in-doc' into 'master'

Add syntax colors in documentation

See merge request veretcle/scootaloo!17
This commit is contained in:
VC
2022-04-24 07:12:37 +00:00

View File

@@ -13,7 +13,7 @@ RT are excluded, replies are included.but only the source threads are copied, no
First up, create a configuration file (default path is `/usr/local/etc/scootaloo.toml`). It will look like this: First up, create a configuration file (default path is `/usr/local/etc/scootaloo.toml`). It will look like this:
``` ```toml
[scootaloo] [scootaloo]
last_tweet_path="/usr/local/etc/last_tweet" ## file containing the last tweet id received, must be writable last_tweet_path="/usr/local/etc/last_tweet" ## file containing the last tweet id received, must be writable
@@ -30,13 +30,13 @@ access_secret="MYACCESSSECRET"
``` ```
Then run the command with the `register` subcommand: Then run the command with the `register` subcommand:
``` ```sh
scootaloo register --host https://m.nintendojo.fr scootaloo register --host https://m.nintendojo.fr
``` ```
This will give you the end of the TOML file. It will look like this: This will give you the end of the TOML file. It will look like this:
``` ```toml
[mastodon] [mastodon]
base = "https://m.nintendojo.fr" base = "https://m.nintendojo.fr"
client_id = "MYCLIENTID" client_id = "MYCLIENTID"
@@ -68,7 +68,7 @@ SUBCOMMANDS:
Scootaloo does not respect the spam limits imposed by Mastodon: it will make a 429 error if too much Tweets are converted to Toots in a short amount of time (and it will not recover from it). By default, it gets the last 200 tweets from the user timeline (which is a lot!). It is recommended to put a Tweet number into the `last_tweet` file before copying an old account. Scootaloo does not respect the spam limits imposed by Mastodon: it will make a 429 error if too much Tweets are converted to Toots in a short amount of time (and it will not recover from it). By default, it gets the last 200 tweets from the user timeline (which is a lot!). It is recommended to put a Tweet number into the `last_tweet` file before copying an old account.
You can do that with a command like: You can do that with a command like:
``` ```sh
echo -n '8189881949849' > last_tweet echo -n '8189881949849' > last_tweet
``` ```