Google Docs add-on to help authoring ArchieML documents.
- Install add-on: https://workspace.google.com/u/0/marketplace/app/owid_gdocs_addon/1057307484625
- Open a Google Doc with ArchieML content
- Extensions > Our World in Data > Format ArchieML
This repo uses clasp to sync code with scripts.google.com.
- Clone this repository
npm i
- Enable the Google Apps Script API: https://script.google.com/home/usersettings
- Login to clasp:
npx clasp login
npm run sidebarDev
to start the local Vite dev server. This is helpful for quickly iterating on the visual components of the sidebar. Remote calls to Google Apps Script functions (e.g.format()
) will not work.
npx clasp open
to open the script in the browser- Click Deploy > Test Deployments
- Select Version: "Latest code", Enabled: "true"
- Click "Execute" to open the sample document with the extension in its HEAD version
npm run dev
to start the sidebar Vite build watcher and upload local changes to scripts.google.com (HEAD deployment, doesn't impact end users).
npx clasp push
(this runs automatically withnpm run dev
so you generally don't need it)npx clasp deploy
(make a note of the version number)- Enter the new version number in "Docs Add-on script version" on the App Configuration page of the Google Workspace Marketplace SDK.
- Hit "Save"
- Apps Script: edit in browser
- Google Cloud Platform: owid-gdocs-addon project