Skip to content

Commit 131d4cd

Browse files
authored
Fix more spelling/fencing issues (#1822)
* Fence code * Typo fix
1 parent afab3aa commit 131d4cd

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

content/en/admin/config.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ When set to `true`, Mastodon will restrict federation to servers you have manual
7070

7171
When switching an existing instance to limited federation mode, the following command should be used to remove any already existent data on non-allowed domains:
7272

73-
```
73+
```bash
7474
tootctl domain purge --limited-federation-mode
7575
```
7676

@@ -121,7 +121,7 @@ bin/rails runner 'puts Rails.application.config.i18n.available_locales.sort'
121121

122122
#### `FORCE_DEFAULT_LOCALE`
123123

124-
When set to `true`, skips the visitor's brower language detection feature and use `DEFAULT_LOCALE` (or English) instead, corresponding to the behavior of `DEFAULT_LOCALE` prior to Mastodon 4.4.0.
124+
When set to `true`, skips the visitor's browser language detection feature and use `DEFAULT_LOCALE` (or English) instead, corresponding to the behavior of `DEFAULT_LOCALE` prior to Mastodon 4.4.0.
125125

126126
**Version history:**\
127127
4.4.0 - added

content/en/admin/elasticsearch.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ RAILS_ENV=production bin/tootctl search deploy
165165
```
166166

167167
{{< hint style="info" >}}
168-
Creating Elasticsearch indicies could require more memory than the JVM (Java Virtual Machine) provides. If Elasticsearch crashes while creating indicies, try to allocate more memory.
168+
Creating Elasticsearch indices could require more memory than the JVM (Java Virtual Machine) provides. If Elasticsearch crashes while creating indices, try to allocate more memory.
169169

170170
1. Create and open a file in the directory ```/etc/elasticsearch/jvm.options.d/``` (for example: ```nano /etc/elasticsearch/jvm.options.d/ram.options```)
171171
2. Add following text and edit the allocated memory to your needs. As a rule of thumb, Elasticsearch should use about 25%-50% of your available memory. Do not allocate more memory than available.
@@ -180,7 +180,7 @@ Creating Elasticsearch indicies could require more memory than the JVM (Java Vir
180180
181181
3. Save the file.
182182
4. Restart Elasticsearch using ```systemctl restart elasticsearch```.
183-
5. Retry creating Elasticsearch indicies. If Elasticsearch still crashes, try to set a higher number.
183+
5. Retry creating Elasticsearch indices. If Elasticsearch still crashes, try to set a higher number.
184184
{{< /hint >}}
185185
186186
## Search optimization for other languages

content/en/admin/install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ Then edit `/etc/nginx/sites-available/mastodon` to
198198
1. Replace `example.com` with your own domain name
199199
2. Uncomment the `ssl_certificate` and `ssl_certificate_key` (ignore this step if you are bringing your own certificate):
200200

201-
```
201+
```nginx
202202
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
203203
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;;
204204
```

content/en/admin/scaling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ Mastodon has built-in replica support starting with version 4.2. You can use the
409409

410410
To configure it, use the following environment variables:
411411

412-
```
412+
```text
413413
REPLICA_DB_HOST
414414
REPLICA_DB_PORT
415415
REPLICA_DB_NAME

content/en/admin/troubleshooting.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ By default, Mastodon makes use of [systemd's sandboxing capabilities](https://ww
6161

6262
This happens for example, when you run
6363

64-
```
64+
```bash
6565
RAILS_ENV=production bundle exec rails assets:precompile
6666
```
6767

6868
without a valid, functional NodeJS environment. In some cases `yarn install --immutable` has not been run, yet and the web files have not been installed to the correct directory, yet. Running the `assets::precompile` command again will probably not help. Here's how to fix it:
6969

70-
```
70+
```bash
7171
cd live
7272
yarn install --immutable
7373
RAILS_ENV=production bundle exec rake tmp:cache:clear
@@ -76,7 +76,7 @@ RAILS_ENV=production bundle exec rails assets:precompile
7676

7777
Then restart the `mastodon-web` service:
7878

79-
```
79+
```bash
8080
sudo systemctl restart mastodon-web.service
8181
```
8282

@@ -85,7 +85,7 @@ sudo systemctl restart mastodon-web.service
8585

8686
If you encounter error messages like this:
8787

88-
```
88+
```text
8989
WARNING: you don't own a lock of type ExclusiveLock
9090
bin/rails aborted!
9191
ActiveRecord::ConcurrentMigrationError: (ActiveRecord::ConcurrentMigrationError)
@@ -95,7 +95,7 @@ Failed to release advisory lock
9595

9696
You're probably running pg_bouncer in front of PostgreSQL and forgot to specify the PostgreSQL port manually (instead of using the default pg_bouncer port!). To make the migrate commands work, add `DB_PORT`, for example:
9797

98-
```
98+
```bash
9999
RAILS_ENV=production DB_PORT=5432 bundle exec rails db:migrate
100100
```
101101

content/en/admin/troubleshooting/index-corruption.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Mastodon 3.2.2 and later come with a semi-interactive script to fix those corrup
8585

8686
Before attempting to fix your database, **stop Mastodon and make a backup of your database**. Then, with **Mastodon still stopped**, run the maintenance script:
8787

88-
```
88+
```bash
8989
RAILS_ENV=production bin/tootctl maintenance fix-duplicates
9090
```
9191

content/en/api/datetime-format.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The string representation of a datetime uses the "Internet Date/Time Format" def
1515

1616
To summarise, that is the following mandatory components:
1717

18-
```
18+
```text
1919
[YYYY]-[MM]-[DD]T[hh]:[mm]:[ss].[s][TZD]
2020
```
2121

@@ -49,7 +49,7 @@ The string representation of a date uses the complete, extended calendar date re
4949

5050
That is the following mandatory components:
5151

52-
```
52+
```text
5353
[YYYY]-[MM]-[DD]
5454
```
5555

content/en/spec/bearcaps.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ menu:
99

1010
## What are bearcaps? {#intro}
1111

12-
In certain cases, resources may not be publically available and may require a token to successfully fetch them. This is typically done by using an HTTP `Authorization` header containing a `Bearer` token, like so:
12+
In certain cases, resources may not be publicly available and may require a token to successfully fetch them. This is typically done by using an HTTP `Authorization` header containing a `Bearer` token, like so:
1313

1414
```http
1515
GET https://example.com/foo
@@ -18,7 +18,7 @@ Authorization: Bearer <token>
1818

1919
Bearcaps allow for a way to link to a resource with the token included, like so:
2020

21-
```
21+
```text
2222
bear:?t=<token>&u=https://example.com/foo'
2323
```
2424

0 commit comments

Comments
 (0)