gatewayd-io / docs

GatewayD docs
https://docs.gatewayd.io/
GNU Affero General Public License v3.0
14 stars 6 forks source link

Generate timestamps on pre-commit #58

Closed mostafa closed 5 months ago

mostafa commented 5 months ago

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.

vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 1, 2024 9:51am