{"repo":"Automattic/google-docs-add-on","free":true,"listed":false,"github":"https://github.com/Automattic/google-docs-add-on","clone":"git clone https://github.com/Automattic/google-docs-add-on.git","description":"Publish to WordPress from Google Docs","language":"JavaScript","stars":168,"topics":["google-docs","google-apps-script","wordpress","wordpress-api"],"license":"GPL-3.0","category":"docs-static-sites","readme_excerpt":"Getting started The add-on lives in Google's Script Editor but, in keeping with best practices, this repo is the source of truth, and the script editor will be overwritten with local changes. Configuring This process needs to be performed once: 1. npm install to install all dependencies 5. Create a new apps script here: https://script.google.com 6. Get the script ID from the URL (everything between the /d/ and /edit - script.google.com/a/google.com/d/SCRIPT ID HERE/edit ) 2. Install clasp 7. 8. Create a new WordPress.com App: 1. Set the redirect URL to be https://script.google.com/macros/d/SCRIPT ID/usercallback 2. Make a note of the app client ID and client secret 9. In the app script, go to File and Project Properties 1. Select the Script properties tab 2. Add OauthClientId and set the value to your app 3. Add OauthClientSecret and set the value to your app Everything is now setup. Deploying npm run deploy This builds the dist directory and uses clasp to upload it to the add-on's script editor. Testing In the script editor choose \"Publish\" → \"Test as add-on…\" and then select a document to test with. That will open a new window with your document. You will then see your project in the Add-ons menu.","default_branch":null,"files":null,"tree":[],"storefront":"/r/Automattic","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Automattic/google-docs-add-on/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}