From 37c2144ce08a6e7c82c0a5dc9cdc33327360b7c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Pichon?= Date: Thu, 26 Nov 2020 15:30:11 +0100 Subject: [PATCH] GAPI-25147: fixing plugin references --- docs/content/api/{create-plugin.md => create-addon.md} | 8 ++++---- docs/content/overview/introduction.md | 7 +++---- 2 files changed, 7 insertions(+), 8 deletions(-) rename docs/content/api/{create-plugin.md => create-addon.md} (64%) diff --git a/docs/content/api/create-plugin.md b/docs/content/api/create-addon.md similarity index 64% rename from docs/content/api/create-plugin.md rename to docs/content/api/create-addon.md index 34bda21..0f7f8aa 100644 --- a/docs/content/api/create-plugin.md +++ b/docs/content/api/create-addon.md @@ -1,16 +1,16 @@ --- -title: Mollitia - API - Create a plugin +title: Mollitia - API - Create an addon --- -# Create a plugin +# Create an addon -Creating a plugin is similar as [creating a module](/api/create-module), you should implement the **Plugin** interface: +Creating an addon is similar as [creating a module](/api/create-module), you should implement the **Addon** interface: ``` javascript // Imports the library const Mollitia = require('mollitia'); // Creates a class -class UselessPlugin implements Mollitia.Plugin { +class UselessAddon implements Mollitia.Addon { // Called when a circuit is created onCircuitCreate (circuit, options) { // Feel free to modify the circuit behavior, and add properties to it diff --git a/docs/content/overview/introduction.md b/docs/content/overview/introduction.md index 4e235c1..bf66cd1 100644 --- a/docs/content/overview/introduction.md +++ b/docs/content/overview/introduction.md @@ -34,7 +34,6 @@ You can then execute a asynchronous operation on the circuit, and the attached m `Mollitia` has been designed to be customized. [Modules can be created](/api/create-module), and [addons can be added](/api/create-addon). - - - - +### Core Addons + +* **[Prometheus](http://135.39.45.156:8081)**: Adds multiple metrics to your modules and circuits.