How to convert Google docs to Github or own website
There is no direct way to quickly convert a Google Doc into Github or your own website. However, you can convert your Google doc to markdown or HTML and then use the result in your Github or own website.
There is a Google Docs add on called Docs to Markdown that make your life a lot easier. It’s easy to install, completely free. and converts perfectly every time. These following steps need to be taken
- Create your Google doc
- Make sure your document is style compliance. (For instance, do not use bold for headings, but headings style.)
- Now go to the menu and follow Extensions>add-ons >Get add-ons. Then find “Docs to Markdown”
- After successfully installing Docs to markdown, you should be able to see it in the add-ons menu. Click on the convert
- After completing the work, you have two options, markdown or HTML. Select markdown for Github, or HTML for your website.
- A code will be generate, in the top there are list of errors, warnings, etc. The rest is the actual content. Copy all.
- Paste the content in a <file_name>.md in your Github, or a HTML file.
- Note that if your doc has image embedded, you need to add the source images to the folder named images. To get this with the correct image name (image1, …), you can go to the menu and follow File>Download>web page. This will download a zip file which include all the images with the same structure for their names. You can upload the images folder to where you put your markdown or HTML.
This is actually really handy since I always was looking for a method to record my google docs in my GitHub repo.
great job🙏🏻👌🏻
That actually saved my day. Would be nice to see if this also available for google slides.
The best explanation. I was looking for some way to this task, but there were not any.
Thanks!