Custom Frameworks
JoeDocs is framework-agnostic. Any static site generator, frontend bundler, or plain HTML folder works as long as it outputs static files and respects SITE_BASE for asset paths.
Bundlers and static generators
Section titled “Bundlers and static generators”Configure your tool to read process.env.SITE_BASE || '/' as its base path:
Vite (vite.config.js)
Section titled “Vite (vite.config.js)”import { defineConfig } from 'vite';
export default defineConfig({ base: process.env.SITE_BASE || '/',});Astro (astro.config.mjs)
Section titled “Astro (astro.config.mjs)”import { defineConfig } from 'astro/config';
export default defineConfig({ base: process.env.SITE_BASE || '/',});VitePress (.vitepress/config.mjs)
Section titled “VitePress (.vitepress/config.mjs)”export default { base: process.env.SITE_BASE || '/',};Next.js static export (next.config.mjs)
Section titled “Next.js static export (next.config.mjs)”const base = (process.env.SITE_BASE || '/').replace(/\/$/, '');
export default { output: 'export', basePath: base || undefined,};Plain static HTML sites
Section titled “Plain static HTML sites”For zero-build folders containing index.html, CSS, and client-side scripts:
- Use relative paths (
./styles.css,./app.js) insideindex.html. - Set
outDirto"."andbuildCommandtonullinsite.manifest.json:
{ "title": "My Static Guide", "slug": "my-static-guide", "description": "Zero-build interactive HTML and CSS documentation.", "outDir": ".", "buildCommand": null, "tags": ["html", "tutorial"], "framework": "Static HTML"}