X Tutup
Skip to content

Commit 25d3296

Browse files
committed
Double indent code blocks to resolve list numbering
1 parent f2e9960 commit 25d3296

File tree

2 files changed

+123
-109
lines changed

2 files changed

+123
-109
lines changed

docs/INSTALLATION.md

Lines changed: 76 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,24 @@ Open an administrative command prompt. (If you need assistance opening an admin
2424

2525
1. If you have not installed Chocolatey, do so now:
2626

27-
```batchfile
28-
C:\Windows\system32> @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
29-
```
27+
```batchfile
28+
C:\Windows\system32> @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
29+
```
30+
3031
2. Install the JDK:
3132
32-
```batchfile
33-
C:\Windows\system32> choco install jdk8
34-
...
35-
C:\Windows\system32> refreshenv
36-
...
37-
```
33+
```batchfile
34+
C:\Windows\system32> choco install jdk8
35+
...
36+
C:\Windows\system32> refreshenv
37+
...
38+
```
3839
3. Install Gradle:
3940
40-
```batchfile
41-
C:\Windows\system32>choco install gradle
42-
...
43-
```
41+
```batchfile
42+
C:\Windows\system32>choco install gradle
43+
...
44+
```
4445
4546
We recommend closing the administrative command prompt and opening a new command prompt -- you do not require administrator privileges to practice Exercism exercises.
4647
@@ -58,24 +59,27 @@ Below are instructions for install using the most common method - using Homebrew
5859
5960
1. If you haven't installed [Homebrew](http://brew.sh), yet, do so now:
6061
61-
```sh
62-
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
63-
```
62+
```sh
63+
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
64+
```
65+
6466
2. Tap the [Homebrew Cask](https://caskroom.github.io/) — this allows us to install pre-built binaries like the JDK.
6567
66-
```
67-
$ brew tap caskroom/cask
68-
```
68+
```
69+
$ brew tap caskroom/cask
70+
```
71+
6972
3. Install the JDK:
7073
71-
```
72-
$ brew cask install java
73-
```
74+
```
75+
$ brew cask install java
76+
```
77+
7478
4. Install Gradle:
7579
76-
```
77-
$ brew install gradle
78-
```
80+
```
81+
$ brew install gradle
82+
```
7983
8084
You now are ready to get started with the Java track of Exercism!
8185
@@ -98,21 +102,22 @@ If you are using Debian or its derivatives (like Ubuntu or Linux Mint), use APT:
98102
99103
1. Install the JDK:
100104
101-
```sh
102-
$ sudo apt-get update
103-
$ sudo apt-get install python-software-properties
104-
$ sudo add-apt-repository ppa:webupd8team/java
105-
$ sudo apt-get update
106-
$ sudo apt-get install oracle-java8-installer
107-
$ sudo apt install oracle-java8-set-default
108-
```
105+
```sh
106+
$ sudo apt-get update
107+
$ sudo apt-get install python-software-properties
108+
$ sudo add-apt-repository ppa:webupd8team/java
109+
$ sudo apt-get update
110+
$ sudo apt-get install oracle-java8-installer
111+
$ sudo apt install oracle-java8-set-default
112+
```
113+
109114
2. Install Gradle:
110115
111-
```sh
112-
$ sudo add-apt-repository ppa:cwchien/gradle
113-
$ sudo apt-get update
114-
$ sudo apt-get install gradle
115-
```
116+
```sh
117+
$ sudo add-apt-repository ppa:cwchien/gradle
118+
$ sudo apt-get update
119+
$ sudo apt-get install gradle
120+
```
116121
117122
You now are ready to get started with the Java track of Exercism!
118123
@@ -128,14 +133,15 @@ If you are using Fedora or its derivatives, use DNF:
128133
129134
1. Install the JDK:
130135
131-
```sh
132-
$ sudo dnf install java-1.8.0-openjdk-devel
133-
```
136+
```sh
137+
$ sudo dnf install java-1.8.0-openjdk-devel
138+
```
139+
134140
2. Install Gradle:
135141
136-
```sh
137-
$ sudo dnf install gradle
138-
```
142+
```sh
143+
$ sudo dnf install gradle
144+
```
139145
140146
141147
You now are ready to get started with the Java track of Exercism!
@@ -183,20 +189,21 @@ To get started, see "[Running the Tests](http://exercism.io/languages/java/tests
183189
1. Download "**Binary only distribution**" from the [Gradle download page](https://gradle.org/gradle-download/).
184190
2. Unpack Gradle:
185191
186-
```sh
187-
$ mkdir ~/tools
188-
$ cd ~/tools
189-
$ unzip ~/Downloads/gradle-*-bin.zip
190-
$ cd gradle*
191-
```
192+
```sh
193+
$ mkdir ~/tools
194+
$ cd ~/tools
195+
$ unzip ~/Downloads/gradle-*-bin.zip
196+
$ cd gradle*
197+
```
198+
192199
3. Configure Gradle and add it to the path:
193200
194-
```sh
195-
$ cat << DONE >> ~/.bashrc
196-
export GRADLE_HOME=`pwd`
197-
export PATH=\$PATH:\$GRADLE_HOME/bin
198-
DONE
199-
```
201+
```sh
202+
$ cat << DONE >> ~/.bashrc
203+
export GRADLE_HOME=`pwd`
204+
export PATH=\$PATH:\$GRADLE_HOME/bin
205+
DONE
206+
```
200207
201208
202209
You now are ready to get started with the Java track of Exercism!
@@ -216,20 +223,21 @@ To get started, see "[Running the Tests](http://exercism.io/languages/java/tests
216223
1. Download "**Binary only distribution**" from the [Gradle download page](https://gradle.org/gradle-download/).
217224
2. Unpack Gradle:
218225
219-
```sh
220-
$ mkdir ~/tools
221-
$ cd ~/tools
222-
$ unzip ~/Downloads/gradle-*-bin.zip
223-
$ cd gradle*
224-
```
226+
```sh
227+
$ mkdir ~/tools
228+
$ cd ~/tools
229+
$ unzip ~/Downloads/gradle-*-bin.zip
230+
$ cd gradle*
231+
```
232+
225233
3. Configure Gradle and add it to the path:
226234
227-
```sh
228-
$ cat << DONE >> ~/.bashrc
229-
export GRADLE_HOME=`pwd`
230-
export PATH=\$PATH:\$GRADLE_HOME/bin
231-
DONE
232-
```
235+
```sh
236+
$ cat << DONE >> ~/.bashrc
237+
export GRADLE_HOME=`pwd`
238+
export PATH=\$PATH:\$GRADLE_HOME/bin
239+
DONE
240+
```
233241
234242
You now are ready to get started with the Java track of Exercism!
235243

docs/TESTS.md

Lines changed: 47 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,31 @@ Choose your operating system:
1313
1. Open a Command Prompt.
1414
2. Get the first exercise:
1515

16-
```batchfile
17-
C:\Users\JohnDoe>exercism fetch java
18-

19-
Not Submitted: 1 problem
20-
java (Hello World) C:\Users\JohnDoe\exercism\java\hello-world
21-
22-
New: 1 problem
23-
java (Hello World) C:\Users\JohnDoe\exercism\java\hello-world
24-
25-
unchanged: 0, updated: 0, new: 1
26-
16+
```batchfile
17+
C:\Users\JohnDoe>exercism fetch java
18+
19+
Not Submitted: 1 problem
20+
java (Hello World) C:\Users\JohnDoe\exercism\java\hello-world
21+
22+
New: 1 problem
23+
java (Hello World) C:\Users\JohnDoe\exercism\java\hello-world
24+
25+
unchanged: 0, updated: 0, new: 1
2726
```
27+
2828
3. Change directory into the exercism:
2929

30-
```batchfile
31-
C:\Users\JohnDoe>cd C:\Users\JohnDoe\exercism\java\hello-world
32-
```
30+
```batchfile
31+
C:\Users\JohnDoe>cd C:\Users\JohnDoe\exercism\java\hello-world
32+
```
3333
3434
4. Run the tests:
3535
36-
```batchfile
37-
C:\Users\JohnDoe>gradle test
38-
```
36+
```batchfile
37+
C:\Users\JohnDoe>gradle test
38+
```
3939
*(Don't worry about the tests failing, at first, this is how you begin each exercise.)*
40+
4041
5. Solve the exercise. Find and work through the `TUTORIAL.md` guide ([view on GitHub](https://github.com/exercism/java/blob/master/exercises/hello-world/TUTORIAL.md)).
4142
4243
@@ -50,26 +51,28 @@ If you get stuck, at any point, don't forget to reach out for [help](http://exer
5051
5152
1. In the terminal window, get the first exercise:
5253
53-
```
54-
$ exercism fetch java
54+
```
55+
$ exercism fetch java
5556
56-
New: 1 problem
57-
Java (Etl) /Users/johndoe/exercism/java/hello-world
57+
New: 1 problem
58+
Java (Etl) /Users/johndoe/exercism/java/hello-world
5859
59-
unchanged: 0, updated: 0, new: 1
60+
unchanged: 0, updated: 0, new: 1
61+
```
6062
61-
```
6263
2. Change directory into the exercise:
6364
64-
```
65-
$ cd /Users/johndoe/exercism/java/hello-world
66-
```
65+
```
66+
$ cd /Users/johndoe/exercism/java/hello-world
67+
```
68+
6769
3. Run the tests:
6870
69-
```
70-
$ gradle test
71-
```
71+
```
72+
$ gradle test
73+
```
7274
*(Don't worry about the tests failing, at first, this is how you begin each exercise.)*
75+
7376
4. Solve the exercise. Find and work through the `TUTORIAL.md` guide ([view on GitHub](https://github.com/exercism/java/blob/master/exercises/hello-world/TUTORIAL.md)).
7477
7578
Good luck! Have fun!
@@ -82,26 +85,29 @@ If you get stuck, at any point, don't forget to reach out for [help](http://exer
8285
8386
1. In the terminal window, get the first exercise:
8487
85-
```
86-
$ exercism fetch java
88+
```
89+
$ exercism fetch java
8790
88-
New: 1 problem
89-
Java (Etl) /home/johndoe/exercism/java/hello-world
91+
New: 1 problem
92+
Java (Etl) /home/johndoe/exercism/java/hello-world
9093
91-
unchanged: 0, updated: 0, new: 1
94+
unchanged: 0, updated: 0, new: 1
95+
96+
```
9297
93-
```
9498
2. Change directory into the exercise:
9599
96-
```
97-
$ cd /home/johndoe/exercism/java/hello-world
98-
```
100+
```
101+
$ cd /home/johndoe/exercism/java/hello-world
102+
```
103+
99104
3. Run the tests:
100105
101-
```
102-
$ gradle test
103-
```
106+
```
107+
$ gradle test
108+
```
104109
*(Don't worry about the tests failing, at first, this is how you begin each exercise.)*
110+
105111
4. Solve the exercise. Find and work through the `TUTORIAL.md` guide ([view on GitHub](https://github.com/exercism/java/blob/master/exercises/hello-world/TUTORIAL.md)).
106112
107113
Good luck! Have fun!

0 commit comments

Comments
 (0)
X Tutup