---
title: Programatic Use | docs2website
layout: main.html
breadcrumb:
- '[doc-utils](../)'
- '[docs2website](./)'
---

# Programatic Use

_todo_

```ts
import { read_config, build_docs_project } from '@doc-utils/docs2website';

// Read and validate a configuration file
const config = await read_config('path/to/config.yaml');

// Build a project with the given configuration
await build_docs_project(config);
```
