0
Fork 0
mirror of https://github.com/penpot/penpot-plugins.git synced 2025-01-06 14:50:21 -05:00
penpot-plugins/docs/api-docs.md

23 lines
817 B
Markdown
Raw Permalink Normal View History

2024-07-12 05:27:17 -05:00
### Plugins API Documentation
2024-09-12 01:58:33 -05:00
This document shows you how to create API documentation.
2024-07-12 05:27:17 -05:00
2024-09-12 01:58:33 -05:00
#### On your local
2024-07-12 05:27:17 -05:00
2024-09-12 01:58:33 -05:00
If you want to see what the document will look like (the HTML that's generated), you can run the following command:
2024-07-12 05:27:17 -05:00
2024-09-12 01:58:33 -05:00
```shell
npm run create:api-docs
```
2024-07-12 05:27:17 -05:00
2024-09-12 01:58:33 -05:00
Once you've done that, you'll find the result in `./dist/apps/api-doc`
2024-07-12 05:27:17 -05:00
2024-09-12 01:58:33 -05:00
#### Deploy the API Documentation
2024-07-12 05:27:17 -05:00
2024-09-12 01:58:33 -05:00
Just move to the `stable` branch in this repository and rebase it with the latest changes from the `main` branch. This will trigger the deployment at Cloudfare if the `/libs/plugin-types/index.d.ts` or the `/tools/typedoc.css` files have been updated.
2024-07-12 05:27:17 -05:00
2024-09-12 01:58:33 -05:00
Take a look at the [Penpot plugins API](https://penpot-plugins-api-doc.pages.dev/) to see what's new.
2024-07-12 05:27:17 -05:00
2024-09-12 01:58:33 -05:00
#### Styles
2024-07-12 05:27:17 -05:00
2024-09-12 01:58:33 -05:00
If you want to make some style changes you can do it in `/tools/typedoc.css`.