Selaa lähdekoodia

Issue #151: Changed markdowns to have actual number to prevent them breaking when the lists include codefences.

Frida Tveit 9 vuotta sitten
vanhempi
commit
bb24b71ce0
2 muutettua tiedostoa jossa 28 lisäystä ja 28 poistoa
  1. 18
    18
      docs/INSTALLATION.md
  2. 10
    10
      docs/TESTS.md

+ 18
- 18
docs/INSTALLATION.md Näytä tiedosto

27
    ```batchfile
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
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
    ```
29
    ```
30
--  Install the JDK:
30
+2.  Install the JDK:
31
 
31
 
32
    ```batchfile
32
    ```batchfile
33
    C:\Windows\system32> choco install jdk8
33
    C:\Windows\system32> choco install jdk8
35
    C:\Windows\system32> refreshenv
35
    C:\Windows\system32> refreshenv
36
    ...
36
    ...
37
    ```
37
    ```
38
--  Install Gradle:
38
+3.  Install Gradle:
39
 
39
 
40
    ```batchfile
40
    ```batchfile
41
    C:\Windows\system32>choco install gradle
41
    C:\Windows\system32>choco install gradle
61
    ```sh
61
    ```sh
62
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
62
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
63
    ```
63
    ```
64
-- Tap the [Homebrew Cask](https://caskroom.github.io/) — this allows us to install pre-built binaries like the JDK.
64
+2. Tap the [Homebrew Cask](https://caskroom.github.io/) — this allows us to install pre-built binaries like the JDK.
65
 
65
 
66
    ```
66
    ```
67
    $ brew tap caskroom/cask
67
    $ brew tap caskroom/cask
68
    ```
68
    ```
69
--  Install the JDK:
69
+3.  Install the JDK:
70
 
70
 
71
    ```
71
    ```
72
    $ brew cask install java
72
    $ brew cask install java
73
    ```
73
    ```
74
--  Install Gradle:
74
+4.  Install Gradle:
75
 
75
 
76
    ```
76
    ```
77
    $ brew install gradle
77
    $ brew install gradle
105
    $ sudo apt-get update
105
    $ sudo apt-get update
106
    $ sudo apt-get install oracle-java8-installer
106
    $ sudo apt-get install oracle-java8-installer
107
    ```
107
    ```
108
--  Install Gradle:
108
+2. Install Gradle:
109
 
109
 
110
    ```sh
110
    ```sh
111
    $ sudo add-apt-repository ppa:cwchien/gradle
111
    $ sudo add-apt-repository ppa:cwchien/gradle
130
    ```sh
130
    ```sh
131
    $ sudo dnf install java-1.8.0-openjdk-devel
131
    $ sudo dnf install java-1.8.0-openjdk-devel
132
    ```
132
    ```
133
--  Install Gradle:
133
+2. Install Gradle:
134
 
134
 
135
    ```sh
