Skip to content

Commit 4c928dc

Browse files
authored
Move preformatted code into their own spans
Having it on the <details> tag would cause the <summary> tag to not be interpreted.
1 parent 92b1b64 commit 4c928dc

File tree

1 file changed

+5
-4
lines changed
  • docs/mscs/adjusting-world-server-properties

1 file changed

+5
-4
lines changed

docs/mscs/adjusting-world-server-properties/forge.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,15 @@ sed -i "s|\"\$@|--nogui &|g" run.sh
112112
sed -i "s|libraries|$(pwd)/libraries|g" libraries/net/minecraftforge/forge/*/unix_args.txt
113113
```
114114

115-
<details markdown='span'>
115+
<details>
116116
<summary>Explanation of the sed commands</summary>
117117

118-
`sed -i "\|@[^\"]|s|@|@$(pwd)/|" run.sh`: This matches all occurences of `@` that aren't followed by `"` and adds the current directory followed by a / to it (or rather, replaces the `@` with an `@` followed by the current directory).
119118

120-
`sed -i "s|\"\$@|--nogui &|g" run.sh`: This adds `--nogui ` in front of `"$@`, with `&` being the matched pattern.
119+
<span markdown='span'>`sed -i "\|@[^\"]|s|@|@$(pwd)/|" run.sh`</span>: This matches all occurences of `@` that aren't followed by `"` and adds the current directory followed by a / to it (or rather, replaces the `@` with an `@` followed by the current directory).
121120

122-
`sed -i "s|libraries|$(pwd)/libraries|g" libraries/net/minecraftforge/forge/*/unix_args.txt`: This adds the current path to all occurences of the word libraries in the unix_args.txt file. Because the directory contains the forge version (for example `1.17.1-37.1.1`), `*` is used as a wildcard.
121+
<span markdown='span'>`sed -i "s|\"\$@|--nogui &|g" run.sh`</span>: This adds `--nogui ` in front of `"$@`, with `&` being the matched pattern.
122+
123+
<span markdown='span'>`sed -i "s|libraries|$(pwd)/libraries|g" libraries/net/minecraftforge/forge/*/unix_args.txt`</span>: This adds the current path to all occurences of the word libraries in the unix_args.txt file. Because the directory contains the forge version (for example `1.17.1-37.1.1`), `*` is used as a wildcard.
123124

124125
</details>
125126
<br>

0 commit comments

Comments
 (0)