Skip to content

A FoundryVTT module that allows to link a journal to Google Documents.

License

Notifications You must be signed in to change notification settings

TooPick/gdoc-journals-foundry-vtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GDoc Journals - Sync a journal with a Google Document

All Downloads GitHub release (latest SemVer)

GDoc Journals allows you to link a journal to one or more public Google Document. Each document will be linked to one Journal Page and you only have to press one button to synchronize it with your Google Document. Prepare all your campaign documents anywhere with Google Drive and press one button in Foundry to synchronize and be ready to play.

Available in English and French

How to use it

  1. Make your Google Document public by clicking on the "Share" button on the top right of the page. 01
  2. Select "Anyone with the link" and "Done". 02
  3. Copy the url of the document. 03
  4. In Foundry (with the module enabled) open the journal you want to sync and click on "Gdoc Journals" on the top of the window. 04
  5. Click on "Add a new link". 05
  6. Paste the "url" in the field, click pressing ctrl+v. 06
  7. Update ! 07
  8. A new page will be created with your document content. Each time you want to update the journal, you only have to press the update button "Update". It's possible to add any number of links. A new page will be created for each one, and the "Update" button will sync every link at once. 08

Update all at once

This button on the journal tab will search and update all journals with GDoc links.

09

How it works

This module uses my own API that convert a Google Document link to HTML code. The API uses the GoogleDriveAPI (to export the doc to a docx file and get his title) and mammoth.js library (to convert the file into HTML code).

You can use it for free like this :

https://gdoc2html.too-pixel.com/getAndConvert?url=<public-google-document-url>

After the module calls the API, the HTML code is put into a JournalPage and will refresh it each time you synchronize.

About

A FoundryVTT module that allows to link a journal to Google Documents.

Resources

License

Stars

Watchers

Forks

Packages

No packages published