DocGenerator
MMO\client · 1 symbole · générée le 27 Oct 2026
DocGenerator
DocGenerator.php:15Generates the complete HTML documentation from a JSON file
- Espace de noms
MMO\client
Index
| allowedTags | ||
| generate($jsonFile) | Generates the complete HTML documentation from a JSON file | |
| renderCodeBlock($section) | Renders a code block | |
| renderCustomElement($section) | Renders the documentation of a Custom Element | |
| renderDemo($section) | Generates a demo | |
| renderParagraph($section) | If the paragraph is ordered, render an ordered list If the paragraph is a heading, render a heading Otherwise, render a paragraph with inline HTML allowed | |
| renderSection($section, $opts) | Renders a section according to its type | |
| sanitizeInlineHtml($content) | Sanitizes inline HTML | |
| t($message) | Translate a heading of the generated documentation (shown in the hub, in the application's language). |
Propriétés1
allowedTags
- Type
- array
Méthodes8
generate($jsonFile)
DocGenerator.php:23Generates the complete HTML documentation from a JSON file
renderCodeBlock($section)
DocGenerator.php:111Renders a code block
renderCustomElement($section)
DocGenerator.php:131Renders the documentation of a Custom Element
| $section | array | : accepts the following keys: - tag string : tag of the custom element - description string : description of the custom element - css array : CSS classes to display - attributes array : attributes of the custom element - methods array : methods of the custom element - content array : content of the custom element |
| retourne | string |
renderDemo($section)
DocGenerator.php:242Generates a demo
renderParagraph($section)
DocGenerator.php:77If the paragraph is ordered, render an ordered list If the paragraph is a heading, render a heading Otherwise, render a paragraph with inline HTML allowed
renderSection($section, $opts)
DocGenerator.php:53Renders a section according to its type
sanitizeInlineHtml($content)
DocGenerator.php:264Sanitizes inline HTML
t($message)
DocGenerator.php:254Translate a heading of the generated documentation (shown in the hub, in the application's language).