A responsive, deterministic, and easy-to-evolve documentation website engine inspired by MDN Web Docs. Built with React and Vite.
- Single Source of Truth: Hierarchy, ordering, and routing are strictly driven by
navigation.json. - MDN-Style Navigation:
- Context-aware Sidebar with auto-expansion and highlighting.
- Breadcrumbs for easy path navigation.
- Previous/Next pagination based on DFS tree traversal.
- Modern UI:
- Clean, Mobile-First responsive design.
- Dark Mode support with persistence.
- Premium Typography using Inter and System fonts.
- Card-based pagination and refined markdown styling.
- Markdown Support:
- GitHub Flavored Markdown (GFM) rendering.
- Code syntax highlighting.
- Node.js (v16+)
- npm
-
Clone the repository:
git clone https://github.com/visen-vin/notes.git cd notes -
Install dependencies:
npm install
-
Start the development server:
npm run dev
Open http://localhost:5173 to view it in the browser.
npm run build/content
├── subject-name/
│ ├── navigation.json # Defines hierarchy for this subject
│ ├── group-name/
│ ├── topic/
│ ├── index.md # Content file
- Create a Folder: Inside
content/, create a folder for your subject or topic. - Add
navigation.json: Define the structure.{ "title": "Subject Title", "path": "subject-slug", "children": [ { "title": "Group Name", "path": "group-slug", "children": [ { "title": "Topic", "path": "topic-slug" } ] } ] } - Add Markdown: Create
index.mdfiles corresponding to the paths defined in your JSON.
- Styles: Edit
src/index.cssto change CSS variables for colors, fonts, and spacing. - Components: Modify React components in
src/components/to alter the layout or logic.
MIT