Published on

Export to Sanity from Google Docs

A while back the Sanity folks had a poll on their Twitter account asking where people start typing when they write content for the web. One-quarter of the respondents answered that they use Google Docs.

(See the original tweet)

Needless to say that we agree with the 27% of people who write in Google Docs as we have previously blogged about why you should write your next blog post in Google Docs.

The challenge comes in when you are trying to get the content from Google Docs into Sanity. Sanity does a good job when you copy and paste text content from Google Docs into the Sanity block editor, but it falls short once you start using images.

Thankfully, Cloudpress now supports Sanity which makes this process much easier. Cloudpress will publish all your text content correctly formatted to Sanity and will even upload your images and link them correctly in your content on Sanity.

Let’s give you a quick rundown of how to publish from Google Docs to Sanity.

Linking your Sanity account

The first thing you need to do is to link your Sanity account. You can do this by going to the Connections section of the Cloudpress Dashboard and selecting the Link a Sanity account option.

This will walk you through the process of linking your Sanity account. You can find a step-by-step guide of linking your account in our documentation on connecting a Sanity account.

Publishing your content

Once you have linked your account, you can publish the content from Google Docs to Sanity. This is now easier than ever with our Google Docs add-on.

Once you have installed and configured our Google Docs add-on, you can go to the Add-ons menu inside your Google Doc and select the Cloudpress > Publish option.

The Publish with Cloudpress sidebar will open where you will see your previously linked Sanity account.

Click on the Publish button next to your Sanity account to start publishing the document to Sanity. Once the document has been published it will be available in Sanity Studio where you can complete the editing process by supplying values for the other fields and publish the content.

A few things to note:

  1. The time taken to publish a document is highly dependent on the actual document itself. A plain text document will publish almost instantaneously, whereas one with many images will take longer as it is the uploading of the images that take the most time.
  2. You can republish content at any time. In cases where you republish a document, Cloudpress will only update the content of the body field for the previously created Sanity document. I will preserve changes to all other fields which you have edited directly inside Sanity Studio.
  3. You do not have to use our Google Docs Add-on. You can also publish content from the Cloudpress dashboard.

For more information please refer to the following documentation:

Jerrie Pelser
Founder and CEO of Cloudpress. I understand many of the frustrations of creating content in a collaborative environment and strive to make the content publishing workflow for customers as seamless as possible.