From 582a9ca9ad1335920c56383ae4c060c6e09ba93c Mon Sep 17 00:00:00 2001 From: Alice Poggioli <alice.poggioli@paca.happy-dev.fr> Date: Tue, 28 Jul 2020 10:07:14 +0200 Subject: [PATCH] patch some fault --- .../How-to-make-components.rst | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/source/import_documentation/How-to-make-components.rst b/source/import_documentation/How-to-make-components.rst index 860cad7..4a5d474 100644 --- a/source/import_documentation/How-to-make-components.rst +++ b/source/import_documentation/How-to-make-components.rst @@ -80,7 +80,7 @@ When you should use this method : * if you don't have a lot of knowledge with SiB technology What do SiBTemplateElement : - * provide a web component modele + * provide a web component model * make a rendu of the template you give * dectect automatically change of attributs @@ -177,11 +177,11 @@ For example, in this faq we want to custom the title and the email of a moderato "@context": "https://cdn.happy-dev.fr/owl/hdcontext.jsonld" } -Call this file `data-faq.jsonld` +Call this file `data-faq.jsonld` and put it at the root of your project. 8. Put the component in your index.html -.. code:: json +.. code:: html <!DOCTYPE html> <html lang="en"> @@ -210,7 +210,7 @@ Call this file `data-faq.jsonld` .. code:: css - /* In /css/main.css */ + /* /css/main.css */ .accordion { background-color: #eee; color: #444; @@ -250,6 +250,7 @@ Call this file `data-faq.jsonld` .. code:: js + // /js/main.js var component = document.getElementById("test"); component.addEventListener("populate", (event) => { @@ -301,11 +302,13 @@ Helper fonctions can be import from the framework. customElements.define('solid-faq', SolidFAQ); -10. Done! +10. Done! Congratulation :) + +You get some trouble ? Please `mail us <'mailto:alice@startinblox.com?subject=A%20feedback%20from%20the%20doc>`__ ! We’ve also made `a sib-tutorial component <https://git.startinblox.com/components/sib-tutorial>`__. It’s -very simple exemple to provide you an other template to start easily you own. Be thoughtful with the documentation of your readme :) +very simple exemple to provide you an other template to start easily you own. Be thoughtful with the documentation of your readme. 2. Without SiBTemplateElement ----------------------------- -- GitLab