/gitbook-summary

Serverless script to parse my gitbook SUMMARY.md to create a page for a "Table of Contents"

Primary LanguageTypeScript

The purpose of this repository is to update a file in my GitHub account based on a git push.

It was also an interesting way to learn more about GitHub webhooks.

Update locally

sls invoke local -s prod -r ap-southeast-1 --function forceUpdate --data '{"owner":"aizatto","repo":"gitbook-public"}'

Update remotely

aws lambda invoke --function-name gitbook-summary-prod-forceUpdate --payload '{"owner":"aizatto","repo":"gitbook-public"}' /dev/stdout

Deploy

sls deploy -s prod -r ap-southeast-1