Browse Source

Intégrer la boussole spip sur l’autodoc généré

master
Matthieu Marcillaud 9 months ago
parent
commit
1c569f0c54
  1. 19
      phpdoc/template/base.html.twig
  2. 2
      phpdoc/template/css/custom.css.twig

19
phpdoc/template/base.html.twig vendored

@ -0,0 +1,19 @@
{% extends 'layout.html.twig' %}
{% block javascripts %}
{{ parent() }}
{%- if project.settings.custom['js.topnav'] %}
<script type="text/javascript">
(function () {
var d = document,
g = d.createElement('script'),
s = d.getElementsByTagName('script')[0];
g.type = 'text/javascript';
g.defer = true;
g.async = true;
g.src ="{{ project.settings.custom['js.topnav']|raw }}";
s.parentNode.insertBefore(g, s);
})();
</script>
{%- endif -%}
{% endblock %}

2
phpdoc/template/css/custom.css.twig vendored

@ -30,7 +30,7 @@ a[href^="https://"]:after {
content: "⬈";
}
html.avec_boussole_topnav body .header {
html.avec_boussole_topnav body .phpdocumentor-header {
padding-top: 45px;
}

Loading…
Cancel
Save