135
    ```sh
136
    $ sudo dnf install gradle
136
    $ sudo dnf install gradle
158
 1. Install the JDK:
158
 1. Install the JDK:
159
    1. Download "**Java Platform (JDK)**" from [Oracle OTN](http://www.oracle.com/technetwork/java/javase/downloads/index.html).
159
    1. Download "**Java Platform (JDK)**" from [Oracle OTN](http://www.oracle.com/technetwork/java/javase/downloads/index.html).
160
    -  Run the installer, using all the defaults.
160
    -  Run the installer, using all the defaults.
161
--  Install Gradle:
161
+2. Install Gradle:
162
    - Download "**Binary only distribution**" from the [Gradle download page](https://gradle.org/gradle-download/).
162
    - Download "**Binary only distribution**" from the [Gradle download page](https://gradle.org/gradle-download/).
163
    - Unzip the archive.  We recommend a place like `C:\Users\JohnDoe\Tools`.
163
    - Unzip the archive.  We recommend a place like `C:\Users\JohnDoe\Tools`.
164
    - Add a new system environment variable named `GRADLE_HOME` and set it to the path you just created (e.g. `C:\Users\JohnDoe\Tools\gradle-x.y`).
164
    - Add a new system environment variable named `GRADLE_HOME` and set it to the path you just created (e.g. `C:\Users\JohnDoe\Tools\gradle-x.y`).
177
 
177
 
178
 1. Install the JDK:
178
 1. Install the JDK:
179
    1. Download "**Java Platform (JDK)**" from [Oracle OTN](http://www.oracle.com/technetwork/java/javase/downloads/index.html).
179
    1. Download "**Java Platform (JDK)**" from [Oracle OTN](http://www.oracle.com/technetwork/java/javase/downloads/index.html).
180
-   -  Run the installer, using all the defaults.
181
--  Install Gradle:
182
-   - Download "**Binary only distribution**" from the [Gradle download page](https://gradle.org/gradle-download/).
183
-   -  Unpack Gradle:
180
+   2. Run the installer, using all the defaults.
181
+2. Install Gradle:
182
+   1. Download "**Binary only distribution**" from the [Gradle download page](https://gradle.org/gradle-download/).
183
+   2. Unpack Gradle:
184
 
184
 
185
       ```sh
185
       ```sh
186
       $ mkdir ~/tools
186
       $ mkdir ~/tools
188
       $ unzip ~/Downloads/gradle-*-bin.zip
188
       $ unzip ~/Downloads/gradle-*-bin.zip
189
       $ cd gradle*
189
       $ cd gradle*
190
       ```
190
       ```
191
-   -  Configure Gradle and add it to the path:
191
+   3. Configure Gradle and add it to the path:
192
 
192
 
193
       ```sh
193
       ```sh
194
       $ cat << DONE >> ~/.bashrc
194
       $ cat << DONE >> ~/.bashrc
210
 
210
 
211
 1. Install the JDK:
211
 1. Install the JDK:
212
    1. Download "**Java Platform (JDK)**" from [Oracle OTN](http://www.oracle.com/technetwork/java/javase/downloads/index.html).
212
    1. Download "**Java Platform (JDK)**" from [Oracle OTN](http://www.oracle.com/technetwork/java/javase/downloads/index.html).
213
-   -  Run the installer, using all the defaults.
214
--  Install Gradle:
215
-   - Download "**Binary only distribution**" from the [Gradle download page](https://gradle.org/gradle-download/).
216
-   -  Unpack Gradle:
213
+   2. Run the installer, using all the defaults.
214
+2. Install Gradle:
215
+   1. Download "**Binary only distribution**" from the [Gradle download page](https://gradle.org/gradle-download/).
216
+   2. Unpack Gradle:
217
 
217
 
218
       ```sh
218
       ```sh
219
       $ mkdir ~/tools
219
       $ mkdir ~/tools
221
       $ unzip ~/Downloads/gradle-*-bin.zip
221
       $ unzip ~/Downloads/gradle-*-bin.zip
222
       $ cd gradle*
222
       $ cd gradle*
223
       ```
223
       ```
224
-   -  Configure Gradle and add it to the path:
224
+   3. Configure Gradle and add it to the path:
225
 
225
 
226
       ```sh
226
       ```sh
227
       $ cat << DONE >> ~/.bashrc
227
       $ cat << DONE >> ~/.bashrc

+ 10
- 10
docs/TESTS.md Näytä tiedosto

11
 # Windows
11
 # Windows
12
 
12
 
13
 1. Open a Command Prompt.
13
 1. Open a Command Prompt.
14
--  Get the first exercise:
14
+2. Get the first exercise:
15
 
15
 
16
    ```batchfile
16
    ```batchfile
17
    C:\Users\JohnDoe>exercism fetch java
17
    C:\Users\JohnDoe>exercism fetch java
25
    unchanged: 0, updated: 0, new: 1
25
    unchanged: 0, updated: 0, new: 1
26
    
26
    
27
    ```
27
    ```
28
--  Change directory into the exercism:
28
+3. Change directory into the exercism:
29
 
29
 
30
    ```batchfile
