Skip to content

Commit 1a050b8

Browse files
committed
updated readme, readmes
1 parent 27633be commit 1a050b8

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
.idea
55
dist
66
node_modules
7-
package.json
87
photos/srcset/
98
photos/set1/
109
photos/set2/

README-TEMPLATE.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,20 @@ git config core.hooksPath .githooks
99

1010
## Features:
1111

12-
- There is a .gitignore file tailored to Python/HuggingFace projects.
12+
### .gitignore
1313

14-
- The project root directory contains a `.githooks/` directory inside which there is a pre-commit script intended to prevent committing any file larger than a certain size, for example, 10MB. If your commit is blocked by the pre-commit script:
15-
- Run `git reset [BIG_FILE_OR_DIRECTORY_NAME]`
16-
- Add the oversized file or directory to the `.gitignore` file.
14+
- The project has a .gitignore file tailored to Python/HuggingFace projects.
1715

1816
- To enable a `~/.gitignore_global` file for JetBrains (PyCharm, etc.) projects(or other projects), create the global gitignore file and configure git as follows:
1917

2018
```bash
2119
git config --global core.excludesfile ~/.gitignore_global
2220
```
2321

22+
### Precommit script prevents commits containing oversized files
23+
24+
- The Github repository template's project root directory contains a `.githooks/` directory inside which there is a pre-commit script intended to prevent committing any file larger than a certain size. GitHub recommends a maximum individual file size of 1MB, with a hard limit enforced at 100MB. Files exceeding 100MB will generally be blocked and require the use of Git Large File Storage (Git LFS) (at additional cost). (Removing large files from a commit can be tedious.)
25+
- The pre-commit script has a default maximum size of 10MB which you can change. (This is to prevent Github from choking on and blocking large files.) If your commit is blocked by the pre-commit script:
26+
- Run `git reset [BIG_FILE_OR_DIRECTORY_NAME]`
27+
- Add the oversized file or directory to the `.gitignore` file.
28+

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "react-photo-album-lightbox",
33
"description": "React Lightbox Photo Album",
44
"version": "0.1.0",
5-
"author": "John Kraus, based on work by Igor Danchenko",
5+
"author": "John Kraus, based on a Github repo by Igor Danchenko",
66
"license": "MIT",
77
"private": true,
88
"type": "module",

scripts/step00_create_srcsets.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
# script for creating srcset image copies
1+
# script for creating srcset image copies for upload to CDN
22

33
import step01_add_dimensions_to_original_image_names
44
import step02_create_resized_image_copies_for_srcset
55
import step03_copy_orig_image_rename_for_srcset
66
import step04_cleanup
77

8-
start='photos/input/' # dir must exist before running this code
9-
renamed='photos/work_in_process/'
10-
dest='photos/srcset/'
8+
start='photos/input/' # this dir must exist before running this code; put the to-be-processed photos here
9+
renamed='photos/work_in_process/' # temporary location for renamed version of original photo
10+
dest='photos/srcset/' # final output of photo srcset for upload to CDN; there should be nine versions of each photo here
1111
archives = 'photos/archives/'
12-
# renamed='/Users/blauerbock/workspaces/react-photo-album-main/examples/react-lightbox-photo-album/photos/renamed/'
13-
# dest='/Users/blauerbock/workspaces/react-photo-album-main/examples/react-lightbox-photo-album/photos/dest/'
1412

1513
if __name__ == "__main__":
1614
step01_add_dimensions_to_original_image_names.rename_images_add_dimensions(start, renamed)

0 commit comments

Comments
 (0)