Skip to content

Commit

Permalink
Refine howto
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Oct 13, 2024
1 parent 9465c0e commit 2def47e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions en/contributing/how-to-improve-the-help-page.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,5 @@ In case GitBook was fixed, with some command line magic, this could be solved:
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.
2. Repeat for `gif` instead of `png`.
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.
You can also do manually in VSCode using `( \(\d\))+.png` as RegEx.
4. Repeat for `gif` instead of `png`.

0 comments on commit 2def47e

Please sign in to comment.