/ - mediawiki/extensions/GoogleDocCreator - Gitiles
tree: 191b73160a3449612f6faff4da0e2d7a5ac24159 [path history] [tgz]
  1. i18n/
  2. special/
  3. .eslintrc.json
  4. .gitignore
  5. .gitreview
  6. .phpcs.xml
  7. composer.json
  8. COPYING
  9. extension.json
  10. GoogleDocCreator.alias.php
  11. Gruntfile.js
  12. package-lock.json
  13. package.json
  14. README.md
README.md

GoogleDocCreator

Creates a Google Doc in your Drive and embeds it to a wiki page

Installation

Download API credentials from https://developers.google.com/drive/api/v3/quickstart/php

Set the path to your credentials.json file:

$wgGoogleApiClientCredentialsPath = "$IP/extensions/GoogleDocCreator/credentials.json";

Download this repo on your extensions folder

Add the following on your LocalSettings.php:

wfLoadExtension( 'GoogleDocCreator' );

Use composer to install dependencies. Run the following command from your main MediaWiki folder:

composer update

Usage

Visit the special page Special:GoogleDocCreator on your wiki. You must be logged in as a sysop user.