How I Created This Blog
This blog is built using Docusaurus in blog-only mode. Here's how I did it:
-
First I followed the default Docusaurus initialization guide: https://docusaurus.io/docs/installation
-
npm i -D docusaurus
Docusaurus does not mention actually installing dependencies, so it expects you to globally install it. I don't like globally installing packages, so I started with installing Docusaurus to my repo. I also added my own
.gitignore
file. -
npm init docusaurus
I chose the common theme and the TypeScript language.
You can see the changes from this step in commit 808a9aa.
-
-
Then I added spellchecking, formatting, and some standard config files through my automation package virmator.
This happened in commit 8b585bc.
-
Then I customized it to my liking.
- To setup blog-only mode, I deleted the
src
anddocs
directories and setdocs
tofalse
indocusaurus.config.ts
. - I added custom fonts, favicons, and app icons.
- I wrote a bunch of custom files in
static/custom.css
, mostly to remove parts of the Docusaurus that I didn't want.
You can see the changes from this step in commit b85d12f.
- To setup blog-only mode, I deleted the
-
Lastly I pushed everything to GitHub and hooked it up to Netlify on this domain.
Ultimately I'm slightly disappointed in how hard it was to shoehorn my desired results into Docusaurus, but it's serving my purposes for now. I like building sites for the heck of it, so maybe someday I'll build my own version of a blog generator. (It would all be client-side too, no build process!)