ADR logger
This is a Google Docs add-on that will help you log stuff to github. The use case is for ADR logging.
The UI is developed in Svelte because it is easy to use for building components.
Setup
- Ensure you have node & npm installed
- clone this repo
npm install
cd sidebar/ && npm install
Then go back to root cd ..
and proceed with the following steps.
Connect to Google Apps Script
- Log in and authenticate with your Google account:
npm run clasp:login
- Create a new standalone project:
npm run clasp:create
- Deploy the project:
npm run deploy
- Open the project:
npm run clasp:open
Test the add-on
Once you followed the steps above and have the Apps Script project open, the following steps explain how to test the add-on:
- Click Run, then Test as add-on...
- Click Select Doc and choose a document you want to use for testing.
- Click Save
- In the *Execute Saved Test" section that appeared at the top, select your document and click Test.
- With the document now open, navigate to Add-ons menu
This opens the Svelte sidebar.
Sidebar development
Navigate to the sidebar
folder and develop & test the application as you would any regular Svelte application, i.e. npm run dev
.
Demo
Watch the demo of how this add on works. The demo creates ADR into this repo