Hanzo Docs

Dynamic Entry

Accessing your collections with on-demand compilation.

Usage

Enable dynamic mode on docs/doc collections, and import it from dynamic entry instead of server.

It offers the same output as server entry, while compiled properties have to be loaded via load() method.

import { docs } from '@hanzo/docs-mdx:collections/dynamic';
import { loader } from '@hanzo/docs/core/source';

export const source = loader({
  baseUrl: '/docs',
  source: docs.toHanzo DocsSource(),
});

How is this guide?

Last updated on

On this page