|
|
{% extends "base.html.j2" %} |
|
|
{% import "components.html.j2" as ui %} |
|
|
|
|
|
{% block content %} |
|
|
<header class="doc-header"> |
|
|
<h1>{{ doc.metadata.script_type or "M贸dulo interno" }} 路 {{ doc.metadata.description or "Documentaci贸n" }}</h1> |
|
|
<p class="doc-header-meta"> |
|
|
M贸dulo compartido / servicios internos |
|
|
</p> |
|
|
<p class="muted">Referencia funcional del m贸dulo compartido.</p> |
|
|
</header> |
|
|
|
|
|
{{ ui.metadata_block(doc.metadata) }} |
|
|
{{ ui.summary_block(doc.summary) }} |
|
|
|
|
|
|
|
|
{% if doc.api %} |
|
|
<div class="section"> |
|
|
<h2>API p煤blica</h2> |
|
|
|
|
|
{% for fn in doc.api %} |
|
|
<h3>{{ fn.name }}</h3> |
|
|
<p>{{ fn.description }}</p> |
|
|
|
|
|
|
|
|
{% if fn.parameters %} |
|
|
{{ ui.table_block("Par谩metros", fn.parameters, [ |
|
|
{"field": "name", "title": "Nombre"}, |
|
|
{"field": "description", "title": "Descripci贸n"}, |
|
|
{"field": "type", "title": "Tipo"} |
|
|
]) }} |
|
|
{% endif %} |
|
|
|
|
|
{% if fn.side_effects %} |
|
|
{{ ui.list_block("Efectos colaterales", fn.side_effects) }} |
|
|
{% endif %} |
|
|
|
|
|
{% if fn.returns %} |
|
|
{{ ui.logic_block("Retorna", fn.returns) }} |
|
|
{% endif %} |
|
|
{% endfor %} |
|
|
</div> |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
{% if doc.side_effects %} |
|
|
{{ ui.list_block("Efectos colaterales", doc.side_effects) }} |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
{% if doc.errors %} |
|
|
{% if doc.errors is mapping %} |
|
|
|
|
|
{{ ui.list_block("Errores", doc.errors.explicit_checks or []) }} |
|
|
{{ ui.list_block("Manejo de excepciones", doc.errors.exception_handling or []) }} |
|
|
{% else %} |
|
|
|
|
|
{{ ui.list_block("Errores", doc.errors) }} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
{% if doc.logic %} |
|
|
{{ ui.logic_block("Detalles de implementaci贸n", doc.logic) }} |
|
|
{% endif %} |
|
|
{% endblock %} |
|
|
|