At the moment, they've gotten rid of the ability to preview HTML files from the Drive interface, but you can still view or host HTML files that are in public folders as follows:
- Open the (publicly shared) folder you want to share from the Google Drive interface.
- Identify the folder URL in your address bar. It'll look something like
https://drive.google.com/?authuser=0#folders/ with "googledrive.com/host/"
- Your new URL will look something like this:
If you have an
index.html file, this link will take you to the live page, otherwise, you'll be taken to the folder's public HTML view.
If you want to view a specific file in the folder, you can add its filename to the end of the URL like this: http://www.googledrive.com/host/0B81vQexWOx6hRDVMQWZTekx4Umc/chromedock.html
These links will be publicly usable.
I created a bookmarklet to automate the process of finding the public links for files and folders. Feel free to create a new bookmark (call it something like "Host from Google Drive") and paste the following code in as the URL:
This is an updated version of the bookmarklet that works with Google Drive's new folder URL structure.
Once you have it bookmarked, just go to the folder you want the public URL for in Google Drive and click the bookmark.