I have been looking for a static website generator (SSG) for converting an Obsidian Vault to HTML so I can more easily generate content and host it online. My first evaluation was Quartz SSG with Obsidian. I also came across an obsidian plugin called WebPage Html Export also on GitHub and don't miss the Documentation and I will review some details here. I just installed from Obsidian ignoring the manual and BETA installations.
You may want to educate yourself and consider Obsidian Plugins Security Considerations before proceeding. The company reportedly does take efforts to review plugins. I am evaluating it and I am quite cautious but there is no guarantee of safety here.
This is an incredibly simple plugin that works very well. No changes were required to my vault in order for it to work. Though I already had pages titles index, so it may have inherited some things automatically from trying out Quartz. Essentially, all I did was
- Install the Plugin: in Obsidian click settings > Community Plugins > Turn Off Restricted Mode> Browse community plugins > Search for: "Webpage HTML Export" > Click to select > Then click install
- Enable the plugin Back in the settings > Community Plugins > at the bottom there is "installed plugins". I had to toggle the plugin on to enable it.
- Add Index This is technically not required unless you are hosting on a website but I wanted to include it here as a step since many will want to host online. Just create an new page called "index" at the top level of your Vault and it will become you website home page. Give it a logo and some flair.
- export vault. A new icon appeared on the left hand pane. That bottom icon that looks like a folder with an up arrow. Then I clicked "Select All" and gave it an export location on disk.
- Open the Website from Disk These steps generated a fully functional website to a folder on my local file system I could view. I simply rt-click on any of the files in File Manager (Nemo) to open in a Browser of choice.
Yes, it really is that simple.
When exporting I did not actually want everything. With the HTML Documents option at least attachment folders are not needed.
I think the main setting I have found so far to be aware of is are:
draft: true
or similar to ignore when publishing. In this plugin, you choose items in the export dialog instead. It seems to ignore the draft property. Unfortunately, they do not stay checked and you have to figure this out each time. If you want to just include everything it's easy. So maybe work out of a WIP vault and just copy things over.Essentially we just change a few export settings, export to a folder, and copy the output files to your online hosting provider. I am using GitLab code repo to publish my site to render.com to accomplish this.
I did this a long time ago and it gets a bit deep. You will need a code management solution github, gitlab, bitbucket, ... and a hosting provider: Github Pages , render.com, vercel, CloudFlare Pages Netlify
You MUST follow each vendors docs. The steps will be something like this:
In the code management solution
In the hosting provider:
My Render.com settings for WebPage Html Export plugin
Do a deployment and see if you can your HTML file. Once you can see that you know your site is working. You may want to try making a change to the html and practicing git to "add" and "commit" and "push" changes to your repo from the command line.
If you are using gitlab or render or another site that requires a report go ahead and clone your repo into a folder. We will use it for the export folder. I had my old website files in mine so I deleted all the existing files but left the .git folder intact. ```
git status
git add -u
git commit -m "Clear out repo to be empty in prep for new site"
git status
# I'll push later with the new files. Also safer if auto-deploy is on.
If you are going to host on a webserver, they require index.html files. So at the top level of your vault we need to create a file called index
. Which on the file-system is index.md. This will get converted to the required index html file during export. I recommend you set "title" Property in the file. Mins is set to
Go back into the Export > Settings and lets change some things.
After the above setting changes, choose your folder and export. If you are using a repo be sure you select the output to go to your local repo folder.
If you aren't using a repo, you likely just use a web upload interface for your provide and upload the files likely to the root of your provider. There are a lot of potential gotachas here. Does your provider use index.html? Can you just delete everything in the folder before you upload? Most likely if you do not delete everything and just upload the folder the index.html will overwrite and the rest will work. It's hard to give real guidance here as each provider may have different requirements so it is best to read the instructions.
If you are using a repo like me you need to run the git commands to update the repo and push it to the remote. In my case I deleted all of the previous files except got .git folder an
git status
git add --all
git commit -m "Entire redesign using WebPage Export Plungin for Obisidian"
git status
git push -u origin main # some use a master branch, mine uses main
I use manual deployments so I select "Deploy latest commit" on branch main.
Say you are using one of the free Static Website hosting and you do not have your own domain name. They will usually give you a URL for your site to use. A common example is
There are a ton of providers out there and each has thier own instructions. Essentially the steps are the same. Either you use a repo or you copy the files to deploy.
Overall I really like this plugin. It is nice and simple and should work with almost any vault with miniman requiring change. I think the only required change is to add an index. This is amazing for non-technical people to avoid the cumbersome setup and integration weirdness that is setting up a development environment. The shortness of this post shows how smoothly the evaluation went. If you are looking for an easy way to author content from a standard vault and don;t need many bells and whistles, I would definitely give this one a try.