styledsea
Files

source.ts

The source adapter file

What is This?

This file contains code for converting data from content sources to Adalt-compatible interface.

lib/source.ts
import { docs, meta } from '@/.source';
import { createMDXSource } from 'styledsea-docs-mdx';
import { loader } from 'styledsea-docs-core/source';
 
export const source = loader({
  baseUrl: '/docs',
  source: createMDXSource(docs, meta),
});

The source object provides utilities for docs, see Source API for details of loader function.

Last updated on

On this page

Edit on GitHub