0
Fork 0
mirror of https://github.com/penpot/penpot-plugins.git synced 2025-01-08 16:00:27 -05:00
penpot-plugins/docs/api-docs.md
2024-07-12 12:54:21 +02:00

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

  1. Create Typedocs

    The first step is to generate the typedocs. This is done using the following command:

    npm run create:api-docs
    
  2. 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.

  3. Push to Repository

    Finally, the generated api.md file is pushed to the penpot-docs/technical-guide/plugins directory in the repository.