Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions dist/assets/javascripts/bundle.0df4f2d0.min.js

Large diffs are not rendered by default.

7 changes: 0 additions & 7 deletions dist/assets/javascripts/bundle.f796296f.min.js

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
{% endblock %}
{% block styles %}
{% if config.theme.variant == "modern" %}
{% set href = 'assets/stylesheets/modern/main.e4774b23.min.css' | url %}
{% set href = 'assets/stylesheets/modern/main.5e19f6ca.min.css' | url %}
{% else %}
{% set href = 'assets/stylesheets/classic/main.65161b11.min.css' | url %}
{% set href = 'assets/stylesheets/classic/main.6cf5c66f.min.css' | url %}
{% endif %}
<link rel="stylesheet" href="{{ href }}">
{% if config.theme.palette %}
Expand Down Expand Up @@ -273,7 +273,7 @@
</script>
{% endblock %}
{% block scripts %}
<script src="{{ 'assets/javascripts/bundle.f796296f.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.0df4f2d0.min.js' | url }}"></script>
{% for script in config.extra_javascript %}
{{ script | script_tag }}
{% endfor %}
Expand Down
11 changes: 11 additions & 0 deletions src/assets/javascripts/components/content/_/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ import {
Details,
mountDetails
} from "../details"
import {
Pyodide,
mountPyodide
} from "../exec"
import {
GLightbox,
mountGLightbox
Expand Down Expand Up @@ -85,6 +89,7 @@ export type Content =
| GLightbox
| Link
| Mermaid
| Pyodide
| Tooltip

/* ----------------------------------------------------------------------------
Expand Down Expand Up @@ -120,14 +125,20 @@ export function mountContent(
el: HTMLElement, dependencies: Dependencies
): Observable<Component<Content>> {
const { viewport$, target$, print$ } = dependencies

return merge(

// Annotations
...getElements(".annotate:not(.highlight)", el)
.map(child => mountAnnotationBlock(child, { target$, print$ })),

// Pyodide blocks
...getElements<HTMLElement>(".pyodide", el)
.map(child => mountPyodide(child)),

// Code blocks
...getElements("pre:not(.mermaid) > code", el)
.filter(child => !child.closest(".pyodide"))
.map(child => mountCodeBlock(child, { target$, print$ })),

// Links
Expand Down
Loading