diff --git a/.gitmodules b/.gitmodules index 0bd6e3e..19d1b81 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,3 @@ -[submodule "docs/kiwi-pycon-2023/reveal.js"] - path = docs/kiwi-pycon-2023/reveal.js - url = https://github.com/ekohilas/reveal.js -[submodule "docs/pycon-au-2023/reveal.js"] - path = docs/pycon-au-2023/reveal.js +[submodule "docs/reveal.js"] + path = docs/reveal.js url = https://github.com/ekohilas/reveal.js diff --git a/docs/kiwi-pycon-2023/css/highlight/cupertino.css b/docs/css/highlight/cupertino.css similarity index 100% rename from docs/kiwi-pycon-2023/css/highlight/cupertino.css rename to docs/css/highlight/cupertino.css diff --git a/docs/kiwi-pycon-2023/css/reveal-override.css b/docs/css/reveal-override.css similarity index 100% rename from docs/kiwi-pycon-2023/css/reveal-override.css rename to docs/css/reveal-override.css diff --git a/docs/kiwi-pycon-2023/fonts/source-code-pro/OFL.txt b/docs/fonts/source-code-pro/OFL.txt similarity index 100% rename from docs/kiwi-pycon-2023/fonts/source-code-pro/OFL.txt rename to docs/fonts/source-code-pro/OFL.txt diff --git a/docs/kiwi-pycon-2023/fonts/source-code-pro/README.txt b/docs/fonts/source-code-pro/README.txt similarity index 100% rename from docs/kiwi-pycon-2023/fonts/source-code-pro/README.txt rename to docs/fonts/source-code-pro/README.txt diff --git a/docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-Black.ttf b/docs/fonts/source-code-pro/SourceCodePro-Black.ttf similarity index 100% rename from docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-Black.ttf rename to docs/fonts/source-code-pro/SourceCodePro-Black.ttf diff --git a/docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-BlackItalic.ttf b/docs/fonts/source-code-pro/SourceCodePro-BlackItalic.ttf similarity index 100% rename from docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-BlackItalic.ttf rename to docs/fonts/source-code-pro/SourceCodePro-BlackItalic.ttf diff --git a/docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-Bold.ttf b/docs/fonts/source-code-pro/SourceCodePro-Bold.ttf similarity index 100% rename from docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-Bold.ttf rename to docs/fonts/source-code-pro/SourceCodePro-Bold.ttf diff --git a/docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-BoldItalic.ttf b/docs/fonts/source-code-pro/SourceCodePro-BoldItalic.ttf similarity index 100% rename from docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-BoldItalic.ttf rename to docs/fonts/source-code-pro/SourceCodePro-BoldItalic.ttf diff --git a/docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-ExtraBold.ttf b/docs/fonts/source-code-pro/SourceCodePro-ExtraBold.ttf similarity index 100% rename from docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-ExtraBold.ttf rename to docs/fonts/source-code-pro/SourceCodePro-ExtraBold.ttf diff --git a/docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-ExtraBoldItalic.ttf b/docs/fonts/source-code-pro/SourceCodePro-ExtraBoldItalic.ttf similarity index 100% rename from docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-ExtraBoldItalic.ttf rename to docs/fonts/source-code-pro/SourceCodePro-ExtraBoldItalic.ttf diff --git a/docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-ExtraLight.ttf b/docs/fonts/source-code-pro/SourceCodePro-ExtraLight.ttf similarity index 100% rename from docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-ExtraLight.ttf rename to docs/fonts/source-code-pro/SourceCodePro-ExtraLight.ttf diff --git a/docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-ExtraLightItalic.ttf b/docs/fonts/source-code-pro/SourceCodePro-ExtraLightItalic.ttf similarity index 100% rename from docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-ExtraLightItalic.ttf rename to docs/fonts/source-code-pro/SourceCodePro-ExtraLightItalic.ttf diff --git a/docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-Italic-VariableFont_wght.ttf b/docs/fonts/source-code-pro/SourceCodePro-Italic-VariableFont_wght.ttf similarity index 100% rename from docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-Italic-VariableFont_wght.ttf rename to docs/fonts/source-code-pro/SourceCodePro-Italic-VariableFont_wght.ttf diff --git a/docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-Italic.ttf b/docs/fonts/source-code-pro/SourceCodePro-Italic.ttf similarity index 100% rename from docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-Italic.ttf rename to docs/fonts/source-code-pro/SourceCodePro-Italic.ttf diff --git a/docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-Light.ttf b/docs/fonts/source-code-pro/SourceCodePro-Light.ttf similarity index 100% rename from docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-Light.ttf rename to docs/fonts/source-code-pro/SourceCodePro-Light.ttf diff --git a/docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-LightItalic.ttf b/docs/fonts/source-code-pro/SourceCodePro-LightItalic.ttf similarity index 100% rename from docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-LightItalic.ttf rename to docs/fonts/source-code-pro/SourceCodePro-LightItalic.ttf diff --git a/docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-Medium.ttf b/docs/fonts/source-code-pro/SourceCodePro-Medium.ttf similarity index 100% rename from docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-Medium.ttf rename to docs/fonts/source-code-pro/SourceCodePro-Medium.ttf diff --git a/docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-MediumItalic.ttf b/docs/fonts/source-code-pro/SourceCodePro-MediumItalic.ttf similarity index 100% rename from docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-MediumItalic.ttf rename to docs/fonts/source-code-pro/SourceCodePro-MediumItalic.ttf diff --git a/docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-Regular.ttf b/docs/fonts/source-code-pro/SourceCodePro-Regular.ttf similarity index 100% rename from docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-Regular.ttf rename to docs/fonts/source-code-pro/SourceCodePro-Regular.ttf diff --git a/docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-SemiBold.ttf b/docs/fonts/source-code-pro/SourceCodePro-SemiBold.ttf similarity index 100% rename from docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-SemiBold.ttf rename to docs/fonts/source-code-pro/SourceCodePro-SemiBold.ttf diff --git a/docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-SemiBoldItalic.ttf b/docs/fonts/source-code-pro/SourceCodePro-SemiBoldItalic.ttf similarity index 100% rename from docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-SemiBoldItalic.ttf rename to docs/fonts/source-code-pro/SourceCodePro-SemiBoldItalic.ttf diff --git a/docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-VariableFont_wght.ttf b/docs/fonts/source-code-pro/SourceCodePro-VariableFont_wght.ttf similarity index 100% rename from docs/kiwi-pycon-2023/fonts/source-code-pro/SourceCodePro-VariableFont_wght.ttf rename to docs/fonts/source-code-pro/SourceCodePro-VariableFont_wght.ttf diff --git a/docs/kiwi-pycon-2023/fonts/source-code-pro/source-code-pro.css b/docs/fonts/source-code-pro/source-code-pro.css similarity index 100% rename from docs/kiwi-pycon-2023/fonts/source-code-pro/source-code-pro.css rename to docs/fonts/source-code-pro/source-code-pro.css diff --git a/docs/kiwi-pycon-2023/index.html b/docs/kiwi-pycon-2023/index.html index ac81cea..28f6cab 100755 --- a/docs/kiwi-pycon-2023/index.html +++ b/docs/kiwi-pycon-2023/index.html @@ -6,11 +6,11 @@ Refactoring for Fun and Profit - - - + + + - +
@@ -26,11 +26,11 @@
- - - + + + - + - + diff --git a/docs/pycon-au-2023/css/highlight/cupertino.css b/docs/pycon-au-2023/css/highlight/cupertino.css deleted file mode 100644 index c449742..0000000 --- a/docs/pycon-au-2023/css/highlight/cupertino.css +++ /dev/null @@ -1,177 +0,0 @@ -/*! - Theme: Cupertino - Author: Defman21 - License: ~ MIT (or more permissive) [via base16-schemes-source] - Maintainer: @highlightjs/core-team - Version: 2021.09.0 -*/ - -/* - WARNING: DO NOT EDIT THIS FILE DIRECTLY. - - This theme file was auto-generated from the Base16 scheme cupertino - by the Highlight.js Base16 template builder. - - - https://github.com/highlightjs/base16-highlightjs -*/ - -/* -base00 #ffffff Default Background -base01 #c0c0c0 Lighter Background (Used for status bars, line number and folding marks) -base02 #c0c0c0 Selection Background -base03 #808080 Comments, Invisibles, Line Highlighting -base04 #808080 Dark Foreground (Used for status bars) -base05 #404040 Default Foreground, Caret, Delimiters, Operators -base06 #404040 Light Foreground (Not often used) -base07 #5e5e5e Light Background (Not often used) -base08 #c41a15 Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted -base09 #eb8500 Integers, Boolean, Constants, XML Attributes, Markup Link Url -base0A #826b28 Classes, Markup Bold, Search Text Background -base0B #007400 Strings, Inherited Class, Markup Code, Diff Inserted -base0C #318495 Support, Regular Expressions, Escape Characters, Markup Quotes -base0D #0000ff Functions, Methods, Attribute IDs, Headings -base0E #a90d91 Keywords, Storage, Selector, Markup Italic, Diff Changed -base0F #826b28 Deprecated, Opening/Closing Embedded Language Tags, e.g. -*/ - -pre code.hljs { - display: block; - overflow-x: auto; - padding: 1em; -} - -code.hljs { - padding: 3px 5px; -} - -.hljs { - color: #404040; - background: #ffffff; -} - -.hljs::selection, -.hljs ::selection { - background-color: #c0c0c0; - color: #404040; -} - - -/* purposely do not highlight these things */ -.hljs-formula, -.hljs-params, -.hljs-property -{} - -/* base03 - #808080 - Comments, Invisibles, Line Highlighting */ -.hljs-comment { - color: #808080; -} - -/* base04 - #808080 - Dark Foreground (Used for status bars) */ -.hljs-tag { - color: #808080; -} - -/* base05 - #404040 - Default Foreground, Caret, Delimiters, Operators */ -.hljs-subst, -.hljs-punctuation, -.hljs-operator { - color: #404040; -} - -.hljs-operator { - opacity: 0.7; -} - -/* base08 - Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted */ -.hljs-bullet, -.hljs-variable, -.hljs-template-variable, -.hljs-selector-tag, -.hljs-name, -.hljs-deletion { - color: #c41a15; -} - -/* base09 - Integers, Boolean, Constants, XML Attributes, Markup Link Url */ -.hljs-symbol, -.hljs-number, -.hljs-link, -.hljs-attr, -.hljs-variable.constant_, -.hljs-literal { - color: #eb8500; -} - -/* base0A - Classes, Markup Bold, Search Text Background */ -.hljs-title, -.hljs-class .hljs-title, -.hljs-title.class_ -{ - color: #826b28; -} - -.hljs-strong { - font-weight:bold; - color: #826b28; -} - -/* base0B - Strings, Inherited Class, Markup Code, Diff Inserted */ -.hljs-code, -.hljs-addition, -.hljs-title.class_.inherited__, -.hljs-string { - color: #007400; -} - -/* base0C - Support, Regular Expressions, Escape Characters, Markup Quotes */ -.hljs-built_in, -.hljs-doctag, /* guessing */ -.hljs-quote, -.hljs-keyword.hljs-atrule, -.hljs-regexp { - color: #318495; -} - -/* base0D - Functions, Methods, Attribute IDs, Headings */ -.hljs-function .hljs-title, -.hljs-attribute, -.ruby .hljs-property, -.hljs-title.function_, -.hljs-section { - color: #0000ff; -} - -/* base0E - Keywords, Storage, Selector, Markup Italic, Diff Changed */ -.hljs-type, -/* .hljs-selector-id, */ -/* .hljs-selector-class, */ -/* .hljs-selector-attr, */ -/* .hljs-selector-pseudo, */ -.hljs-template-tag, -.diff .hljs-meta, -.hljs-keyword { - color: #a90d91; -} -.hljs-emphasis { - color: #a90d91; - font-style: italic; -} - -/* base0F - Deprecated, Opening/Closing Embedded Language Tags, e.g. */ -.hljs-meta, -/* - prevent top level .keyword and .string scopes - from leaking into meta by accident -*/ -.hljs-meta .hljs-keyword, -.hljs-meta .hljs-string -{ - color: #826b28; -} - -.hljs-meta .hljs-keyword, -/* for v10 compatible themes */ -.hljs-meta-keyword { - font-weight: bold; -} diff --git a/docs/pycon-au-2023/css/reveal-override.css b/docs/pycon-au-2023/css/reveal-override.css deleted file mode 100644 index edb223f..0000000 --- a/docs/pycon-au-2023/css/reveal-override.css +++ /dev/null @@ -1,56 +0,0 @@ -/* Overides for dist/theme/white-contrast.css */ - -@import url(../fonts/source-code-pro/source-code-pro.css); - -/* Don't stretch background images. */ -.slide-background-content { - background-size: contain !important; -} - -/* Don't show line numbers in code block.s */ -.hljs-ln-numbers { - display: none; -} - -:root { - /* TODO: Reason */ - --r-block-margin: 0px; - /* Don't uppercase headings. */ - --r-heading-text-transform: unset; - --r-code-font: Source Code Pro, monospace; - --r-code-font-size: 40px; -} - -/* I think the following causes images to be stretched. */ -.reveal .slides section, -.reveal .slides section > section { - max-width: unset; - max-height: unset; -} -/* This too... */ -/* Ensure certain elements are never larger than the slide itself. */ -.reveal img, -.reveal video, -.reveal iframe { - object-fit: unset; -} -/* Ensures images expand to 80% of the slide height. */ -.reveal img { - max-height: 80vh; - height: 80vh; -} - -.reveal pre { - /* Fixes the width to match other slide proportions. */ - width: 88.75%; - /* Removes top and bottom margins. */ - margin: auto; - /* Overwrites the font size. */ - font-size: var(--r-code-font-size); -} - -.reveal pre code { - /* TODO: Reason */ - /* Gives code a border of 80px less than 80% of the view height. */ - max-height: calc(80vh - 80px); -} diff --git a/docs/pycon-au-2023/fonts/source-code-pro/OFL.txt b/docs/pycon-au-2023/fonts/source-code-pro/OFL.txt deleted file mode 100755 index 6f4c937..0000000 --- a/docs/pycon-au-2023/fonts/source-code-pro/OFL.txt +++ /dev/null @@ -1,93 +0,0 @@ -Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries. - -This Font Software is licensed under the SIL Open Font License, Version 1.1. -This license is copied below, and is also available with a FAQ at: -http://scripts.sil.org/OFL - - ------------------------------------------------------------ -SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 ------------------------------------------------------------ - -PREAMBLE -The goals of the Open Font License (OFL) are to stimulate worldwide -development of collaborative font projects, to support the font creation -efforts of academic and linguistic communities, and to provide a free and -open framework in which fonts may be shared and improved in partnership -with others. - -The OFL allows the licensed fonts to be used, studied, modified and -redistributed freely as long as they are not sold by themselves. The -fonts, including any derivative works, can be bundled, embedded, -redistributed and/or sold with any software provided that any reserved -names are not used by derivative works. The fonts and derivatives, -however, cannot be released under any other type of license. The -requirement for fonts to remain under this license does not apply -to any document created using the fonts or their derivatives. - -DEFINITIONS -"Font Software" refers to the set of files released by the Copyright -Holder(s) under this license and clearly marked as such. This may -include source files, build scripts and documentation. - -"Reserved Font Name" refers to any names specified as such after the -copyright statement(s). - -"Original Version" refers to the collection of Font Software components as -distributed by the Copyright Holder(s). - -"Modified Version" refers to any derivative made by adding to, deleting, -or substituting -- in part or in whole -- any of the components of the -Original Version, by changing formats or by porting the Font Software to a -new environment. - -"Author" refers to any designer, engineer, programmer, technical -writer or other person who contributed to the Font Software. - -PERMISSION & CONDITIONS -Permission is hereby granted, free of charge, to any person obtaining -a copy of the Font Software, to use, study, copy, merge, embed, modify, -redistribute, and sell modified and unmodified copies of the Font -Software, subject to the following conditions: - -1) Neither the Font Software nor any of its individual components, -in Original or Modified Versions, may be sold by itself. - -2) Original or Modified Versions of the Font Software may be bundled, -redistributed and/or sold with any software, provided that each copy -contains the above copyright notice and this license. These can be -included either as stand-alone text files, human-readable headers or -in the appropriate machine-readable metadata fields within text or -binary files as long as those fields can be easily viewed by the user. - -3) No Modified Version of the Font Software may use the Reserved Font -Name(s) unless explicit written permission is granted by the corresponding -Copyright Holder. This restriction only applies to the primary font name as -presented to the users. - -4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font -Software shall not be used to promote, endorse or advertise any -Modified Version, except to acknowledge the contribution(s) of the -Copyright Holder(s) and the Author(s) or with their explicit written -permission. - -5) The Font Software, modified or unmodified, in part or in whole, -must be distributed entirely under this license, and must not be -distributed under any other license. The requirement for fonts to -remain under this license does not apply to any document created -using the Font Software. - -TERMINATION -This license becomes null and void if any of the above conditions are -not met. - -DISCLAIMER -THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT -OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE -COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL -DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM -OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/docs/pycon-au-2023/fonts/source-code-pro/README.txt b/docs/pycon-au-2023/fonts/source-code-pro/README.txt deleted file mode 100755 index 2e57b72..0000000 --- a/docs/pycon-au-2023/fonts/source-code-pro/README.txt +++ /dev/null @@ -1,79 +0,0 @@ -Source Code Pro Variable Font -============================= - -This download contains Source Code Pro as both variable fonts and static fonts. - -Source Code Pro is a variable font with this axis: - wght - -This means all the styles are contained in these files: - SourceCodePro-VariableFont_wght.ttf - SourceCodePro-Italic-VariableFont_wght.ttf - -If your app fully supports variable fonts, you can now pick intermediate styles -that aren’t available as static fonts. Not all apps support variable fonts, and -in those cases you can use the static font files for Source Code Pro: - static/SourceCodePro-ExtraLight.ttf - static/SourceCodePro-Light.ttf - static/SourceCodePro-Regular.ttf - static/SourceCodePro-Medium.ttf - static/SourceCodePro-SemiBold.ttf - static/SourceCodePro-Bold.ttf - static/SourceCodePro-ExtraBold.ttf - static/SourceCodePro-Black.ttf - static/SourceCodePro-ExtraLightItalic.ttf - static/SourceCodePro-LightItalic.ttf - static/SourceCodePro-Italic.ttf - static/SourceCodePro-MediumItalic.ttf - static/SourceCodePro-SemiBoldItalic.ttf - static/SourceCodePro-BoldItalic.ttf - static/SourceCodePro-ExtraBoldItalic.ttf - static/SourceCodePro-BlackItalic.ttf - -Get started ------------ - -1. Install the font files you want to use - -2. Use your app's font picker to view the font family and all the -available styles - -Learn more about variable fonts -------------------------------- - - https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts - https://variablefonts.typenetwork.com - https://medium.com/variable-fonts - -In desktop apps - - https://theblog.adobe.com/can-variable-fonts-illustrator-cc - https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts - -Online - - https://developers.google.com/fonts/docs/getting_started - https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide - https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts - -Installing fonts - - MacOS: https://support.apple.com/en-us/HT201749 - Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux - Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows - -Android Apps - - https://developers.google.com/fonts/docs/android - https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts - -License -------- -Please read the full license text (OFL.txt) to understand the permissions, -restrictions and requirements for usage, redistribution, and modification. - -You can use them in your products & projects – print or digital, -commercial or otherwise. - -This isn't legal advice, please consider consulting a lawyer and see the full -license for all details. diff --git a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-Black.ttf b/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-Black.ttf deleted file mode 100755 index cfc5f9f..0000000 Binary files a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-Black.ttf and /dev/null differ diff --git a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-BlackItalic.ttf b/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-BlackItalic.ttf deleted file mode 100755 index b9e96b2..0000000 Binary files a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-BlackItalic.ttf and /dev/null differ diff --git a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-Bold.ttf b/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-Bold.ttf deleted file mode 100755 index e034f70..0000000 Binary files a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-Bold.ttf and /dev/null differ diff --git a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-BoldItalic.ttf b/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-BoldItalic.ttf deleted file mode 100755 index 7b354cc..0000000 Binary files a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-BoldItalic.ttf and /dev/null differ diff --git a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-ExtraBold.ttf b/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-ExtraBold.ttf deleted file mode 100755 index a66b0f4..0000000 Binary files a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-ExtraBold.ttf and /dev/null differ diff --git a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-ExtraBoldItalic.ttf b/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-ExtraBoldItalic.ttf deleted file mode 100755 index 5041be4..0000000 Binary files a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-ExtraBoldItalic.ttf and /dev/null differ diff --git a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-ExtraLight.ttf b/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-ExtraLight.ttf deleted file mode 100755 index 2b652af..0000000 Binary files a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-ExtraLight.ttf and /dev/null differ diff --git a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-ExtraLightItalic.ttf b/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-ExtraLightItalic.ttf deleted file mode 100755 index 0345c21..0000000 Binary files a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-ExtraLightItalic.ttf and /dev/null differ diff --git a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-Italic-VariableFont_wght.ttf b/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-Italic-VariableFont_wght.ttf deleted file mode 100755 index 25febab..0000000 Binary files a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-Italic-VariableFont_wght.ttf and /dev/null differ diff --git a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-Italic.ttf b/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-Italic.ttf deleted file mode 100755 index ffbae58..0000000 Binary files a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-Italic.ttf and /dev/null differ diff --git a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-Light.ttf b/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-Light.ttf deleted file mode 100755 index aae9d48..0000000 Binary files a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-Light.ttf and /dev/null differ diff --git a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-LightItalic.ttf b/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-LightItalic.ttf deleted file mode 100755 index c1f3d4b..0000000 Binary files a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-LightItalic.ttf and /dev/null differ diff --git a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-Medium.ttf b/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-Medium.ttf deleted file mode 100755 index 1e42b5e..0000000 Binary files a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-Medium.ttf and /dev/null differ diff --git a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-MediumItalic.ttf b/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-MediumItalic.ttf deleted file mode 100755 index 580c00d..0000000 Binary files a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-MediumItalic.ttf and /dev/null differ diff --git a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-Regular.ttf b/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-Regular.ttf deleted file mode 100755 index daad874..0000000 Binary files a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-Regular.ttf and /dev/null differ diff --git a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-SemiBold.ttf b/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-SemiBold.ttf deleted file mode 100755 index 7dc26d9..0000000 Binary files a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-SemiBold.ttf and /dev/null differ diff --git a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-SemiBoldItalic.ttf b/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-SemiBoldItalic.ttf deleted file mode 100755 index 37595b0..0000000 Binary files a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-SemiBoldItalic.ttf and /dev/null differ diff --git a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-VariableFont_wght.ttf b/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-VariableFont_wght.ttf deleted file mode 100755 index cd96a61..0000000 Binary files a/docs/pycon-au-2023/fonts/source-code-pro/SourceCodePro-VariableFont_wght.ttf and /dev/null differ diff --git a/docs/pycon-au-2023/fonts/source-code-pro/source-code-pro.css b/docs/pycon-au-2023/fonts/source-code-pro/source-code-pro.css deleted file mode 100644 index 96d8a42..0000000 --- a/docs/pycon-au-2023/fonts/source-code-pro/source-code-pro.css +++ /dev/null @@ -1,27 +0,0 @@ -@font-face { - font-family: 'Source Code Pro'; - src: url('./SourceCodePro-Regular.ttf') format('truetype'); - font-weight: normal; - font-style: normal; -} - -@font-face { - font-family: 'Source Code Pro'; - src: url('./SourceCodePro-Italic.ttf') format('truetype'); - font-weight: normal; - font-style: italic; -} - -@font-face { - font-family: 'Source Code Pro'; - src: url('./SourceCodePro-Semibold.ttf') format('truetype'); - font-weight: 600; - font-style: normal; -} - -@font-face { - font-family: 'Source Code Pro'; - src: url('./SourceCodePro-SemiBoldItalic.ttf') format('truetype'); - font-weight: 600; - font-style: italic; -} diff --git a/docs/pycon-au-2023/index.html b/docs/pycon-au-2023/index.html index ac81cea..28f6cab 100755 --- a/docs/pycon-au-2023/index.html +++ b/docs/pycon-au-2023/index.html @@ -6,11 +6,11 @@ Refactoring for Fun and Profit - - - + + + - +
@@ -26,11 +26,11 @@
- - - + + + - + - + diff --git a/docs/pycon-au-2023/reveal.js b/docs/pycon-au-2023/reveal.js deleted file mode 160000 index e1c1805..0000000 --- a/docs/pycon-au-2023/reveal.js +++ /dev/null @@ -1 +0,0 @@ -Subproject commit e1c180565e48ae1b595f44edef319872262a99c7 diff --git a/docs/pycon-au-2023/reveal.js-plugins/markdown/markdown.esm.js b/docs/pycon-au-2023/reveal.js-plugins/markdown/markdown.esm.js deleted file mode 100644 index a902b14..0000000 --- a/docs/pycon-au-2023/reveal.js-plugins/markdown/markdown.esm.js +++ /dev/null @@ -1,7 +0,0 @@ -function e(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let t={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const n=/[&<>"']/,r=/[&<>"']/g,s=/[<>"']|&(?!#?\w+;)/,i=/[<>"']|&(?!#?\w+;)/g,l={"&":"&","<":"<",">":">",'"':""","'":"'"},a=e=>l[e];function o(e,t){if(t){if(n.test(e))return e.replace(r,a)}else if(s.test(e))return e.replace(i,a);return e}const c=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function h(e){return e.replace(c,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const p=/(^|[^\[])\^/g;function u(e,t){e=e.source||e,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(p,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}const g=/[^\w:]/g,d=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function f(e,t,n){if(e){let e;try{e=decodeURIComponent(h(n)).replace(g,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!d.test(n)&&(n=function(e,t){k[" "+e]||(x.test(e)?k[" "+e]=e+"/":k[" "+e]=z(e,"/",!0));e=k[" "+e];const n=-1===e.indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(m,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(b,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const k={},x=/^[^:]+:\/*[^/]*$/,m=/^([^:]+:)[\s\S]*$/,b=/^([^:]+:\/*[^/]*)[\s\S]*$/;const w={exec:function(){}};function _(e){let t,n,r=1;for(;r{let r=!1,s=t;for(;--s>=0&&"\\"===n[s];)r=!r;return r?"|":" |"})).split(/ \|/);let r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function A(e,t,n,r){const s=t.href,i=t.title?o(t.title):null,l=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:s,title:i,text:l,tokens:r.inlineTokens(l,[])};return r.state.inLink=!1,e}return{type:"image",raw:n,href:s,title:i,text:o(l)}}class T{constructor(e){this.options=e||t}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:z(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const r=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=r.length?e.slice(r.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim():t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=z(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}const n={type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(e,[]),text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,s,i,l,a,o,c,h,p,u,g,d=t[1].trim();const f=d.length>1,k={type:"list",raw:"",ordered:f,start:f?+d.slice(0,-1):"",loose:!1,items:[]};d=f?`\\d{1,9}\\${d.slice(-1)}`:`\\${d}`,this.options.pedantic&&(d=f?d:"[*+-]");const x=new RegExp(`^( {0,3}${d})((?: [^\\n]*)?(?:\\n|$))`);for(;e&&(g=!1,t=x.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),c=t[2].split("\n",1)[0],h=e.split("\n",1)[0],this.options.pedantic?(i=2,u=c.trimLeft()):(i=t[2].search(/[^ ]/),i=i>4?1:i,u=c.slice(i),i+=t[1].length),a=!1,!c&&/^ *$/.test(h)&&(n+=h+"\n",e=e.substring(h.length+1),g=!0),!g){const t=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])`);for(;e&&(p=e.split("\n",1)[0],c=p,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!t.test(c));){if(c.search(/[^ ]/)>=i||!c.trim())u+="\n"+c.slice(i);else{if(a)break;u+="\n"+c}a||c.trim()||(a=!0),n+=p+"\n",e=e.substring(p.length+1)}}k.loose||(o?k.loose=!0:/\n *\n *$/.test(n)&&(o=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(u),r&&(s="[ ] "!==r[0],u=u.replace(/^\[[ xX]\] +/,""))),k.items.push({type:"list_item",raw:n,task:!!r,checked:s,loose:!1,text:u}),k.raw+=n}k.items[k.items.length-1].raw=n.trimRight(),k.items[k.items.length-1].text=u.trimRight(),k.raw=k.raw.trimRight();const m=k.items.length;for(l=0;l"space"===e.type)),t=e.every((e=>{const t=e.raw.split("");let n=0;for(const e of t)if("\n"===e&&(n+=1),n>1)return!0;return!1}));!k.loose&&e.length&&t&&(k.loose=!0,k.items[l].loose=!0)}return k}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(e.type="paragraph",e.text=this.options.sanitizer?this.options.sanitizer(t[0]):o(t[0]),e.tokens=[],this.lexer.inline(e.text,e.tokens)),e}}def(e){const t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));return{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:y(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,r,s,i,l=e.align.length;for(n=0;n({text:e})));for(l=e.header.length,r=0;r/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):o(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^$/.test(e))return;const t=z(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,s=0;for(;s-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^$/.test(e)?n.slice(1):n.slice(1,-1)),A(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e||!e.href){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return A(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrong.lDelim.exec(e);if(!r)return;if(r[3]&&n.match(/[\p{L}\p{N}]/u))return;const s=r[1]||r[2]||"";if(!s||s&&(""===n||this.rules.inline.punctuation.exec(n))){const n=r[0].length-1;let s,i,l=n,a=0;const o="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(o.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=o.exec(t));){if(s=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!s)continue;if(i=s.length,r[3]||r[4]){l+=i;continue}if((r[5]||r[6])&&n%3&&!((n+i)%3)){a+=i;continue}if(l-=i,l>0)continue;if(i=Math.min(i,i+l+a),Math.min(n,i)%2){const t=e.slice(1,n+r.index+i);return{type:"em",raw:e.slice(0,n+r.index+i+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}const t=e.slice(2,n+r.index+i-1);return{type:"strong",raw:e.slice(0,n+r.index+i+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=o(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let e,r;return"@"===n[2]?(e=o(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=o(n[1]),r=e),{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=o(this.options.mangle?t(n[0]):n[0]),r="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=o(n[0]),r="www."===n[1]?"http://"+e:e}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):o(n[0]):n[0]:o(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const R={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:w,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};R.def=u(R.def).replace("label",R._label).replace("title",R._title).getRegex(),R.bullet=/(?:[*+-]|\d{1,9}[.)])/,R.listItemStart=u(/^( *)(bull) */).replace("bull",R.bullet).getRegex(),R.list=u(R.list).replace(/bull/g,R.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+R.def.source+")").getRegex(),R._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",R._comment=/|$)/,R.html=u(R.html,"i").replace("comment",R._comment).replace("tag",R._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),R.paragraph=u(R._paragraph).replace("hr",R.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",R._tag).getRegex(),R.blockquote=u(R.blockquote).replace("paragraph",R.paragraph).getRegex(),R.normal=_({},R),R.gfm=_({},R.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),R.gfm.table=u(R.gfm.table).replace("hr",R.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",R._tag).getRegex(),R.gfm.paragraph=u(R._paragraph).replace("hr",R.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",R.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",R._tag).getRegex(),R.pedantic=_({},R.normal,{html:u("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",R._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:w,paragraph:u(R.normal._paragraph).replace("hr",R.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",R.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const v={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:w,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:w,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}v._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",v.punctuation=u(v.punctuation).replace(/punctuation/g,v._punctuation).getRegex(),v.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,v.escapedEmSt=/\\\*|\\_/g,v._comment=u(R._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),v.emStrong.lDelim=u(v.emStrong.lDelim).replace(/punct/g,v._punctuation).getRegex(),v.emStrong.rDelimAst=u(v.emStrong.rDelimAst,"g").replace(/punct/g,v._punctuation).getRegex(),v.emStrong.rDelimUnd=u(v.emStrong.rDelimUnd,"g").replace(/punct/g,v._punctuation).getRegex(),v._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,v._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,v._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,v.autolink=u(v.autolink).replace("scheme",v._scheme).replace("email",v._email).getRegex(),v._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,v.tag=u(v.tag).replace("comment",v._comment).replace("attribute",v._attribute).getRegex(),v._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,v._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,v._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,v.link=u(v.link).replace("label",v._label).replace("href",v._href).replace("title",v._title).getRegex(),v.reflink=u(v.reflink).replace("label",v._label).replace("ref",R._label).getRegex(),v.nolink=u(v.nolink).replace("ref",R._label).getRegex(),v.reflinkSearch=u(v.reflinkSearch,"g").replace("reflink",v.reflink).replace("nolink",v.nolink).getRegex(),v.normal=_({},v),v.pedantic=_({},v.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:u(/^!?\[(label)\]\((.*?)\)/).replace("label",v._label).getRegex(),reflink:u(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",v._label).getRegex()}),v.gfm=_({},v.normal,{escape:u(v.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?t.push(n):(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else{if(s=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startBlock.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(s)))r=t[t.length-1],i&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n),i=s.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let n,r,s,i,l,a,o=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(o));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,i.index)+"["+$("a",i[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(o));)o=o.slice(0,i.index)+"["+$("a",i[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.escapedEmSt.exec(o));)o=o.slice(0,i.index)+"++"+o.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(l||(a=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,o,a))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,I))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,I))){if(s=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startInline.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(s,E))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(a=n.raw.slice(-1)),l=!0,r=t[t.length-1],r&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}}class L{constructor(e){this.options=e||t}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",r?'
'+(n?e:o(e,!0))+"
\n":"
"+(n?e:o(e,!0))+"
\n"}blockquote(e){return"
\n"+e+"
\n"}html(e){return e}heading(e,t,n,r){return this.options.headerIds?"'+e+"\n":""+e+"\n"}hr(){return this.options.xhtml?"
\n":"
\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"}listitem(e){return"
  • "+e+"
  • \n"}checkbox(e){return" "}paragraph(e){return"

    "+e+"

    \n"}table(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"}tablerow(e){return"\n"+e+"\n"}tablecell(e,t){const n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"}strong(e){return""+e+""}em(e){return""+e+""}codespan(e){return""+e+""}br(){return this.options.xhtml?"
    ":"
    "}del(e){return""+e+""}link(e,t,n){if(null===(e=f(this.options.sanitize,this.options.baseUrl,e)))return n;let r='",r}image(e,t,n){if(null===(e=f(this.options.sanitize,this.options.baseUrl,e)))return n;let r=''+n+'":">",r}text(e){return e}}class C{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class O{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{r++,n=e+"-"+r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class Z{constructor(e){this.options=e||t,this.options.renderer=this.options.renderer||new L,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new C,this.slugger=new O}static parse(e,t){return new Z(t).parse(e)}static parseInline(e,t){return new Z(t).parseInline(e)}parse(e,t=!0){let n,r,s,i,l,a,o,c,p,u,g,d,f,k,x,m,b,w,_,y="";const z=e.length;for(n=0;n0&&"paragraph"===x.tokens[0].type?(x.tokens[0].text=w+" "+x.tokens[0].text,x.tokens[0].tokens&&x.tokens[0].tokens.length>0&&"text"===x.tokens[0].tokens[0].type&&(x.tokens[0].tokens[0].text=w+" "+x.tokens[0].tokens[0].text)):x.tokens.unshift({type:"text",text:w}):k+=w),k+=this.parse(x.tokens,f),p+=this.renderer.listitem(k,b,m);y+=this.renderer.list(p,g,d);continue;case"html":y+=this.renderer.html(u.text);continue;case"paragraph":y+=this.renderer.paragraph(this.parseInline(u.tokens));continue;case"text":for(p=u.tokens?this.parseInline(u.tokens):u.text;n+1{r(e.text,e.lang,(function(t,n){if(t)return i(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),l--,0===l&&i()}))}),0))})),void(0===l&&i())}try{const n=q.lex(e,t);return t.walkTokens&&N.walkTokens(n,t.walkTokens),Z.parse(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"

    An error occurred:

    "+o(e.message+"",!0)+"
    ";throw e}}N.options=N.setOptions=function(e){var n;return _(N.defaults,e),n=N.defaults,t=n,N},N.getDefaults=e,N.defaults=t,N.use=function(...e){const t=_({},...e),n=N.defaults.extensions||{renderers:{},childTokens:{}};let r;e.forEach((e=>{if(e.extensions&&(r=!0,e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const t=n.renderers?n.renderers[e.name]:null;n.renderers[e.name]=t?function(...n){let r=e.renderer.apply(this,n);return!1===r&&(r=t.apply(this,n)),r}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");n[e.level]?n[e.level].unshift(e.tokenizer):n[e.level]=[e.tokenizer],e.start&&("block"===e.level?n.startBlock?n.startBlock.push(e.start):n.startBlock=[e.start]:"inline"===e.level&&(n.startInline?n.startInline.push(e.start):n.startInline=[e.start]))}e.childTokens&&(n.childTokens[e.name]=e.childTokens)}))),e.renderer){const n=N.defaults.renderer||new L;for(const t in e.renderer){const r=n[t];n[t]=(...s)=>{let i=e.renderer[t].apply(n,s);return!1===i&&(i=r.apply(n,s)),i}}t.renderer=n}if(e.tokenizer){const n=N.defaults.tokenizer||new T;for(const t in e.tokenizer){const r=n[t];n[t]=(...s)=>{let i=e.tokenizer[t].apply(n,s);return!1===i&&(i=r.apply(n,s)),i}}t.tokenizer=n}if(e.walkTokens){const n=N.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens.call(this,t),n&&n.call(this,t)}}r&&(t.extensions=n),N.setOptions(t)}))},N.walkTokens=function(e,t){for(const n of e)switch(t.call(N,n),n.type){case"table":for(const e of n.header)N.walkTokens(e.tokens,t);for(const e of n.rows)for(const n of e)N.walkTokens(n.tokens,t);break;case"list":N.walkTokens(n.items,t);break;default:N.defaults.extensions&&N.defaults.extensions.childTokens&&N.defaults.extensions.childTokens[n.type]?N.defaults.extensions.childTokens[n.type].forEach((function(e){N.walkTokens(n[e],t)})):n.tokens&&N.walkTokens(n.tokens,t)}},N.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");S(t=_({},N.defaults,t||{}));try{const n=q.lexInline(e,t);return t.walkTokens&&N.walkTokens(n,t.walkTokens),Z.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"

    An error occurred:

    "+o(e.message+"",!0)+"
    ";throw e}},N.Parser=Z,N.parser=Z.parse,N.Renderer=L,N.TextRenderer=C,N.Lexer=q,N.lexer=q.lex,N.Tokenizer=T,N.Slugger=O,N.parse=N; -/*! - * The reveal.js markdown plugin. Handles parsing of - * markdown inside of presentations as well as loading - * of external markdown documents. - */ -const D="__SCRIPT_END__",M=/\[\s*((\d*):)?\s*([\s\d,|-]*)\]/,P={"&":"&","<":"<",">":">",'"':""","'":"'"};export default()=>{let e;function t(e){var t=(e.querySelector("[data-template]")||e.querySelector("script")||e).textContent,n=(t=t.replace(new RegExp(D,"g"),"<\/script>")).match(/^\n?(\s*)/)[1].length,r=t.match(/^\n?(\t*)/)[1].length;return r>0?t=t.replace(new RegExp("\\n?\\t{"+r+"}(.*)","g"),(function(e,t){return"\n"+t})):n>1&&(t=t.replace(new RegExp("\\n? {"+n+"}(.*)","g"),(function(e,t){return"\n"+t}))),t}function n(e){for(var t=e.attributes,n=[],r=0,s=t.length;r=2){var l=i.slice(1).join("\n\n").trim(),a=i[0];console.log("content %o, notes: %o",a,l),e=N(n+a)+'"}return'' ); - - var leadingWs = text.match( /^\n?(\s*)/ )[1].length, - leadingTabs = text.match( /^\n?(\t*)/ )[1].length; - - if( leadingTabs > 0 ) { - text = text.replace( new RegExp('\\n?\\t{' + leadingTabs + '}(.*)','g'), function(m, p1) { return '\n' + p1 ; } ); - } - else if( leadingWs > 1 ) { - text = text.replace( new RegExp('\\n? {' + leadingWs + '}(.*)', 'g'), function(m, p1) { return '\n' + p1 ; } ); - } - - return text; - - } - - /** - * Given a markdown slide section element, this will - * return all arguments that aren't related to markdown - * parsing. Used to forward any other user-defined arguments - * to the output markdown slide. - */ - function getForwardedAttributes( section ) { - - var attributes = section.attributes; - var result = []; - - for( var i = 0, len = attributes.length; i < len; i++ ) { - var name = attributes[i].name, - value = attributes[i].value; - - // disregard attributes that are used for markdown loading/parsing - if( /data\-(markdown|separator|vertical|notes)/gi.test( name ) ) continue; - - if( value ) { - result.push( name + '="' + value + '"' ); - } - else { - result.push( name ); - } - } - - return result.join( ' ' ); - - } - - /** - * Inspects the given options and fills out default - * values for what's not defined. - */ - function getSlidifyOptions( options ) { - const markdownConfig = deck.getConfig().markdown; - - options = options || {}; - options.separator = options.separator || markdownConfig?.separator || DEFAULT_SLIDE_SEPARATOR; - options.verticalSeparator = options.verticalSeparator || markdownConfig?.verticalSeparator || DEFAULT_VERTICAL_SEPARATOR; - options.notesSeparator = options.notesSeparator || markdownConfig?.notesSeparator || DEFAULT_NOTES_SEPARATOR; - options.attributes = options.attributes || ''; - - return options; - - } - - /** - * Helper function for constructing a markdown slide. - */ - function createMarkdownSlide( content, options ) { - - options = getSlidifyOptions( options ); - - let fencedContent = ""; - let newContent = content; - if (content.includes("```\n")) { - let postFenceIndex = content.lastIndexOf("```") + 3; - fencedContent = content.slice(0, postFenceIndex + 1); - newContent = content.slice(postFenceIndex); - } - - var notesMatch = newContent.split( new RegExp( options.notesSeparator, 'mgi' )); - - if( notesMatch.length >= 2 ) { - var notes = notesMatch.slice(1).join("\n\n").trim(); - var contentMatch = notesMatch[0]; - console.log("content %o, notes: %o", contentMatch, notes); - content = marked(fencedContent + contentMatch) + ''; - } - - // prevent script end tags in the content from interfering with parsing - content = content.replace( /<\/script>/g, SCRIPT_END_PLACEHOLDER ); - - return ''; - - } - - /** - * Parses a data string into multiple slides based - * on the passed in separator arguments. - */ - function slidify( markdown, options ) { - - options = getSlidifyOptions( options ); - - var separatorRegex = new RegExp( options.separator + ( options.verticalSeparator ? '|' + options.verticalSeparator : '' ), 'mg' ), - horizontalSeparatorRegex = new RegExp( options.separator ); - - var matches, - lastIndex = 0, - isHorizontal, - wasHorizontal = true, - content, - sectionStack = []; - - // iterate until all blocks between separators are stacked up - while( matches = separatorRegex.exec( markdown ) ) { - var notes = null; - - // determine direction (horizontal by default) - isHorizontal = horizontalSeparatorRegex.test( matches[0] ); - - if( !isHorizontal && wasHorizontal ) { - // create vertical stack - sectionStack.push( [] ); - } - - // pluck slide content from markdown input - content = markdown.substring( lastIndex, matches.index ); - - if( isHorizontal && wasHorizontal ) { - // add to horizontal stack - sectionStack.push( content ); - } - else { - // add to vertical stack - sectionStack[sectionStack.length-1].push( content ); - } - - lastIndex = separatorRegex.lastIndex; - wasHorizontal = isHorizontal; - } - - // add the remaining slide - ( wasHorizontal ? sectionStack : sectionStack[sectionStack.length-1] ).push( markdown.substring( lastIndex ) ); - - var markdownSections = ''; - - // flatten the hierarchical stack, and insert
    tags - for( var i = 0, len = sectionStack.length; i < len; i++ ) { - // vertical - if( sectionStack[i] instanceof Array ) { - markdownSections += '
    '; - - sectionStack[i].forEach( function( child ) { - markdownSections += '
    ' + createMarkdownSlide( child, options ) + '
    '; - } ); - - markdownSections += '
    '; - } - else { - markdownSections += '
    ' + createMarkdownSlide( sectionStack[i], options ) + '
    '; - } - } - - return markdownSections; - - } - - /** - * Parses any current data-markdown slides, splits - * multi-slide markdown into separate sections and - * handles loading of external markdown. - */ - function processSlides( scope ) { - - return new Promise( function( resolve ) { - - var externalPromises = []; - - [].slice.call( scope.querySelectorAll( 'section[data-markdown]:not([data-markdown-parsed])') ).forEach( function( section, i ) { - - if( section.getAttribute( 'data-markdown' ).length ) { - - externalPromises.push( loadExternalMarkdown( section ).then( - - // Finished loading external file - function( xhr, url ) { - section.outerHTML = slidify( xhr.responseText, { - separator: section.getAttribute( 'data-separator' ), - verticalSeparator: section.getAttribute( 'data-separator-vertical' ), - notesSeparator: section.getAttribute( 'data-separator-notes' ), - attributes: getForwardedAttributes( section ) - }); - }, - - // Failed to load markdown - function( xhr, url ) { - section.outerHTML = '
    ' + - 'ERROR: The attempt to fetch ' + url + ' failed with HTTP status ' + xhr.status + '.' + - 'Check your browser\'s JavaScript console for more details.' + - '

    Remember that you need to serve the presentation HTML from a HTTP server.

    ' + - '
    '; - } - - ) ); - - } - else { - - section.outerHTML = slidify( getMarkdownFromSlide( section ), { - separator: section.getAttribute( 'data-separator' ), - verticalSeparator: section.getAttribute( 'data-separator-vertical' ), - notesSeparator: section.getAttribute( 'data-separator-notes' ), - attributes: getForwardedAttributes( section ) - }); - - } - - }); - - Promise.all( externalPromises ).then( resolve ); - - } ); - - } - - function loadExternalMarkdown( section ) { - - return new Promise( function( resolve, reject ) { - - var xhr = new XMLHttpRequest(), - url = section.getAttribute( 'data-markdown' ); - - var datacharset = section.getAttribute( 'data-charset' ); - - // see https://developer.mozilla.org/en-US/docs/Web/API/element.getAttribute#Notes - if( datacharset != null && datacharset != '' ) { - xhr.overrideMimeType( 'text/html; charset=' + datacharset ); - } - - xhr.onreadystatechange = function( section, xhr ) { - if( xhr.readyState === 4 ) { - // file protocol yields status code 0 (useful for local debug, mobile applications etc.) - if ( ( xhr.status >= 200 && xhr.status < 300 ) || xhr.status === 0 ) { - - resolve( xhr, url ); - - } - else { - - reject( xhr, url ); - - } - } - }.bind( this, section, xhr ); - - xhr.open( 'GET', url, true ); - - try { - xhr.send(); - } - catch ( e ) { - console.warn( 'Failed to get the Markdown file ' + url + '. Make sure that the presentation and the file are served by a HTTP server and the file can be found there. ' + e ); - resolve( xhr, url ); - } - - } ); - - } - - /** - * Check if a node value has the attributes pattern. - * If yes, extract it and add that value as one or several attributes - * to the target element. - * - * You need Cache Killer on Chrome to see the effect on any FOM transformation - * directly on refresh (F5) - * http://stackoverflow.com/questions/5690269/disabling-chrome-cache-for-website-development/7000899#answer-11786277 - */ - function addAttributeInElement( node, elementTarget, separator ) { - - var mardownClassesInElementsRegex = new RegExp( separator, 'mg' ); - var mardownClassRegex = new RegExp( "([^\"= ]+?)=\"([^\"]+?)\"|(data-[^\"= ]+?)(?=[\" ])", 'mg' ); - var nodeValue = node.nodeValue; - var matches, - matchesClass; - if( matches = mardownClassesInElementsRegex.exec( nodeValue ) ) { - - var classes = matches[1]; - nodeValue = nodeValue.substring( 0, matches.index ) + nodeValue.substring( mardownClassesInElementsRegex.lastIndex ); - node.nodeValue = nodeValue; - while( matchesClass = mardownClassRegex.exec( classes ) ) { - if( matchesClass[2] ) { - elementTarget.setAttribute( matchesClass[1], matchesClass[2] ); - } else { - elementTarget.setAttribute( matchesClass[3], "" ); - } - } - return true; - } - return false; - } - - /** - * Add attributes to the parent element of a text node, - * or the element of an attribute node. - */ - function addAttributes( section, element, previousElement, separatorElementAttributes, separatorSectionAttributes ) { - - if ( element != null && element.childNodes != undefined && element.childNodes.length > 0 ) { - var previousParentElement = element; - for( var i = 0; i < element.childNodes.length; i++ ) { - var childElement = element.childNodes[i]; - if ( i > 0 ) { - var j = i - 1; - while ( j >= 0 ) { - var aPreviousChildElement = element.childNodes[j]; - if ( typeof aPreviousChildElement.setAttribute == 'function' && aPreviousChildElement.tagName != "BR" ) { - previousParentElement = aPreviousChildElement; - break; - } - j = j - 1; - } - } - var parentSection = section; - if( childElement.nodeName == "section" ) { - parentSection = childElement ; - previousParentElement = childElement ; - } - if ( typeof childElement.setAttribute == 'function' || childElement.nodeType == Node.COMMENT_NODE ) { - addAttributes( parentSection, childElement, previousParentElement, separatorElementAttributes, separatorSectionAttributes ); - } - } - } - - if ( element.nodeType == Node.COMMENT_NODE ) { - if ( addAttributeInElement( element, previousElement, separatorElementAttributes ) == false ) { - addAttributeInElement( element, section, separatorSectionAttributes ); - } - } - } - - /** - * Converts any current data-markdown slides in the - * DOM to HTML. - */ - function convertSlides() { - - var sections = deck.getRevealElement().querySelectorAll( '[data-markdown]:not([data-markdown-parsed])'); - - [].slice.call( sections ).forEach( function( section ) { - - section.setAttribute( 'data-markdown-parsed', true ) - - var notes = section.querySelector( 'aside.notes' ); - var markdown = getMarkdownFromSlide( section ); - - section.innerHTML = marked( markdown ); - addAttributes( section, section, null, section.getAttribute( 'data-element-attributes' ) || - section.parentNode.getAttribute( 'data-element-attributes' ) || - DEFAULT_ELEMENT_ATTRIBUTES_SEPARATOR, - section.getAttribute( 'data-attributes' ) || - section.parentNode.getAttribute( 'data-attributes' ) || - DEFAULT_SLIDE_ATTRIBUTES_SEPARATOR); - - // If there were notes, we need to re-add them after - // having overwritten the section's HTML - if( notes ) { - section.appendChild( notes ); - } - - } ); - - return Promise.resolve(); - - } - - function escapeForHTML( input ) { - - return input.replace( /([&<>'"])/g, char => HTML_ESCAPE_MAP[char] ); - - } - - return { - id: 'markdown', - - /** - * Starts processing and converting Markdown within the - * current reveal.js deck. - */ - init: function( reveal ) { - - deck = reveal; - - let { renderer, animateLists, ...markedOptions } = deck.getConfig().markdown || {}; - - if( !renderer ) { - renderer = new marked.Renderer(); - - renderer.code = ( code, language ) => { - - // Off by default - let lineNumberOffset = ''; - let lineNumbers = ''; - - // Users can opt in to show line numbers and highlight - // specific lines. - // ```javascript [] show line numbers - // ```javascript [1,4-8] highlights lines 1 and 4-8 - // optional line number offset: - // ```javascript [25: 1,4-8] start line numbering at 25, - // highlights lines 1 (numbered as 25) and 4-8 (numbered as 28-32) - if( CODE_LINE_NUMBER_REGEX.test( language ) ) { - let lineNumberOffsetMatch = language.match( CODE_LINE_NUMBER_REGEX )[2]; - if (lineNumberOffsetMatch){ - lineNumberOffset = `data-ln-start-from="${lineNumberOffsetMatch.trim()}"`; - } - - lineNumbers = language.match( CODE_LINE_NUMBER_REGEX )[3].trim(); - // disable line numbers here? - lineNumbers = `data-line-numbers="${lineNumbers}"`; - language = language.replace( CODE_LINE_NUMBER_REGEX, '' ).trim(); - } - - // Escape before this gets injected into the DOM to - // avoid having the HTML parser alter our code before - // highlight.js is able to read it - code = escapeForHTML( code ); - - // return `
    ${code}
    `; - - return `
    ${code}
    `; - }; - } - - if( animateLists === true ) { - renderer.listitem = text => `
  • ${text}
  • `; - } - - marked.setOptions( { - renderer, - ...markedOptions - } ); - - return processSlides( deck.getRevealElement() ).then( convertSlides ); - - }, - - // TODO: Do these belong in the API? - processSlides: processSlides, - convertSlides: convertSlides, - slidify: slidify, - marked: marked - } - -}; - -export default Plugin; diff --git a/docs/kiwi-pycon-2023/reveal.js b/docs/reveal.js similarity index 100% rename from docs/kiwi-pycon-2023/reveal.js rename to docs/reveal.js diff --git a/docs/kiwi-pycon-2023/reveal.js-plugins/markdown/markdown.esm.js b/docs/reveal.js-plugins/markdown/markdown.esm.js similarity index 100% rename from docs/kiwi-pycon-2023/reveal.js-plugins/markdown/markdown.esm.js rename to docs/reveal.js-plugins/markdown/markdown.esm.js diff --git a/docs/kiwi-pycon-2023/reveal.js-plugins/markdown/markdown.js b/docs/reveal.js-plugins/markdown/markdown.js similarity index 100% rename from docs/kiwi-pycon-2023/reveal.js-plugins/markdown/markdown.js rename to docs/reveal.js-plugins/markdown/markdown.js diff --git a/docs/kiwi-pycon-2023/reveal.js-plugins/markdown/plugin.js b/docs/reveal.js-plugins/markdown/plugin.js similarity index 100% rename from docs/kiwi-pycon-2023/reveal.js-plugins/markdown/plugin.js rename to docs/reveal.js-plugins/markdown/plugin.js