GDoc Journals - Sync a journal with a Google Document
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
- Make your Google Document public by clicking on the "Share" button on the top right of the page.
- Select "Anyone with the link" and "Done".
- Copy the url of the document.
- In Foundry (with the module enabled) open the journal you want to sync and click on "Gdoc Journals" on the top of the window.
- Click on "Add a new link".
- Paste the "url" in the field, click pressing ctrl+v.
- Update !
- 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.
Update all at once
This button on the journal tab will search and update all journals with GDoc links.
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.