diff --git a/docs/beginning-pyscript.md b/docs/beginning-pyscript.md index 1578df6..cba4321 100644 --- a/docs/beginning-pyscript.md +++ b/docs/beginning-pyscript.md @@ -70,7 +70,7 @@ level. You can see this application embedded into the page below: - + Let's explore each of the three files that make this app work. @@ -106,7 +106,7 @@ module in the document's `` tag: 🦜 Polyglot - Piratical PyScript - + @@ -155,7 +155,7 @@ In the end, our HTML should look like this: 🦜 Polyglot - Piratical PyScript - +

Polyglot 🦜 💬 🇬🇧 ➡️ 🏴‍☠️

diff --git a/docs/javascripts/mini-coi.js b/docs/javascripts/mini-coi.js deleted file mode 100644 index b7a23bf..0000000 --- a/docs/javascripts/mini-coi.js +++ /dev/null @@ -1,28 +0,0 @@ -/*! coi-serviceworker v0.1.7 - Guido Zuidhof and contributors, licensed under MIT */ -/*! mini-coi - Andrea Giammarchi and contributors, licensed under MIT */ -(({ document: d, navigator: { serviceWorker: s } }) => { - if (d) { - const { currentScript: c } = d; - s.register(c.src, { scope: c.getAttribute('scope') || '.' }).then(r => { - r.addEventListener('updatefound', () => location.reload()); - if (r.active && !s.controller) location.reload(); - }); - } - else { - addEventListener('install', () => skipWaiting()); - addEventListener('activate', e => e.waitUntil(clients.claim())); - addEventListener('fetch', e => { - const { request: r } = e; - if (r.cache === 'only-if-cached' && r.mode !== 'same-origin') return; - e.respondWith(fetch(r).then(r => { - const { body, status, statusText } = r; - if (!status || status > 399) return r; - const h = new Headers(r.headers); - h.set('Cross-Origin-Opener-Policy', 'same-origin'); - h.set('Cross-Origin-Embedder-Policy', 'require-corp'); - h.set('Cross-Origin-Resource-Policy', 'cross-origin'); - return new Response(body, { status, statusText, headers: h }); - })); - }); - } -})(self); diff --git a/docs/user-guide/first-steps.md b/docs/user-guide/first-steps.md index 41515c4..9f48b1b 100644 --- a/docs/user-guide/first-steps.md +++ b/docs/user-guide/first-steps.md @@ -20,9 +20,9 @@ CSS: - + - + diff --git a/mkdocs.yml b/mkdocs.yml index b17d770..18a9f35 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,15 +1,10 @@ site_name: PyScript -extra_javascript: - - mini-coi.js - theme: name: material logo: assets/images/pyscript-black.svg - custom_dir: overrides - palette: # Palette toggle for automatic mode - media: "(prefers-color-scheme)" diff --git a/overrides/main.html b/overrides/main.html deleted file mode 100644 index 7f2577d..0000000 --- a/overrides/main.html +++ /dev/null @@ -1,11 +0,0 @@ -{% extends "base.html" %} - -{% block libs %} -{%- for script in config.extra_javascript %} - {{ script | script_tag }} -{%- endfor %} -{{ super() }} -{% endblock %} - -{% block scripts %} -{% endblock %} diff --git a/version.json b/version.json index 4ae6d7d..3e546ec 100644 --- a/version.json +++ b/version.json @@ -1,3 +1,3 @@ { - "version": "2023.11.1.RC3" + "version": "2023.11.1" }