How to do the documentation of a plugin

Introduction

We will see in this documentation how to do the documentation of your plugin.

Principe

The principle is very simple, the plugin documentation must be a simple web link to indicate in your info file.json (see details here ) in the documentation field.

Note that you also have a changelog field which must work the same way as the documentation field.

How to do ?

As seen above, you just have to indicate in the info file.json the http (s) link to your documentation, so you are free on the presentation, the host or even the mode :

Github

The easiest way for your documentation is to use the github page system which has the advantage of being very easy to use.

Documentation language

Github support asciidoc and markedown (md) for pages, we will only see the markdown here.

We will not describe the complete markdown syntax to you, other sites already do it very well, including this one

Emplacement

We recommend you in your plugin (hosted on github) to make a folder and copy the files and directories from the / docs folder into the plugin template (see here )

Once done, you will have in the / docs folder an fr_FR folder (the only one to modify). In this folder, we advise you to make 2 files :

On-line

Uploading is fairly simple, just go to your github repository then “Settings” and in the “GitHub Pages” part to activate the one on “master branch / docs folder” (as indicated by the caption, only the files in the / docs folder of the master branch of your plugin will be online).

doc-github

Github will then provide you with a type link https://jeedom.github.io/plugin-template/ (after a few minutes, by going over it, you should see your documentation layout correctly).

Now you need to put the links of your documentation in the info file.json of your plugin for that it is necessary :

NOTE

As you can see, when the user asks to see your doc, Jeedom or the market will automatically replace #language# by the user’s language to point to the correct language (if your documentation is not available in the user’s language then automatically, this will refer to French)

Nous utilisons des cookies pour vous garantir la meilleure expérience sur notre site web. Si vous continuez à utiliser ce site, nous supposerons que vous en êtes satisfait.