Enable color syntax in documentation

This commit is contained in:
M
2022-04-23 13:02:05 +00:00
parent 11b629203b
commit 1babc2725d

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:
```
```toml
[scootaloo]
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:
```
```sh
scootaloo register --host https://m.nintendojo.fr
```
This will give you the end of the TOML file. It will look like this:
```
```toml
[mastodon]
base = "https://m.nintendojo.fr"
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.
You can do that with a command like:
```
```sh
echo -n '8189881949849' > last_tweet
```