This PR updates the old generate_last_modified_data.sh to be executed as a pre-commit hook when committing a change that involves doc pages. The script is updated to only update the timestamp on files that has actually been changed and not all the files and since it runs as a pre-commit hook (if enabled), it'll add the changes to the same commit, thus preventing unnecessary extra commits for modification of the last date and time field in the frontmatter.
This PR updates the old
generate_last_modified_data.sh
to be executed as a pre-commit hook when committing a change that involves doc pages. The script is updated to only update the timestamp on files that has actually been changed and not all the files and since it runs as a pre-commit hook (if enabled), it'll add the changes to the same commit, thus preventing unnecessary extra commits for modification of the last date and time field in the frontmatter.