aizatto / gitbook-summary

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

Home Page:http://aizatto.gitbook.io/public/table-of-contents

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

http://aizatto.gitbook.io/public/table-of-contents


Languages

Language:TypeScript 95.9%Language:JavaScript 4.1%