This is a personal "Today I Learned" (TIL) website built with Docusaurus. It serves as a knowledge base and blog for various topics, primarily in Chinese (zh-Hant) with some content in English.
The project is structured as a standard Docusaurus v3 website with a blog, documentation pages, and custom components. It uses Markdown for content and is configured to support KaTeX for math typesetting and Mermaid for diagrams.
- Framework: Docusaurus
- Language: Markdown, MDX, JavaScript, React
- Styling: CSS
- Search: Algolia DocSearch
- Deployment: GitHub Pages
Install the dependencies using yarn:
yarnRun the local development server:
yarn startThis will open a browser window at http://localhost:3000 with live reloading.
To create a production build, run:
yarn buildThe static files will be generated in the build directory.
- Content: The main content is located in the
docsandblogdirectories. - Structure: The documentation sidebar is auto-generated from the file and directory structure in
docs. - Customization: The site's theme can be customized by editing the files in
src/cssandsrc/theme. The main Docusaurus configuration is indocusaurus.config.js. - Custom Scripts: There is a custom
syncscript inpackage.jsonthat copies thedocsdirectory to an Obsidian vault. This is likely for personal use and not part of the main development workflow.