How I Built This Website
This website is powered by 2 Github Repository, namely,
- davzoku/leetcode-obsidian-frontend : The Next.js frontend hosted in Netlify
- davzoku/leetcode-obsidian-vault: The Obsidian Vault containing the Leetcode Solutions.
In fact, the setup is forked from matthewwong525/linked-blog-starter and matthewwong525/linked-blog-starter-md. It is also well-explained in this video link.
The Obsidian Git plugin is set up to push any changes in X minute intervals. This will trigger a Github Action workflow to combine the code from both repositories and build into a production build for hosting.
Matthew's implementation supports hosting on Vercel, while I prefer to host on Netlify. This results in a difference in the final deploy step in the publish.yml.
Otherwise, the remaining changes are mostly aesthetic changes and support for Google Analytics and Progressive Web App (PWA).