30
    ```batchfile
31
    C:\Users\JohnDoe>cd C:\Users\JohnDoe\exercism\java\hello-world
31
    C:\Users\JohnDoe>cd C:\Users\JohnDoe\exercism\java\hello-world
32
    ```
32
    ```
33
    
33
    
34
--  Run the tests:
34
+4. Run the tests:
35
 
35
 
36
    ```batchfile
36
    ```batchfile
37
    C:\Users\JohnDoe>gradle test
37
    C:\Users\JohnDoe>gradle test
38
    ```
38
    ```
39
    *(Don't worry about the tests failing, at first, this is how you begin each exercise.)*
39
    *(Don't worry about the tests failing, at first, this is how you begin each exercise.)*
40
-- Solve the exercise.  Find and work through the `GETTING_STARTED.md` guide ([view on GitHub](https://github.com/exercism/xjava/blob/master/exercises/hello-world/GETTING_STARTED.md)).
40
+5. Solve the exercise.  Find and work through the `GETTING_STARTED.md` guide ([view on GitHub](https://github.com/exercism/xjava/blob/master/exercises/hello-world/GETTING_STARTED.md)).
41
 
41
 
42
 
42
 
43
 Good luck!  Have fun!
43
 Good luck!  Have fun!
59
    unchanged: 0, updated: 0, new: 1
59
    unchanged: 0, updated: 0, new: 1
60
 
60
 
61
   ```
61
   ```
62
-- Change directory into the exercise:
62
+2. Change directory into the exercise:
63
 
63
 
64
    ```
64
    ```
65
    $ cd /Users/johndoe/exercism/java/hello-world
65
    $ cd /Users/johndoe/exercism/java/hello-world
66
    ```
66
    ```
67
-- Run the tests:
67
+3. Run the tests:
68
 
68
 
69
   ```
69
   ```
70
   $ gradle test
70
   $ gradle test
71
   ```
71
   ```
72
    *(Don't worry about the tests failing, at first, this is how you begin each exercise.)*
72
    *(Don't worry about the tests failing, at first, this is how you begin each exercise.)*
73
-- Solve the exercise.  Find and work through the `GETTING_STARTED.md` guide ([view on GitHub](https://github.com/exercism/xjava/blob/master/exercises/hello-world/GETTING_STARTED.md)).
73
+4. Solve the exercise.  Find and work through the `GETTING_STARTED.md` guide ([view on GitHub](https://github.com/exercism/xjava/blob/master/exercises/hello-world/GETTING_STARTED.md)).
74
 
74
 
75
 Good luck!  Have fun!
75
 Good luck!  Have fun!
76
 
76
 
91
    unchanged: 0, updated: 0, new: 1
91
    unchanged: 0, updated: 0, new: 1
92
 
92
 
93
   ```
93
   ```
94
-- Change directory into the exercise:
94
+2. Change directory into the exercise:
95
 
95
 
96
    ```
96
    ```
97
    $ cd /home/johndoe/exercism/java/hello-world
97
    $ cd /home/johndoe/exercism/java/hello-world
98
    ```
98
    ```
99
-- Run the tests:
99
+3. Run the tests:
100
 
100
 
101
   ```
101
   ```
102
   $ gradle test
102
   $ gradle test
103
   ```
103
   ```
104
    *(Don't worry about the tests failing, at first, this is how you begin each exercise.)*
104
    *(Don't worry about the tests failing, at first, this is how you begin each exercise.)*
105
-- Solve the exercise.  Find and work through the `GETTING_STARTED.md` guide ([view on GitHub](https://github.com/exercism/xjava/blob/master/exercises/hello-world/GETTING_STARTED.md)).
105
+4. Solve the exercise.  Find and work through the `GETTING_STARTED.md` guide ([view on GitHub](https://github.com/exercism/xjava/blob/master/exercises/hello-world/GETTING_STARTED.md)).
106
 
106
 
107
 Good luck!  Have fun!
107
 Good luck!  Have fun!
108
 
108