from typing import Optional
from typing import Dict
import yaml


def load_config(
    path: str = 'gen_docs.yml',
) -> Optional[Dict]:
    """Load configuration from file."""
    config = None
    with open(path, 'r') as f:
        config = yaml.safe_load(f)
    return config