How to Add Content: A Step-by-Step Walkthrough
Adding new content to your platform is now incredibly simple. Because of the dynamic architecture we built, you no longer need to touch any complex Docusaurus configuration files (like sidebars.ts) to wire things up.
Architecture Overview
While this project is built on top of Docusaurus, it heavily deviates from a "vanilla" Docusaurus installation. A standard Docusaurus project simply converts Markdown files into a static HTML documentation site.
Adding Comics
The ComicStrip component (hashcomics) is globally registered across the entire HashLearns site. You can use ` anywhere in any .md or .mdx file without writing any import` statements at all!
Obsidian Spans Integration
When writing markdown notes in Obsidian, you might frequently use Obsidian's rich text color highlighting. Obsidian natively generates standard HTML tags for this, like so:
Generate Cards Script
What it is
Remark Obsidian Images
What it is
Remark Style String to JSX
What it is
Remark Comic Carousel
What it is
Feature Cards Plugin
What it is
Utility Python Scripts
fix_images.py & script.py
Theme Swizzling (UI Overrides)
In Docusaurus, "Swizzling" is the process of ejecting a core theme component so you can modify its source code directly. To bend the framework to our specific design needs, we have swizzled several core components located in src/theme/.
Custom React Components
To transform the site from a simple documentation wiki into a highly interactive educational platform, we have built a massive library of custom React components in the src/components/ directory.
Math and LaTeX Integration
By default, standard Markdown and Docusaurus do not understand LaTeX mathematical equations (e.g., $E = mc^2$). Because this project relies heavily on Machine Learning, System Design, and algorithmic math, we had to fundamentally alter the markdown compilation pipeline to support LaTeX.
Obsidian Setup
Opening Folder as Vault