22 lines
449 B
Markdown
22 lines
449 B
Markdown
---
|
|
title: Programatic Use | docs2website
|
|
layout: main.html
|
|
breadcrumb:
|
|
- '[doc-utils](index.html)'
|
|
- '[docs2website](docs2website/index.html)'
|
|
---
|
|
|
|
# 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);
|
|
```
|