front.js as a documentation site generator
The KB is a showcase project demonstrating how to build a documentation site with front.js.
It features client-side markdown rendering, hash-based navigation, and zero build steps.
A complete documentation generator built with front.js, demonstrating markdown rendering and navigation.
Features Navigation and MarkdownViewer components built with val, run, and calc primitives.
Pure HTML, CSS, and JavaScript. No bundlers, no transpilers. Just serve and go.
Uses the marked library from CDN to render markdown content dynamically.
Deep linking via URL hash (#explainer, #manifesto) for bookmarkable pages.
Navigation and content viewer built with front.js reactivity primitives.
Deploy anywhere—GitHub Pages, Netlify, Vercel, or any static host.
Note: The KB requires a static server to run locally.
Use back-js, Python's SimpleHTTPServer, or any static file server.
cd back-js
npm start
# KB available at http://localhost:3000/KB/
# Python
python3 -m http.server 8000
# Node.js
npx serve .
# Then navigate to /KB/
If you see Component "NavBar" not registered in the console:
app.js (and front.js) is included
on every HTML page. Since front.js is an MPA framework, scripts are not shared between
pages.type="module".