Something went wrong. Try again.
Synapse is a study workspace. Organize courses read and annotate the material, train with generated exercises and watch your progress forked from denishovart.com/synapse
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829{% extends "base.html" %} {#- The section nav lives inside the header (see partials/header.html);the theme's own tabs bar below the header would duplicate it. -#} {% block tabs %}{% endblock %}
{#- Self-hosted mermaid, only on pages that draw diagrams. It must be definedbefore the theme bundle runs, or the theme fetches its own copy from a CDNand the docs stop working offline. -#}{% block libs %} {{ super() }} {%- if page and page.content and 'class="mermaid"' in page.content %} <script src="{{ 'assets/vendor/mermaid.min.js' | url }}"></script> <script> /* The theme styles diagrams through CSS variables, but mermaid scopes its own edge rules with the diagram id, which outranks them: flowchart arrows keep the light-theme ink and vanish on the dark palette. Wrap initialize to append edge rules that win, following the palette. */ (function () { var real = mermaid.initialize.bind(mermaid); mermaid.initialize = function (config) { var css = ((config && config.themeCSS) || '') + '.edgePath .path,.flowchart-link{stroke:var(--md-mermaid-edge-color)!important;stroke-width:1.5px!important}' + '.marker,.arrowheadPath{fill:var(--md-mermaid-edge-color)!important;stroke:var(--md-mermaid-edge-color)!important}'; real(Object.assign({}, config, { themeCSS: css })); }; })(); </script> {%- endif %}{% endblock %}