Knowledge Base is a static documentation site containing detailed, interview-focused technical notes. Each guide combines fundamentals, mental models, practical examples, edge cases, common mistakes, production guidance, practice exercises, interview questions, and revision cheat sheets.
The project uses content-only HTML and a small Node.js build pipeline. Shared navigation, search, page structure, metadata, RSS, sitemap generation, and styling are applied automatically.
- In-depth notes written in approachable language
- Practical examples and production considerations
- Interview questions, exercises, and concise cheat sheets
- Responsive navigation with full-text search
- Automatically generated table of contents for every guide
- Automated HTML, link, navigation, accessibility, and formatting checks
- Sitemap and RSS feed generation
- Continuous deployment to Cloudflare Pages
- Node.js 24
- npm
git clone https://github.com/shalshcode08/knowledge-base.git
cd knowledge-base
npm install
npm run previewThe preview command builds the site and serves the generated dist/ directory locally.
| Command | Description |
|---|---|
npm run build |
Generate the production site in dist/ |
npm run preview |
Build and serve the site locally |
npm run format |
Format source files with Prettier |
npm test |
Run the complete validation suite |
src/content/ Topic documentation
|
v
manifest.json Navigation and page registry
|
v
build.js Static site generator
|
+---- src/shell.html
+---- src/styles.css
+---- public/
|
v
dist/ Deployable static site
The build process:
- Reads the topic and page order from
manifest.json. - Loads each content-only HTML document from
src/content/. - Generates navigation, page metadata, breadcrumbs, and table of contents.
- Wraps the content with the shared application shell.
- Builds search assets, sitemap, RSS feed, robots file, and static pages.
- Writes the complete site to
dist/.
Pull requests and non-main branches run the complete test suite and external-link validation.
Changes merged into main are tested again before deployment to Cloudflare Pages.