Skip to content

Commit 0e27d1c

Browse files
authored
*: place leading and trailing slashes in filepaths outside of placeholders (#17541)
1 parent c214ac6 commit 0e27d1c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+139
-139
lines changed

pages/common/acme.sh.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
77
- Issue a certificate using webroot mode:
88

9-
`acme.sh --issue {{[-d|--domain]}} {{example.com}} {{[-w|--webroot]}} {{/path/to/webroot}}`
9+
`acme.sh --issue {{[-d|--domain]}} {{example.com}} {{[-w|--webroot]}} /{{path/to/webroot}}`
1010

1111
- Issue a certificate for multiple domains using standalone mode using port 80:
1212

@@ -30,4 +30,4 @@
3030

3131
- Install certificate files into the specified locations (useful for automatic certificate renewal):
3232

33-
`acme.sh {{[-i|--install-cert]}} {{[-d|--domain]}} {{example.com}} --key-file {{/path/to/example.com.key}} --fullchain-file {{/path/to/example.com.cer}} --reloadcmd "{{systemctl force-reload nginx}}"`
33+
`acme.sh {{[-i|--install-cert]}} {{[-d|--domain]}} {{example.com}} --key-file /{{path/to/example.com.key}} --fullchain-file /{{path/to/example.com.cer}} --reloadcmd "{{systemctl force-reload nginx}}"`

pages/common/agate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
- Run and generate a private key and certificate:
77

8-
`agate --content {{path/to/content/}} --addr {{[::]:1965}} --addr {{0.0.0.0:1965}} --hostname {{example.com}} --lang {{en-US}}`
8+
`agate --content {{path/to/content}}/ --addr {{[::]:1965}} --addr {{0.0.0.0:1965}} --hostname {{example.com}} --lang {{en-US}}`
99

1010
- Run server:
1111

pages/common/archwiki-rs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717

1818
- Download a local copy of all ArchWiki pages into a specific directory:
1919

20-
`archwiki-rs local-wiki {{/path/to/local_wiki}} --format {{plain-text|markdown|html}}`
20+
`archwiki-rs local-wiki /{{path/to/local_wiki}} --format {{plain-text|markdown|html}}`

pages/common/aws-s3-ls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
- List all files in a path with a given prefix:
2323

24-
`aws s3 ls --recursive {{bucket_name}}/{{path/to/directory/}}{{prefix}}`
24+
`aws s3 ls --recursive {{bucket_name}}/{{path/to/directory}}/{{prefix}}`
2525

2626
- Display help:
2727

pages/common/blender.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
- Render the 10th frame of an animation as a single image, saved to an existing directory (absolute path):
1616

17-
`blender {{[-b|--background]}} {{path/to/file.blend}} {{[-o|--render-output]}} {{/path/to/output_directory}} {{[-f|--render-frame]}} {{10}}`
17+
`blender {{[-b|--background]}} {{path/to/file.blend}} {{[-o|--render-output]}} /{{path/to/output_directory}} {{[-f|--render-frame]}} {{10}}`
1818

1919
- Render the second last frame in an animation as a JPEG image, saved to an existing directory (relative path):
2020

pages/common/bzgrep.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@
2929

3030
- Search `stdin` for lines that do not match a pattern:
3131

32-
`cat {{/path/to/bz/compressed/file}} | bzgrep {{[-v|--invert-match]}} "{{search_pattern}}"`
32+
`cat {{path/to/bz/compressed/file}} | bzgrep {{[-v|--invert-match]}} "{{search_pattern}}"`

pages/common/crontab.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@
3333

3434
- Sample crontab entry, which runs a certain script at 02:30 every Friday:
3535

36-
`30 2 * * Fri {{/absolute/path/to/script.sh}}`
36+
`30 2 * * Fri /{{path/to/script.sh}}`

pages/common/docker-run.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
- Run command in a new container with bind mounted volumes:
2323

24-
`docker run {{[-v|--volume]}} {{/path/to/host_path}}:{{/path/to/container_path}} {{image}} {{command}}`
24+
`docker run {{[-v|--volume]}} /{{path/to/host_path}}:/{{path/to/container_path}} {{image}} {{command}}`
2525

2626
- Run command in a new container with published ports:
2727

pages/common/encfs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
77
- Initialize or mount an encrypted filesystem:
88

9-
`encfs {{/path/to/cipher_dir}} {{/path/to/mount_point}}`
9+
`encfs /{{path/to/cipher_dir}} /{{path/to/mount_point}}`
1010

1111
- Initialize an encrypted filesystem with standard settings:
1212

13-
`encfs --standard {{/path/to/cipher_dir}} {{/path/to/mount_point}}`
13+
`encfs --standard /{{path/to/cipher_dir}} /{{path/to/mount_point}}`
1414

1515
- Run encfs in the foreground instead of spawning a daemon:
1616

17-
`encfs -f {{/path/to/cipher_dir}} {{/path/to/mount_point}}`
17+
`encfs -f /{{path/to/cipher_dir}} /{{path/to/mount_point}}`
1818

1919
- Mount an encrypted snapshot of a plain directory:
2020

pages/common/ern.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
- Create an Electrode Native container:
1515

16-
`ern create-container --miniapps {{/path/to/miniapp_directory}} --platform {{ios|android}}`
16+
`ern create-container --miniapps /{{path/to/miniapp_directory}} --platform {{ios|android}}`
1717

1818
- Publish an Electrode Native container to a local Maven repository:
1919

0 commit comments

Comments
 (0)