FEATUREDGeneral

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

  1. Create your Google doc 
  2. Make sure your document is style compliance. (For instance, do not use bold for headings, but  headings style.)
  3. Now go to the menu and follow Extensions>add-ons >Get add-ons. Then find “Docs to Markdown”
  4. After successfully installing Docs to markdown, you should be able to see it in the add-ons menu. Click on the convert
  5. After completing the work, you have two options, markdown or HTML. Select markdown for Github, or HTML for your website.
  6. A code will be generate, in the top there are list of errors, warnings, etc. The rest is the actual content. Copy all.
  7. Paste the content in a <file_name>.md in your Github, or a HTML file.
  8. 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.

4 thoughts on “How to convert Google docs to Github or own website

  • Ann Ming

    This is actually really handy since I always was looking for a method to record my google docs in my GitHub repo.

    Reply
  • sanaz

    great job🙏🏻👌🏻

    Reply
  • Fred Lim

    That actually saved my day. Would be nice to see if this also available for google slides.

    Reply
  • Janice marry

    The best explanation. I was looking for some way to this task, but there were not any.
    Thanks!

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses User Verification plugin to reduce spam. See how your comment data is processed.