Skip to content

Commit 50f4b3a

Browse files
authored
Merge pull request #5742 from mpilgrem/msysDocFix
Fix code blocks not rendering
2 parents 79a6ef0 + 254eb6a commit 50f4b3a

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

doc/maintainers/msys.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ the steps required to upgrade the MSYS2 version used by Stack.
2626
MSYS2, in PowerShell and located in a folder with write permissions (so the `.tar.xz` file can be created):
2727

2828
```
29-
> stack exec -- pacman -S tar
30-
> stack exec -- tar cJf msys2-YYYYMMDD-x86_64.tar.xz C:\msys64
29+
stack exec -- pacman -S tar
30+
31+
stack exec -- tar cJf msys2-YYYYMMDD-x86_64.tar.xz C:\msys64
3132
```
3233
3334
4. Create a new release tagged and named `msys2-YYYYMMDD` in the `master`
@@ -38,7 +39,7 @@ the steps required to upgrade the MSYS2 version used by Stack.
3839
file, to switch over to using the newly uploaded files. For example
3940
(extract):
4041
41-
~~~yaml
42+
```
4243
# For upgrade instructions, see: https://github.com/commercialhaskell/stack/blob/stable/doc/maintainers/msys.md
4344
msys2:
4445
windows32:
@@ -51,15 +52,15 @@ the steps required to upgrade the MSYS2 version used by Stack.
5152
url: "https://github.com/commercialhaskell/stackage-content/releases/download/msys2-20220503/msys2-20220503-x86_64.tar.xz"
5253
content-length: 93835868
5354
sha256: c918f66e984f70add313ee3a5c5b101132cd93d5a3f8e3555e129e2d3dcb3718
54-
~~~
55+
```
5556
5657
The `content-length:` key's value is the size of the file in bytes. It can
5758
be obtained from the `Length` field of the `dir` command. The `sha256:`
5859
key's value can be obtained from the command (in PowerShell):
5960
60-
~~~
61-
(Get-FileHash msys2-YYYYMMDD-x86_64.tar.xz -Algorithm SHA256).Hash.ToLower()
62-
~~~
61+
```
62+
(Get-FileHash msys2-YYYYMMDD-x86_64.tar.xz -Algorithm SHA256).Hash.ToLower()
63+
```
6364
6465
The `sha256:` key only accepts lowercase hash results as values.
6566
@@ -71,9 +72,9 @@ the steps required to upgrade the MSYS2 version used by Stack.
7172
7273
* executing the command:
7374
74-
~~~
75-
> stack setup --setup-info-yaml <path to local copy of stack-setup-2.yaml>
76-
~~~
75+
```
76+
stack setup --setup-info-yaml <path to local copy of stack-setup-2.yaml>
77+
```
7778
7879
If all is well, the command should proceed to download the updated version
7980
of MSYS2 that has been specified.

0 commit comments

Comments
 (0)