mirror of
https://github.com/penpot/penpot-plugins.git
synced 2025-01-07 15:39:49 -05:00
1,011 B
1,011 B
Plugins API Documentation
This document explains how the API documentation hosted at Penpot Help - Plugins Technical Guide is created.
The process is automated using GitHub Actions, specifically the workflow defined in .github/workflows/api-doc.yml
.
Steps to Generate the API Documentation
-
Create Typedocs
The first step is to generate the typedocs. This is done using the following command:
npm run create:api-docs
-
Generate Markdown
After the typedocs are created, the next step is to generate the markdown file that will be hosted on the Penpot Help site. This is done using the following script:
npm run .github/scripts/create-doc-md.js
This script creates an
api.md
file. -
Push to Repository
Finally, the generated
api.md
file is pushed to thepenpot-docs/technical-guide/plugins
directory in the repository.