docs/config: add languages to code blocks Change-Id: I8f2743270755e48a30cb6e4591417bab5f9473fd
diff --git a/src/main/resources/Documentation/config.md b/src/main/resources/Documentation/config.md index db93df6..4c87731 100644 --- a/src/main/resources/Documentation/config.md +++ b/src/main/resources/Documentation/config.md
@@ -9,12 +9,12 @@ file. The easiest way to add the host key is to connect once by hand with the command line: -``` +```console sudo su -c 'ssh mirror1.us.some.org echo' gerrit2 ``` *NOTE:* make sure the local user's ssh keys format is PEM, here how to generate them: -``` +```console ssh-keygen -m PEM -t rsa -C "your_email@example.com" ``` @@ -22,7 +22,7 @@ Next, create `$site_path/etc/replication.config` as a Git-style config file, for example to replicate in parallel to four different hosts: -``` +```ini [remote "host-one"] url = gerrit2@host-one.example.com:/some/path/${name}.git @@ -39,7 +39,7 @@ Then reload the replication plugin to pick up the new configuration: -``` +```console ssh -p 29418 localhost gerrit plugin reload replication ``` @@ -604,7 +604,7 @@ Static configuration in `$site_path/etc/replication.config`: -``` +```ini [gerrit] autoReload = true replicateOnStartup = false @@ -617,7 +617,7 @@ * File `$site_path/etc/replication/host-one.config` - ``` + ```ini [remote] url = gerrit2@host-one.example.com:/some/path/${name}.git ``` @@ -625,7 +625,7 @@ * File `$site_path/etc/replication/pubmirror.config` - ``` + ```ini [remote] url = mirror1.us.some.org:/pub/git/${name}.git url = mirror2.us.some.org:/pub/git/${name}.git @@ -639,7 +639,7 @@ Replication plugin resolves config files to the following configuration: -``` +```ini [gerrit] autoReload = true replicateOnStartup = false @@ -682,7 +682,7 @@ Gerrit reads and caches the `~/.ssh/config` at startup, and supports most SSH configuration options. For example: -``` +```text Host host-one.example.com IdentityFile ~/.ssh/id_hostone PreferredAuthentications publickey @@ -696,7 +696,7 @@ *IdentityFile* and *PreferredAuthentications* must be defined for all the hosts. Here an example of the minimum `~/.ssh/config` needed: -``` +```text Host * IdentityFile ~/.ssh/id_rsa PreferredAuthentications publickey