Use an OSS tool to generate API documentation to integrate into the preview, maybe something like Compodoc