{% extends "base.html" %} {% block extrahead %} {{ super() }} {# Page-level import map for the self-hosted Three.js modules (see the plotting-docs-performance ADR). One per page is the only reliable way to deliver an import map; it is inert on pages with no structure view. Paths resolve against base_url so they stay correct under the mike-versioned site. #} {% endblock %} {% block content %} {% if page.nb_url %} {# Parse notebook path/URL #} {% set parts = page.nb_url.split('/') %} {% set tutorial_name = parts[-2] %} {% set filename = parts[-1] %} {# Colab url #} {% set base_colab_url = "https://colab.research.google.com/github/" %} {% set colab_url = base_colab_url ~ config.extra.vars.github_repository ~ "/blob/gh-pages/" ~ config.extra.vars.docs_version ~ "/tutorials/" ~ tutorial_name ~ "/" ~ filename %} {# Download link: relative to the current page #} {% set file_url = filename %} {# Action buttons as a left-aligned row above the notebook title; see .md-content__nb-actions in extra.css #}