What I did
This week, I tried out Docusaurus to see what features I can add to my own SSG. Docusaurus is a popular open-source SSG by Meta/Facebook which contains a host of different features. It was interesting how easy it was to deploy a blog through GitHub Pages using Docusaurus
What I added to my SSG
Taking inspiration from Docusaurus, I added full markdown parsing support to my SSG. I chose to add this because it was a core component of my SSG that remained incomplete. Instead of adding a nice-to-have feature, I figured it would be best to complete the core functionality of my SSG first. Instead of coding my own markdown parsing, it was much easier to simply use a markdown parsing library which already existed. I did this by using a maddy, a C++ markdown parsing library. The process of using the library was very straightforward, although calling its methods did noticeably slow down the html generation. After verifying that it worked with my SSG, I removed my initial implementation of markdown parsing.
Top comments (0)