updated README.md's

master
Bobby Wibowo 2 years ago
parent 0a19b025a0
commit 43a9a5babb
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF
  1. 3
      README.md
  2. 5
      scripts/README.md
  3. 3
      src/README.md

@ -97,13 +97,12 @@ $ node ./scripts/thumbs.js
Generate thumbnails.
Usage:
node scripts/thumbs.js <mode=1|2|3> [force=0|1] [verbose=0|1] [cfcache=0|1] [parallel]
node scripts/thumbs.js <mode=1|2|3> [force=0|1] [verbose=0|1] [cfcache=0|1]
mode : 1 = images only, 2 = videos only, 3 = both images and videos
force : 0 = no force (default), 1 = overwrite existing thumbnails
verbose : 0 = only print missing thumbs (default), 1 = print all, 2 = print nothing
cfcache : 0 = do not clear cloudflare cache (default), 1 = clear cloudflare cache
parallel: amount of thumbs to generate in parallel (not to be confused with multi-threading).
```
For example, if you only want to generate thumbnails for image files without overwriting existing ones, you can run `yarn thumbs 1`, or if you want to generate thumbnails for both image and video files, while also overwriting existsing ones, you can run `yarn thumbs 3 1`.

@ -53,15 +53,12 @@ $ node ./scripts/rebuild-hashes.js -h
Rebuild file hashes.
Usage:
node scripts/rebuild-hashes.js <mode=0|1|2> [parallel]
node scripts/rebuild-hashes.js <mode=0|1|2>
mode:
0 = Dry run (recalculate hashes, print them, but do NOT store to DB).
1 = Recalculate hashes and store to DB.
2 = Verbose (recalculate hashes, print them, and store to DB).
parallel:
Amount of uploads to hash in parallel (not to be confused with multi-threading).
```
## thumbs.js

@ -6,8 +6,7 @@ To bump the version, it's recommended to use use `yarn bump-versions`.
```none
$ yarn bump-versions
$ node ./scripts/bump-versions.js
$ node ./scripts/bump-versions.j
Bump version strings for client-side assets.
Usage:

Loading…
Cancel
Save