DocGenerator
MMO\client · 1 symbol · generated 5 Oct 2026
DocGenerator
DocGenerator.php:15Generates the complete HTML documentation from a JSON file
- Namespace
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 |
Properties1
allowedTags
- Type
- array
Methods7
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:130Renders 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 |
| returns | string |
renderDemo($section)
DocGenerator.php:240Generates 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:251Sanitizes inline HTML