Skip to content

Commit 2def47e

Browse files
committed
Refine howto
1 parent 9465c0e commit 2def47e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

en/contributing/how-to-improve-the-help-page.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,5 @@ In case GitBook was fixed, with some command line magic, this could be solved:
9797
1. Create a script renaming all images: `fd -e png -x bash -c "echo '{}' | sed 's/\([^(]*\)\(.*\).png/mv \"\\1\\2.png\" \"\\1.png\"/' | sed 's/ \.png/.png/'" | sort > fix-filenames.sh`. Execute in `en/.gitbook`. Otherwise, `fd` does not find any file.
9898
2. Repeat for `gif` instead of `png`.
9999
3. Create a script doing the renaming in all `.md` files: `fd -e md -x bash -c "echo sed -i '\"s/assets\/\([^%]*\)\(.*\).png/assets\/\\1.png/\"' {}" > fix-mds.sh`. Execute in the root repository.
100+
You can also do manually in VSCode using `( \(\d\))+.png` as RegEx.
100101
4. Repeat for `gif` instead of `png`.

0 commit comments

Comments
 (0)