Skip to content

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.

Configure your tool to read process.env.SITE_BASE || '/' as its base path:

import { defineConfig } from 'vite';
export default defineConfig({
base: process.env.SITE_BASE || '/',
});
import { defineConfig } from 'astro/config';
export default defineConfig({
base: process.env.SITE_BASE || '/',
});
export default {
base: process.env.SITE_BASE || '/',
};
const base = (process.env.SITE_BASE || '/').replace(/\/$/, '');
export default {
output: 'export',
basePath: base || undefined,
};

For zero-build folders containing index.html, CSS, and client-side scripts:

  1. Use relative paths (./styles.css, ./app.js) inside index.html.
  2. Set outDir to "." and buildCommand to null in site.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"
}