diff --git a/.doctrees/environment.pickle b/.doctrees/environment.pickle index df8f7d1..e847167 100644 Binary files a/.doctrees/environment.pickle and b/.doctrees/environment.pickle differ diff --git a/.doctrees/index.doctree b/.doctrees/index.doctree index 25a8167..f8a395a 100644 Binary files a/.doctrees/index.doctree and b/.doctrees/index.doctree differ diff --git a/README.md b/README.md index ebe72d3..29152cf 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# discordpy-ko.github.io -__**CSS, 파비콘 등의 HTML로 변경해야하는 것 이외에는 업데이트하지 마세요.**__ -__**업데이트는 디스코드 서버에서 명령어 실행으로 해주세요.**__ -https://discord.gg/YbfbxpX -https://discordpy.cpbu.xyz/ +# discordpy-ko.github.io +__**CSS, 파비콘 등의 HTML로 변경해야하는 것 이외에는 업데이트하지 마세요.**__ +__**업데이트는 디스코드 서버에서 명령어 실행으로 해주세요.**__ +https://discord.gg/YbfbxpX +https://discordpy.cpbu.xyz/ diff --git a/_static/basic.css b/_static/basic.css index f013fe3..24bc73e 100644 --- a/_static/basic.css +++ b/_static/basic.css @@ -1,855 +1,855 @@ -/* - * basic.css - * ~~~~~~~~~ - * - * Sphinx stylesheet -- basic theme. - * - * :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS. - * :license: BSD, see LICENSE for details. - * - */ - -/* -- main layout ----------------------------------------------------------- */ - -div.clearer { - clear: both; -} - -div.section::after { - display: block; - content: ''; - clear: left; -} - -/* -- relbar ---------------------------------------------------------------- */ - -div.related { - width: 100%; - font-size: 90%; -} - -div.related h3 { - display: none; -} - -div.related ul { - margin: 0; - padding: 0 0 0 10px; - list-style: none; -} - -div.related li { - display: inline; -} - -div.related li.right { - float: right; - margin-right: 5px; -} - -/* -- sidebar --------------------------------------------------------------- */ - -div.sphinxsidebarwrapper { - padding: 10px 5px 0 10px; -} - -div.sphinxsidebar { - float: left; - width: 230px; - margin-left: -100%; - font-size: 90%; - word-wrap: break-word; - overflow-wrap : break-word; -} - -div.sphinxsidebar ul { - list-style: none; -} - -div.sphinxsidebar ul ul, -div.sphinxsidebar ul.want-points { - margin-left: 20px; - list-style: square; -} - -div.sphinxsidebar ul ul { - margin-top: 0; - margin-bottom: 0; -} - -div.sphinxsidebar form { - margin-top: 10px; -} - -div.sphinxsidebar input { - border: 1px solid #98dbcc; - font-family: sans-serif; - font-size: 1em; -} - -div.sphinxsidebar #searchbox form.search { - overflow: hidden; -} - -div.sphinxsidebar #searchbox input[type="text"] { - float: left; - width: 80%; - padding: 0.25em; - box-sizing: border-box; -} - -div.sphinxsidebar #searchbox input[type="submit"] { - float: left; - width: 20%; - border-left: none; - padding: 0.25em; - box-sizing: border-box; -} - - -img { - border: 0; - max-width: 100%; -} - -/* -- search page ----------------------------------------------------------- */ - -ul.search { - margin: 10px 0 0 20px; - padding: 0; -} - -ul.search li { - padding: 5px 0 5px 20px; - background-image: url(file.png); - background-repeat: no-repeat; - background-position: 0 7px; -} - -ul.search li a { - font-weight: bold; -} - -ul.search li div.context { - color: #888; - margin: 2px 0 0 30px; - text-align: left; -} - -ul.keywordmatches li.goodmatch a { - font-weight: bold; -} - -/* -- index page ------------------------------------------------------------ */ - -table.contentstable { - width: 90%; - margin-left: auto; - margin-right: auto; -} - -table.contentstable p.biglink { - line-height: 150%; -} - -a.biglink { - font-size: 1.3em; -} - -span.linkdescr { - font-style: italic; - padding-top: 5px; - font-size: 90%; -} - -/* -- general index --------------------------------------------------------- */ - -table.indextable { - width: 100%; -} - -table.indextable td { - text-align: left; - vertical-align: top; -} - -table.indextable ul { - margin-top: 0; - margin-bottom: 0; - list-style-type: none; -} - -table.indextable > tbody > tr > td > ul { - padding-left: 0em; -} - -table.indextable tr.pcap { - height: 10px; -} - -table.indextable tr.cap { - margin-top: 10px; - background-color: #f2f2f2; -} - -img.toggler { - margin-right: 3px; - margin-top: 3px; - cursor: pointer; -} - -div.modindex-jumpbox { - border-top: 1px solid #ddd; - border-bottom: 1px solid #ddd; - margin: 1em 0 1em 0; - padding: 0.4em; -} - -div.genindex-jumpbox { - border-top: 1px solid #ddd; - border-bottom: 1px solid #ddd; - margin: 1em 0 1em 0; - padding: 0.4em; -} - -/* -- domain module index --------------------------------------------------- */ - -table.modindextable td { - padding: 2px; - border-collapse: collapse; -} - -/* -- general body styles --------------------------------------------------- */ - -div.body { - min-width: 450px; - max-width: 800px; -} - -div.body p, div.body dd, div.body li, div.body blockquote { - -moz-hyphens: auto; - -ms-hyphens: auto; - -webkit-hyphens: auto; - hyphens: auto; -} - -a.headerlink { - visibility: hidden; -} - -a.brackets:before, -span.brackets > a:before{ - content: "["; -} - -a.brackets:after, -span.brackets > a:after { - content: "]"; -} - -h1:hover > a.headerlink, -h2:hover > a.headerlink, -h3:hover > a.headerlink, -h4:hover > a.headerlink, -h5:hover > a.headerlink, -h6:hover > a.headerlink, -dt:hover > a.headerlink, -caption:hover > a.headerlink, -p.caption:hover > a.headerlink, -div.code-block-caption:hover > a.headerlink { - visibility: visible; -} - -div.body p.caption { - text-align: inherit; -} - -div.body td { - text-align: left; -} - -.first { - margin-top: 0 !important; -} - -p.rubric { - margin-top: 30px; - font-weight: bold; -} - -img.align-left, .figure.align-left, object.align-left { - clear: left; - float: left; - margin-right: 1em; -} - -img.align-right, .figure.align-right, object.align-right { - clear: right; - float: right; - margin-left: 1em; -} - -img.align-center, .figure.align-center, object.align-center { - display: block; - margin-left: auto; - margin-right: auto; -} - -img.align-default, .figure.align-default { - display: block; - margin-left: auto; - margin-right: auto; -} - -.align-left { - text-align: left; -} - -.align-center { - text-align: center; -} - -.align-default { - text-align: center; -} - -.align-right { - text-align: right; -} - -/* -- sidebars -------------------------------------------------------------- */ - -div.sidebar { - margin: 0 0 0.5em 1em; - border: 1px solid #ddb; - padding: 7px; - background-color: #ffe; - width: 40%; - float: right; - clear: right; - overflow-x: auto; -} - -p.sidebar-title { - font-weight: bold; -} - -div.admonition, div.topic, blockquote { - clear: left; -} - -/* -- topics ---------------------------------------------------------------- */ - -div.topic { - border: 1px solid #ccc; - padding: 7px; - margin: 10px 0 10px 0; -} - -p.topic-title { - font-size: 1.1em; - font-weight: bold; - margin-top: 10px; -} - -/* -- admonitions ----------------------------------------------------------- */ - -div.admonition { - margin-top: 10px; - margin-bottom: 10px; - padding: 7px; -} - -div.admonition dt { - font-weight: bold; -} - -p.admonition-title { - margin: 0px 10px 5px 0px; - font-weight: bold; -} - -div.body p.centered { - text-align: center; - margin-top: 25px; -} - -/* -- content of sidebars/topics/admonitions -------------------------------- */ - -div.sidebar > :last-child, -div.topic > :last-child, -div.admonition > :last-child { - margin-bottom: 0; -} - -div.sidebar::after, -div.topic::after, -div.admonition::after, -blockquote::after { - display: block; - content: ''; - clear: both; -} - -/* -- tables ---------------------------------------------------------------- */ - -table.docutils { - margin-top: 10px; - margin-bottom: 10px; - border: 0; - border-collapse: collapse; -} - -table.align-center { - margin-left: auto; - margin-right: auto; -} - -table.align-default { - margin-left: auto; - margin-right: auto; -} - -table caption span.caption-number { - font-style: italic; -} - -table caption span.caption-text { -} - -table.docutils td, table.docutils th { - padding: 1px 8px 1px 5px; - border-top: 0; - border-left: 0; - border-right: 0; - border-bottom: 1px solid #aaa; -} - -table.footnote td, table.footnote th { - border: 0 !important; -} - -th { - text-align: left; - padding-right: 5px; -} - -table.citation { - border-left: solid 1px gray; - margin-left: 1px; -} - -table.citation td { - border-bottom: none; -} - -th > :first-child, -td > :first-child { - margin-top: 0px; -} - -th > :last-child, -td > :last-child { - margin-bottom: 0px; -} - -/* -- figures --------------------------------------------------------------- */ - -div.figure { - margin: 0.5em; - padding: 0.5em; -} - -div.figure p.caption { - padding: 0.3em; -} - -div.figure p.caption span.caption-number { - font-style: italic; -} - -div.figure p.caption span.caption-text { -} - -/* -- field list styles ----------------------------------------------------- */ - -table.field-list td, table.field-list th { - border: 0 !important; -} - -.field-list ul { - margin: 0; - padding-left: 1em; -} - -.field-list p { - margin: 0; -} - -.field-name { - -moz-hyphens: manual; - -ms-hyphens: manual; - -webkit-hyphens: manual; - hyphens: manual; -} - -/* -- hlist styles ---------------------------------------------------------- */ - -table.hlist { - margin: 1em 0; -} - -table.hlist td { - vertical-align: top; -} - - -/* -- other body styles ----------------------------------------------------- */ - -ol.arabic { - list-style: decimal; -} - -ol.loweralpha { - list-style: lower-alpha; -} - -ol.upperalpha { - list-style: upper-alpha; -} - -ol.lowerroman { - list-style: lower-roman; -} - -ol.upperroman { - list-style: upper-roman; -} - -:not(li) > ol > li:first-child > :first-child, -:not(li) > ul > li:first-child > :first-child { - margin-top: 0px; -} - -:not(li) > ol > li:last-child > :last-child, -:not(li) > ul > li:last-child > :last-child { - margin-bottom: 0px; -} - -ol.simple ol p, -ol.simple ul p, -ul.simple ol p, -ul.simple ul p { - margin-top: 0; -} - -ol.simple > li:not(:first-child) > p, -ul.simple > li:not(:first-child) > p { - margin-top: 0; -} - -ol.simple p, -ul.simple p { - margin-bottom: 0; -} - -dl.footnote > dt, -dl.citation > dt { - float: left; - margin-right: 0.5em; -} - -dl.footnote > dd, -dl.citation > dd { - margin-bottom: 0em; -} - -dl.footnote > dd:after, -dl.citation > dd:after { - content: ""; - clear: both; -} - -dl.field-list { - display: grid; - grid-template-columns: fit-content(30%) auto; -} - -dl.field-list > dt { - font-weight: bold; - word-break: break-word; - padding-left: 0.5em; - padding-right: 5px; -} - -dl.field-list > dt:after { - content: ":"; -} - -dl.field-list > dd { - padding-left: 0.5em; - margin-top: 0em; - margin-left: 0em; - margin-bottom: 0em; -} - -dl { - margin-bottom: 15px; -} - -dd > :first-child { - margin-top: 0px; -} - -dd ul, dd table { - margin-bottom: 10px; -} - -dd { - margin-top: 3px; - margin-bottom: 10px; - margin-left: 30px; -} - -dl > dd:last-child, -dl > dd:last-child > :last-child { - margin-bottom: 0; -} - -dt:target, span.highlighted { - background-color: #fbe54e; -} - -rect.highlighted { - fill: #fbe54e; -} - -dl.glossary dt { - font-weight: bold; - font-size: 1.1em; -} - -.optional { - font-size: 1.3em; -} - -.sig-paren { - font-size: larger; -} - -.versionmodified { - font-style: italic; -} - -.system-message { - background-color: #fda; - padding: 5px; - border: 3px solid red; -} - -.footnote:target { - background-color: #ffa; -} - -.line-block { - display: block; - margin-top: 1em; - margin-bottom: 1em; -} - -.line-block .line-block { - margin-top: 0; - margin-bottom: 0; - margin-left: 1.5em; -} - -.guilabel, .menuselection { - font-family: sans-serif; -} - -.accelerator { - text-decoration: underline; -} - -.classifier { - font-style: oblique; -} - -.classifier:before { - font-style: normal; - margin: 0.5em; - content: ":"; -} - -abbr, acronym { - border-bottom: dotted 1px; - cursor: help; -} - -/* -- code displays --------------------------------------------------------- */ - -pre { - overflow: auto; - overflow-y: hidden; /* fixes display issues on Chrome browsers */ -} - -pre, div[class*="highlight-"] { - clear: both; -} - -span.pre { - -moz-hyphens: none; - -ms-hyphens: none; - -webkit-hyphens: none; - hyphens: none; -} - -div[class*="highlight-"] { - margin: 1em 0; -} - -td.linenos pre { - border: 0; - background-color: transparent; - color: #aaa; -} - -table.highlighttable { - display: block; -} - -table.highlighttable tbody { - display: block; -} - -table.highlighttable tr { - display: flex; -} - -table.highlighttable td { - margin: 0; - padding: 0; -} - -table.highlighttable td.linenos { - padding-right: 0.5em; -} - -table.highlighttable td.code { - flex: 1; - overflow: hidden; -} - -.highlight .hll { - display: block; -} - -div.highlight pre, -table.highlighttable pre { - margin: 0; -} - -div.code-block-caption + div { - margin-top: 0; -} - -div.code-block-caption { - margin-top: 1em; - padding: 2px 5px; - font-size: small; -} - -div.code-block-caption code { - background-color: transparent; -} - -table.highlighttable td.linenos, -div.doctest > div.highlight span.gp { /* gp: Generic.Prompt */ - user-select: none; -} - -div.code-block-caption span.caption-number { - padding: 0.1em 0.3em; - font-style: italic; -} - -div.code-block-caption span.caption-text { -} - -div.literal-block-wrapper { - margin: 1em 0; -} - -code.descname { - background-color: transparent; - font-weight: bold; - font-size: 1.2em; -} - -code.descclassname { - background-color: transparent; -} - -code.xref, a code { - background-color: transparent; - font-weight: bold; -} - -h1 code, h2 code, h3 code, h4 code, h5 code, h6 code { - background-color: transparent; -} - -.viewcode-link { - float: right; -} - -.viewcode-back { - float: right; - font-family: sans-serif; -} - -div.viewcode-block:target { - margin: -1px -10px; - padding: 0 10px; -} - -/* -- math display ---------------------------------------------------------- */ - -img.math { - vertical-align: middle; -} - -div.body div.math p { - text-align: center; -} - -span.eqno { - float: right; -} - -span.eqno a.headerlink { - position: absolute; - z-index: 1; -} - -div.math:hover a.headerlink { - visibility: visible; -} - -/* -- printout stylesheet --------------------------------------------------- */ - -@media print { - div.document, - div.documentwrapper, - div.bodywrapper { - margin: 0 !important; - width: 100%; - } - - div.sphinxsidebar, - div.related, - div.footer, - #top-link { - display: none; - } +/* + * basic.css + * ~~~~~~~~~ + * + * Sphinx stylesheet -- basic theme. + * + * :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS. + * :license: BSD, see LICENSE for details. + * + */ + +/* -- main layout ----------------------------------------------------------- */ + +div.clearer { + clear: both; +} + +div.section::after { + display: block; + content: ''; + clear: left; +} + +/* -- relbar ---------------------------------------------------------------- */ + +div.related { + width: 100%; + font-size: 90%; +} + +div.related h3 { + display: none; +} + +div.related ul { + margin: 0; + padding: 0 0 0 10px; + list-style: none; +} + +div.related li { + display: inline; +} + +div.related li.right { + float: right; + margin-right: 5px; +} + +/* -- sidebar --------------------------------------------------------------- */ + +div.sphinxsidebarwrapper { + padding: 10px 5px 0 10px; +} + +div.sphinxsidebar { + float: left; + width: 230px; + margin-left: -100%; + font-size: 90%; + word-wrap: break-word; + overflow-wrap : break-word; +} + +div.sphinxsidebar ul { + list-style: none; +} + +div.sphinxsidebar ul ul, +div.sphinxsidebar ul.want-points { + margin-left: 20px; + list-style: square; +} + +div.sphinxsidebar ul ul { + margin-top: 0; + margin-bottom: 0; +} + +div.sphinxsidebar form { + margin-top: 10px; +} + +div.sphinxsidebar input { + border: 1px solid #98dbcc; + font-family: sans-serif; + font-size: 1em; +} + +div.sphinxsidebar #searchbox form.search { + overflow: hidden; +} + +div.sphinxsidebar #searchbox input[type="text"] { + float: left; + width: 80%; + padding: 0.25em; + box-sizing: border-box; +} + +div.sphinxsidebar #searchbox input[type="submit"] { + float: left; + width: 20%; + border-left: none; + padding: 0.25em; + box-sizing: border-box; +} + + +img { + border: 0; + max-width: 100%; +} + +/* -- search page ----------------------------------------------------------- */ + +ul.search { + margin: 10px 0 0 20px; + padding: 0; +} + +ul.search li { + padding: 5px 0 5px 20px; + background-image: url(file.png); + background-repeat: no-repeat; + background-position: 0 7px; +} + +ul.search li a { + font-weight: bold; +} + +ul.search li div.context { + color: #888; + margin: 2px 0 0 30px; + text-align: left; +} + +ul.keywordmatches li.goodmatch a { + font-weight: bold; +} + +/* -- index page ------------------------------------------------------------ */ + +table.contentstable { + width: 90%; + margin-left: auto; + margin-right: auto; +} + +table.contentstable p.biglink { + line-height: 150%; +} + +a.biglink { + font-size: 1.3em; +} + +span.linkdescr { + font-style: italic; + padding-top: 5px; + font-size: 90%; +} + +/* -- general index --------------------------------------------------------- */ + +table.indextable { + width: 100%; +} + +table.indextable td { + text-align: left; + vertical-align: top; +} + +table.indextable ul { + margin-top: 0; + margin-bottom: 0; + list-style-type: none; +} + +table.indextable > tbody > tr > td > ul { + padding-left: 0em; +} + +table.indextable tr.pcap { + height: 10px; +} + +table.indextable tr.cap { + margin-top: 10px; + background-color: #f2f2f2; +} + +img.toggler { + margin-right: 3px; + margin-top: 3px; + cursor: pointer; +} + +div.modindex-jumpbox { + border-top: 1px solid #ddd; + border-bottom: 1px solid #ddd; + margin: 1em 0 1em 0; + padding: 0.4em; +} + +div.genindex-jumpbox { + border-top: 1px solid #ddd; + border-bottom: 1px solid #ddd; + margin: 1em 0 1em 0; + padding: 0.4em; +} + +/* -- domain module index --------------------------------------------------- */ + +table.modindextable td { + padding: 2px; + border-collapse: collapse; +} + +/* -- general body styles --------------------------------------------------- */ + +div.body { + min-width: 450px; + max-width: 800px; +} + +div.body p, div.body dd, div.body li, div.body blockquote { + -moz-hyphens: auto; + -ms-hyphens: auto; + -webkit-hyphens: auto; + hyphens: auto; +} + +a.headerlink { + visibility: hidden; +} + +a.brackets:before, +span.brackets > a:before{ + content: "["; +} + +a.brackets:after, +span.brackets > a:after { + content: "]"; +} + +h1:hover > a.headerlink, +h2:hover > a.headerlink, +h3:hover > a.headerlink, +h4:hover > a.headerlink, +h5:hover > a.headerlink, +h6:hover > a.headerlink, +dt:hover > a.headerlink, +caption:hover > a.headerlink, +p.caption:hover > a.headerlink, +div.code-block-caption:hover > a.headerlink { + visibility: visible; +} + +div.body p.caption { + text-align: inherit; +} + +div.body td { + text-align: left; +} + +.first { + margin-top: 0 !important; +} + +p.rubric { + margin-top: 30px; + font-weight: bold; +} + +img.align-left, .figure.align-left, object.align-left { + clear: left; + float: left; + margin-right: 1em; +} + +img.align-right, .figure.align-right, object.align-right { + clear: right; + float: right; + margin-left: 1em; +} + +img.align-center, .figure.align-center, object.align-center { + display: block; + margin-left: auto; + margin-right: auto; +} + +img.align-default, .figure.align-default { + display: block; + margin-left: auto; + margin-right: auto; +} + +.align-left { + text-align: left; +} + +.align-center { + text-align: center; +} + +.align-default { + text-align: center; +} + +.align-right { + text-align: right; +} + +/* -- sidebars -------------------------------------------------------------- */ + +div.sidebar { + margin: 0 0 0.5em 1em; + border: 1px solid #ddb; + padding: 7px; + background-color: #ffe; + width: 40%; + float: right; + clear: right; + overflow-x: auto; +} + +p.sidebar-title { + font-weight: bold; +} + +div.admonition, div.topic, blockquote { + clear: left; +} + +/* -- topics ---------------------------------------------------------------- */ + +div.topic { + border: 1px solid #ccc; + padding: 7px; + margin: 10px 0 10px 0; +} + +p.topic-title { + font-size: 1.1em; + font-weight: bold; + margin-top: 10px; +} + +/* -- admonitions ----------------------------------------------------------- */ + +div.admonition { + margin-top: 10px; + margin-bottom: 10px; + padding: 7px; +} + +div.admonition dt { + font-weight: bold; +} + +p.admonition-title { + margin: 0px 10px 5px 0px; + font-weight: bold; +} + +div.body p.centered { + text-align: center; + margin-top: 25px; +} + +/* -- content of sidebars/topics/admonitions -------------------------------- */ + +div.sidebar > :last-child, +div.topic > :last-child, +div.admonition > :last-child { + margin-bottom: 0; +} + +div.sidebar::after, +div.topic::after, +div.admonition::after, +blockquote::after { + display: block; + content: ''; + clear: both; +} + +/* -- tables ---------------------------------------------------------------- */ + +table.docutils { + margin-top: 10px; + margin-bottom: 10px; + border: 0; + border-collapse: collapse; +} + +table.align-center { + margin-left: auto; + margin-right: auto; +} + +table.align-default { + margin-left: auto; + margin-right: auto; +} + +table caption span.caption-number { + font-style: italic; +} + +table caption span.caption-text { +} + +table.docutils td, table.docutils th { + padding: 1px 8px 1px 5px; + border-top: 0; + border-left: 0; + border-right: 0; + border-bottom: 1px solid #aaa; +} + +table.footnote td, table.footnote th { + border: 0 !important; +} + +th { + text-align: left; + padding-right: 5px; +} + +table.citation { + border-left: solid 1px gray; + margin-left: 1px; +} + +table.citation td { + border-bottom: none; +} + +th > :first-child, +td > :first-child { + margin-top: 0px; +} + +th > :last-child, +td > :last-child { + margin-bottom: 0px; +} + +/* -- figures --------------------------------------------------------------- */ + +div.figure { + margin: 0.5em; + padding: 0.5em; +} + +div.figure p.caption { + padding: 0.3em; +} + +div.figure p.caption span.caption-number { + font-style: italic; +} + +div.figure p.caption span.caption-text { +} + +/* -- field list styles ----------------------------------------------------- */ + +table.field-list td, table.field-list th { + border: 0 !important; +} + +.field-list ul { + margin: 0; + padding-left: 1em; +} + +.field-list p { + margin: 0; +} + +.field-name { + -moz-hyphens: manual; + -ms-hyphens: manual; + -webkit-hyphens: manual; + hyphens: manual; +} + +/* -- hlist styles ---------------------------------------------------------- */ + +table.hlist { + margin: 1em 0; +} + +table.hlist td { + vertical-align: top; +} + + +/* -- other body styles ----------------------------------------------------- */ + +ol.arabic { + list-style: decimal; +} + +ol.loweralpha { + list-style: lower-alpha; +} + +ol.upperalpha { + list-style: upper-alpha; +} + +ol.lowerroman { + list-style: lower-roman; +} + +ol.upperroman { + list-style: upper-roman; +} + +:not(li) > ol > li:first-child > :first-child, +:not(li) > ul > li:first-child > :first-child { + margin-top: 0px; +} + +:not(li) > ol > li:last-child > :last-child, +:not(li) > ul > li:last-child > :last-child { + margin-bottom: 0px; +} + +ol.simple ol p, +ol.simple ul p, +ul.simple ol p, +ul.simple ul p { + margin-top: 0; +} + +ol.simple > li:not(:first-child) > p, +ul.simple > li:not(:first-child) > p { + margin-top: 0; +} + +ol.simple p, +ul.simple p { + margin-bottom: 0; +} + +dl.footnote > dt, +dl.citation > dt { + float: left; + margin-right: 0.5em; +} + +dl.footnote > dd, +dl.citation > dd { + margin-bottom: 0em; +} + +dl.footnote > dd:after, +dl.citation > dd:after { + content: ""; + clear: both; +} + +dl.field-list { + display: grid; + grid-template-columns: fit-content(30%) auto; +} + +dl.field-list > dt { + font-weight: bold; + word-break: break-word; + padding-left: 0.5em; + padding-right: 5px; +} + +dl.field-list > dt:after { + content: ":"; +} + +dl.field-list > dd { + padding-left: 0.5em; + margin-top: 0em; + margin-left: 0em; + margin-bottom: 0em; +} + +dl { + margin-bottom: 15px; +} + +dd > :first-child { + margin-top: 0px; +} + +dd ul, dd table { + margin-bottom: 10px; +} + +dd { + margin-top: 3px; + margin-bottom: 10px; + margin-left: 30px; +} + +dl > dd:last-child, +dl > dd:last-child > :last-child { + margin-bottom: 0; +} + +dt:target, span.highlighted { + background-color: #fbe54e; +} + +rect.highlighted { + fill: #fbe54e; +} + +dl.glossary dt { + font-weight: bold; + font-size: 1.1em; +} + +.optional { + font-size: 1.3em; +} + +.sig-paren { + font-size: larger; +} + +.versionmodified { + font-style: italic; +} + +.system-message { + background-color: #fda; + padding: 5px; + border: 3px solid red; +} + +.footnote:target { + background-color: #ffa; +} + +.line-block { + display: block; + margin-top: 1em; + margin-bottom: 1em; +} + +.line-block .line-block { + margin-top: 0; + margin-bottom: 0; + margin-left: 1.5em; +} + +.guilabel, .menuselection { + font-family: sans-serif; +} + +.accelerator { + text-decoration: underline; +} + +.classifier { + font-style: oblique; +} + +.classifier:before { + font-style: normal; + margin: 0.5em; + content: ":"; +} + +abbr, acronym { + border-bottom: dotted 1px; + cursor: help; +} + +/* -- code displays --------------------------------------------------------- */ + +pre { + overflow: auto; + overflow-y: hidden; /* fixes display issues on Chrome browsers */ +} + +pre, div[class*="highlight-"] { + clear: both; +} + +span.pre { + -moz-hyphens: none; + -ms-hyphens: none; + -webkit-hyphens: none; + hyphens: none; +} + +div[class*="highlight-"] { + margin: 1em 0; +} + +td.linenos pre { + border: 0; + background-color: transparent; + color: #aaa; +} + +table.highlighttable { + display: block; +} + +table.highlighttable tbody { + display: block; +} + +table.highlighttable tr { + display: flex; +} + +table.highlighttable td { + margin: 0; + padding: 0; +} + +table.highlighttable td.linenos { + padding-right: 0.5em; +} + +table.highlighttable td.code { + flex: 1; + overflow: hidden; +} + +.highlight .hll { + display: block; +} + +div.highlight pre, +table.highlighttable pre { + margin: 0; +} + +div.code-block-caption + div { + margin-top: 0; +} + +div.code-block-caption { + margin-top: 1em; + padding: 2px 5px; + font-size: small; +} + +div.code-block-caption code { + background-color: transparent; +} + +table.highlighttable td.linenos, +div.doctest > div.highlight span.gp { /* gp: Generic.Prompt */ + user-select: none; +} + +div.code-block-caption span.caption-number { + padding: 0.1em 0.3em; + font-style: italic; +} + +div.code-block-caption span.caption-text { +} + +div.literal-block-wrapper { + margin: 1em 0; +} + +code.descname { + background-color: transparent; + font-weight: bold; + font-size: 1.2em; +} + +code.descclassname { + background-color: transparent; +} + +code.xref, a code { + background-color: transparent; + font-weight: bold; +} + +h1 code, h2 code, h3 code, h4 code, h5 code, h6 code { + background-color: transparent; +} + +.viewcode-link { + float: right; +} + +.viewcode-back { + float: right; + font-family: sans-serif; +} + +div.viewcode-block:target { + margin: -1px -10px; + padding: 0 10px; +} + +/* -- math display ---------------------------------------------------------- */ + +img.math { + vertical-align: middle; +} + +div.body div.math p { + text-align: center; +} + +span.eqno { + float: right; +} + +span.eqno a.headerlink { + position: absolute; + z-index: 1; +} + +div.math:hover a.headerlink { + visibility: visible; +} + +/* -- printout stylesheet --------------------------------------------------- */ + +@media print { + div.document, + div.documentwrapper, + div.bodywrapper { + margin: 0 !important; + width: 100%; + } + + div.sphinxsidebar, + div.related, + div.footer, + #top-link { + display: none; + } } \ No newline at end of file diff --git a/_static/documentation_options.js b/_static/documentation_options.js index de96d1c..6ce9d3e 100644 --- a/_static/documentation_options.js +++ b/_static/documentation_options.js @@ -1,12 +1,12 @@ -var DOCUMENTATION_OPTIONS = { - URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'), - VERSION: '1.6.0a', - LANGUAGE: 'ko', - COLLAPSE_INDEX: false, - BUILDER: 'html', - FILE_SUFFIX: '.html', - LINK_SUFFIX: '.html', - HAS_SOURCE: true, - SOURCELINK_SUFFIX: '.txt', - NAVIGATION_WITH_KEYS: false +var DOCUMENTATION_OPTIONS = { + URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'), + VERSION: '1.6.0a', + LANGUAGE: 'ko', + COLLAPSE_INDEX: false, + BUILDER: 'html', + FILE_SUFFIX: '.html', + LINK_SUFFIX: '.html', + HAS_SOURCE: true, + SOURCELINK_SUFFIX: '.txt', + NAVIGATION_WITH_KEYS: false }; \ No newline at end of file diff --git a/_static/language_data.js b/_static/language_data.js index 333c33e..e92ffb1 100644 --- a/_static/language_data.js +++ b/_static/language_data.js @@ -1,382 +1,382 @@ -/* - * language_data.js - * ~~~~~~~~~~~~~~~~ - * - * This script contains the language-specific data used by searchtools.js, - * namely the list of stopwords, stemmer, scorer and splitter. - * - * :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS. - * :license: BSD, see LICENSE for details. - * - */ - -var stopwords = ["a","and","are","as","at","be","but","by","for","if","in","into","is","it","near","no","not","of","on","or","such","that","the","their","then","there","these","they","this","to","was","will","with"]; - - -/* Non-minified version JS is _stemmer.js if file is provided */ -/** - * Porter Stemmer - */ -var Stemmer = function() { - - var step2list = { - ational: 'ate', - tional: 'tion', - enci: 'ence', - anci: 'ance', - izer: 'ize', - bli: 'ble', - alli: 'al', - entli: 'ent', - eli: 'e', - ousli: 'ous', - ization: 'ize', - ation: 'ate', - ator: 'ate', - alism: 'al', - iveness: 'ive', - fulness: 'ful', - ousness: 'ous', - aliti: 'al', - iviti: 'ive', - biliti: 'ble', - logi: 'log' - }; - - var step3list = { - icate: 'ic', - ative: '', - alize: 'al', - iciti: 'ic', - ical: 'ic', - ful: '', - ness: '' - }; - - var c = "[^aeiou]"; // consonant - var v = "[aeiouy]"; // vowel - var C = c + "[^aeiouy]*"; // consonant sequence - var V = v + "[aeiou]*"; // vowel sequence - - var mgr0 = "^(" + C + ")?" + V + C; // [C]VC... is m>0 - var meq1 = "^(" + C + ")?" + V + C + "(" + V + ")?$"; // [C]VC[V] is m=1 - var mgr1 = "^(" + C + ")?" + V + C + V + C; // [C]VCVC... is m>1 - var s_v = "^(" + C + ")?" + v; // vowel in stem - - this.stemWord = function (w) { - var stem; - var suffix; - var firstch; - var origword = w; - - if (w.length < 3) - return w; - - var re; - var re2; - var re3; - var re4; - - firstch = w.substr(0,1); - if (firstch == "y") - w = firstch.toUpperCase() + w.substr(1); - - // Step 1a - re = /^(.+?)(ss|i)es$/; - re2 = /^(.+?)([^s])s$/; - - if (re.test(w)) - w = w.replace(re,"$1$2"); - else if (re2.test(w)) - w = w.replace(re2,"$1$2"); - - // Step 1b - re = /^(.+?)eed$/; - re2 = /^(.+?)(ed|ing)$/; - if (re.test(w)) { - var fp = re.exec(w); - re = new RegExp(mgr0); - if (re.test(fp[1])) { - re = /.$/; - w = w.replace(re,""); - } - } - else if (re2.test(w)) { - var fp = re2.exec(w); - stem = fp[1]; - re2 = new RegExp(s_v); - if (re2.test(stem)) { - w = stem; - re2 = /(at|bl|iz)$/; - re3 = new RegExp("([^aeiouylsz])\\1$"); - re4 = new RegExp("^" + C + v + "[^aeiouwxy]$"); - if (re2.test(w)) - w = w + "e"; - else if (re3.test(w)) { - re = /.$/; - w = w.replace(re,""); - } - else if (re4.test(w)) - w = w + "e"; - } - } - - // Step 1c - re = /^(.+?)y$/; - if (re.test(w)) { - var fp = re.exec(w); - stem = fp[1]; - re = new RegExp(s_v); - if (re.test(stem)) - w = stem + "i"; - } - - // Step 2 - re = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/; - if (re.test(w)) { - var fp = re.exec(w); - stem = fp[1]; - suffix = fp[2]; - re = new RegExp(mgr0); - if (re.test(stem)) - w = stem + step2list[suffix]; - } - - // Step 3 - re = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/; - if (re.test(w)) { - var fp = re.exec(w); - stem = fp[1]; - suffix = fp[2]; - re = new RegExp(mgr0); - if (re.test(stem)) - w = stem + step3list[suffix]; - } - - // Step 4 - re = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/; - re2 = /^(.+?)(s|t)(ion)$/; - if (re.test(w)) { - var fp = re.exec(w); - stem = fp[1]; - re = new RegExp(mgr1); - if (re.test(stem)) - w = stem; - } - else if (re2.test(w)) { - var fp = re2.exec(w); - stem = fp[1] + fp[2]; - re2 = new RegExp(mgr1); - if (re2.test(stem)) - w = stem; - } - - // Step 5 - re = /^(.+?)e$/; - if (re.test(w)) { - var fp = re.exec(w); - stem = fp[1]; - re = new RegExp(mgr1); - re2 = new RegExp(meq1); - re3 = new RegExp("^" + C + v + "[^aeiouwxy]$"); - if (re.test(stem) || (re2.test(stem) && !(re3.test(stem)))) - w = stem; - } - re = /ll$/; - re2 = new RegExp(mgr1); - if (re.test(w) && re2.test(w)) { - re = /.$/; - w = w.replace(re,""); - } - - // and turn initial Y back to y - if (firstch == "y") - w = firstch.toLowerCase() + w.substr(1); - return w; - } -} - - - -'use-strict'; - -let queryBeingDone = null; -let pattern = null; - -const escapedRegex = /[-\/\\^$*+?.()|[\]{}]/g; -function escapeRegex(e) { - return e.replace(escapedRegex, '\\$&'); -} - -// for some reason Sphinx shows some entries twice -// if something has been scored already I'd rather sort it to the bottom -const beenScored = new Set(); - -function __score(haystack, regex) { - let match = regex.exec(haystack); - if (match == null) { - return Number.MAX_VALUE; - } - let subLength = match[0].length; - let start = match.index; - return (subLength * 1000 + start) / 1000.0; -} - -// unused for now -function __cleanNamespaces(query) { - return query.replace(/(discord\.(ext\.)?)?(.+)/, '$3'); -} - -Scorer = { - - // Implement the following function to further tweak the score for each result - // The function takes a result array [filename, title, anchor, descr, score] - // and returns the new score. - score: (result) => { - // only inflate the score of things that are actual API reference things - const [, title, , , score] = result; - - if (pattern !== null && title.startsWith('discord.')) { - let _score = __score(title, pattern); - if (_score === Number.MAX_VALUE) { - return score; - } - if (beenScored.has(title)) { - return 0; - } - beenScored.add(title); - let newScore = 100 + queryBeingDone.length - _score; - // console.log(`${title}: ${score} -> ${newScore} (${_score})`); - return newScore; - } - return score; - }, - - // query matches the full name of an object - objNameMatch: 15, - // or matches in the last dotted part of the object name - objPartialMatch: 11, - // Additive scores depending on the priority of the object - objPrio: { - 0: 15, // used to be importantResults - 1: 7, // used to be objectResults - 2: -5 // used to be unimportantResults - }, - // Used when the priority is not in the mapping. - objPrioDefault: 0, - - // query found in title - title: 15, - partialTitle: 7, - // query found in terms - term: 5, - partialTerm: 2 -}; - -document.addEventListener('DOMContentLoaded', () => { - const params = new URLSearchParams(window.location.search); - queryBeingDone = params.get('q'); - if (queryBeingDone) { - let pattern = Array.from(queryBeingDone).map(escapeRegex).join('.*?'); - pattern = new RegExp(pattern, 'i'); - } -}); - - - - -var splitChars = (function() { - var result = {}; - var singles = [96, 180, 187, 191, 215, 247, 749, 885, 903, 907, 909, 930, 1014, 1648, - 1748, 1809, 2416, 2473, 2481, 2526, 2601, 2609, 2612, 2615, 2653, 2702, - 2706, 2729, 2737, 2740, 2857, 2865, 2868, 2910, 2928, 2948, 2961, 2971, - 2973, 3085, 3089, 3113, 3124, 3213, 3217, 3241, 3252, 3295, 3341, 3345, - 3369, 3506, 3516, 3633, 3715, 3721, 3736, 3744, 3748, 3750, 3756, 3761, - 3781, 3912, 4239, 4347, 4681, 4695, 4697, 4745, 4785, 4799, 4801, 4823, - 4881, 5760, 5901, 5997, 6313, 7405, 8024, 8026, 8028, 8030, 8117, 8125, - 8133, 8181, 8468, 8485, 8487, 8489, 8494, 8527, 11311, 11359, 11687, 11695, - 11703, 11711, 11719, 11727, 11735, 12448, 12539, 43010, 43014, 43019, 43587, - 43696, 43713, 64286, 64297, 64311, 64317, 64319, 64322, 64325, 65141]; - var i, j, start, end; - for (i = 0; i < singles.length; i++) { - result[singles[i]] = true; - } - var ranges = [[0, 47], [58, 64], [91, 94], [123, 169], [171, 177], [182, 184], [706, 709], - [722, 735], [741, 747], [751, 879], [888, 889], [894, 901], [1154, 1161], - [1318, 1328], [1367, 1368], [1370, 1376], [1416, 1487], [1515, 1519], [1523, 1568], - [1611, 1631], [1642, 1645], [1750, 1764], [1767, 1773], [1789, 1790], [1792, 1807], - [1840, 1868], [1958, 1968], [1970, 1983], [2027, 2035], [2038, 2041], [2043, 2047], - [2070, 2073], [2075, 2083], [2085, 2087], [2089, 2307], [2362, 2364], [2366, 2383], - [2385, 2391], [2402, 2405], [2419, 2424], [2432, 2436], [2445, 2446], [2449, 2450], - [2483, 2485], [2490, 2492], [2494, 2509], [2511, 2523], [2530, 2533], [2546, 2547], - [2554, 2564], [2571, 2574], [2577, 2578], [2618, 2648], [2655, 2661], [2672, 2673], - [2677, 2692], [2746, 2748], [2750, 2767], [2769, 2783], [2786, 2789], [2800, 2820], - [2829, 2830], [2833, 2834], [2874, 2876], [2878, 2907], [2914, 2917], [2930, 2946], - [2955, 2957], [2966, 2968], [2976, 2978], [2981, 2983], [2987, 2989], [3002, 3023], - [3025, 3045], [3059, 3076], [3130, 3132], [3134, 3159], [3162, 3167], [3170, 3173], - [3184, 3191], [3199, 3204], [3258, 3260], [3262, 3293], [3298, 3301], [3312, 3332], - [3386, 3388], [3390, 3423], [3426, 3429], [3446, 3449], [3456, 3460], [3479, 3481], - [3518, 3519], [3527, 3584], [3636, 3647], [3655, 3663], [3674, 3712], [3717, 3718], - [3723, 3724], [3726, 3731], [3752, 3753], [3764, 3772], [3774, 3775], [3783, 3791], - [3802, 3803], [3806, 3839], [3841, 3871], [3892, 3903], [3949, 3975], [3980, 4095], - [4139, 4158], [4170, 4175], [4182, 4185], [4190, 4192], [4194, 4196], [4199, 4205], - [4209, 4212], [4226, 4237], [4250, 4255], [4294, 4303], [4349, 4351], [4686, 4687], - [4702, 4703], [4750, 4751], [4790, 4791], [4806, 4807], [4886, 4887], [4955, 4968], - [4989, 4991], [5008, 5023], [5109, 5120], [5741, 5742], [5787, 5791], [5867, 5869], - [5873, 5887], [5906, 5919], [5938, 5951], [5970, 5983], [6001, 6015], [6068, 6102], - [6104, 6107], [6109, 6111], [6122, 6127], [6138, 6159], [6170, 6175], [6264, 6271], - [6315, 6319], [6390, 6399], [6429, 6469], [6510, 6511], [6517, 6527], [6572, 6592], - [6600, 6607], [6619, 6655], [6679, 6687], [6741, 6783], [6794, 6799], [6810, 6822], - [6824, 6916], [6964, 6980], [6988, 6991], [7002, 7042], [7073, 7085], [7098, 7167], - [7204, 7231], [7242, 7244], [7294, 7400], [7410, 7423], [7616, 7679], [7958, 7959], - [7966, 7967], [8006, 8007], [8014, 8015], [8062, 8063], [8127, 8129], [8141, 8143], - [8148, 8149], [8156, 8159], [8173, 8177], [8189, 8303], [8306, 8307], [8314, 8318], - [8330, 8335], [8341, 8449], [8451, 8454], [8456, 8457], [8470, 8472], [8478, 8483], - [8506, 8507], [8512, 8516], [8522, 8525], [8586, 9311], [9372, 9449], [9472, 10101], - [10132, 11263], [11493, 11498], [11503, 11516], [11518, 11519], [11558, 11567], - [11622, 11630], [11632, 11647], [11671, 11679], [11743, 11822], [11824, 12292], - [12296, 12320], [12330, 12336], [12342, 12343], [12349, 12352], [12439, 12444], - [12544, 12548], [12590, 12592], [12687, 12689], [12694, 12703], [12728, 12783], - [12800, 12831], [12842, 12880], [12896, 12927], [12938, 12976], [12992, 13311], - [19894, 19967], [40908, 40959], [42125, 42191], [42238, 42239], [42509, 42511], - [42540, 42559], [42592, 42593], [42607, 42622], [42648, 42655], [42736, 42774], - [42784, 42785], [42889, 42890], [42893, 43002], [43043, 43055], [43062, 43071], - [43124, 43137], [43188, 43215], [43226, 43249], [43256, 43258], [43260, 43263], - [43302, 43311], [43335, 43359], [43389, 43395], [43443, 43470], [43482, 43519], - [43561, 43583], [43596, 43599], [43610, 43615], [43639, 43641], [43643, 43647], - [43698, 43700], [43703, 43704], [43710, 43711], [43715, 43738], [43742, 43967], - [44003, 44015], [44026, 44031], [55204, 55215], [55239, 55242], [55292, 55295], - [57344, 63743], [64046, 64047], [64110, 64111], [64218, 64255], [64263, 64274], - [64280, 64284], [64434, 64466], [64830, 64847], [64912, 64913], [64968, 65007], - [65020, 65135], [65277, 65295], [65306, 65312], [65339, 65344], [65371, 65381], - [65471, 65473], [65480, 65481], [65488, 65489], [65496, 65497]]; - for (i = 0; i < ranges.length; i++) { - start = ranges[i][0]; - end = ranges[i][1]; - for (j = start; j <= end; j++) { - result[j] = true; - } - } - return result; -})(); - -function splitQuery(query) { - var result = []; - var start = -1; - for (var i = 0; i < query.length; i++) { - if (splitChars[query.charCodeAt(i)]) { - if (start !== -1) { - result.push(query.slice(start, i)); - start = -1; - } - } else if (start === -1) { - start = i; - } - } - if (start !== -1) { - result.push(query.slice(start)); - } - return result; -} - - +/* + * language_data.js + * ~~~~~~~~~~~~~~~~ + * + * This script contains the language-specific data used by searchtools.js, + * namely the list of stopwords, stemmer, scorer and splitter. + * + * :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS. + * :license: BSD, see LICENSE for details. + * + */ + +var stopwords = ["a","and","are","as","at","be","but","by","for","if","in","into","is","it","near","no","not","of","on","or","such","that","the","their","then","there","these","they","this","to","was","will","with"]; + + +/* Non-minified version JS is _stemmer.js if file is provided */ +/** + * Porter Stemmer + */ +var Stemmer = function() { + + var step2list = { + ational: 'ate', + tional: 'tion', + enci: 'ence', + anci: 'ance', + izer: 'ize', + bli: 'ble', + alli: 'al', + entli: 'ent', + eli: 'e', + ousli: 'ous', + ization: 'ize', + ation: 'ate', + ator: 'ate', + alism: 'al', + iveness: 'ive', + fulness: 'ful', + ousness: 'ous', + aliti: 'al', + iviti: 'ive', + biliti: 'ble', + logi: 'log' + }; + + var step3list = { + icate: 'ic', + ative: '', + alize: 'al', + iciti: 'ic', + ical: 'ic', + ful: '', + ness: '' + }; + + var c = "[^aeiou]"; // consonant + var v = "[aeiouy]"; // vowel + var C = c + "[^aeiouy]*"; // consonant sequence + var V = v + "[aeiou]*"; // vowel sequence + + var mgr0 = "^(" + C + ")?" + V + C; // [C]VC... is m>0 + var meq1 = "^(" + C + ")?" + V + C + "(" + V + ")?$"; // [C]VC[V] is m=1 + var mgr1 = "^(" + C + ")?" + V + C + V + C; // [C]VCVC... is m>1 + var s_v = "^(" + C + ")?" + v; // vowel in stem + + this.stemWord = function (w) { + var stem; + var suffix; + var firstch; + var origword = w; + + if (w.length < 3) + return w; + + var re; + var re2; + var re3; + var re4; + + firstch = w.substr(0,1); + if (firstch == "y") + w = firstch.toUpperCase() + w.substr(1); + + // Step 1a + re = /^(.+?)(ss|i)es$/; + re2 = /^(.+?)([^s])s$/; + + if (re.test(w)) + w = w.replace(re,"$1$2"); + else if (re2.test(w)) + w = w.replace(re2,"$1$2"); + + // Step 1b + re = /^(.+?)eed$/; + re2 = /^(.+?)(ed|ing)$/; + if (re.test(w)) { + var fp = re.exec(w); + re = new RegExp(mgr0); + if (re.test(fp[1])) { + re = /.$/; + w = w.replace(re,""); + } + } + else if (re2.test(w)) { + var fp = re2.exec(w); + stem = fp[1]; + re2 = new RegExp(s_v); + if (re2.test(stem)) { + w = stem; + re2 = /(at|bl|iz)$/; + re3 = new RegExp("([^aeiouylsz])\\1$"); + re4 = new RegExp("^" + C + v + "[^aeiouwxy]$"); + if (re2.test(w)) + w = w + "e"; + else if (re3.test(w)) { + re = /.$/; + w = w.replace(re,""); + } + else if (re4.test(w)) + w = w + "e"; + } + } + + // Step 1c + re = /^(.+?)y$/; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + re = new RegExp(s_v); + if (re.test(stem)) + w = stem + "i"; + } + + // Step 2 + re = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + suffix = fp[2]; + re = new RegExp(mgr0); + if (re.test(stem)) + w = stem + step2list[suffix]; + } + + // Step 3 + re = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + suffix = fp[2]; + re = new RegExp(mgr0); + if (re.test(stem)) + w = stem + step3list[suffix]; + } + + // Step 4 + re = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/; + re2 = /^(.+?)(s|t)(ion)$/; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + re = new RegExp(mgr1); + if (re.test(stem)) + w = stem; + } + else if (re2.test(w)) { + var fp = re2.exec(w); + stem = fp[1] + fp[2]; + re2 = new RegExp(mgr1); + if (re2.test(stem)) + w = stem; + } + + // Step 5 + re = /^(.+?)e$/; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + re = new RegExp(mgr1); + re2 = new RegExp(meq1); + re3 = new RegExp("^" + C + v + "[^aeiouwxy]$"); + if (re.test(stem) || (re2.test(stem) && !(re3.test(stem)))) + w = stem; + } + re = /ll$/; + re2 = new RegExp(mgr1); + if (re.test(w) && re2.test(w)) { + re = /.$/; + w = w.replace(re,""); + } + + // and turn initial Y back to y + if (firstch == "y") + w = firstch.toLowerCase() + w.substr(1); + return w; + } +} + + + +'use-strict'; + +let queryBeingDone = null; +let pattern = null; + +const escapedRegex = /[-\/\\^$*+?.()|[\]{}]/g; +function escapeRegex(e) { + return e.replace(escapedRegex, '\\$&'); +} + +// for some reason Sphinx shows some entries twice +// if something has been scored already I'd rather sort it to the bottom +const beenScored = new Set(); + +function __score(haystack, regex) { + let match = regex.exec(haystack); + if (match == null) { + return Number.MAX_VALUE; + } + let subLength = match[0].length; + let start = match.index; + return (subLength * 1000 + start) / 1000.0; +} + +// unused for now +function __cleanNamespaces(query) { + return query.replace(/(discord\.(ext\.)?)?(.+)/, '$3'); +} + +Scorer = { + + // Implement the following function to further tweak the score for each result + // The function takes a result array [filename, title, anchor, descr, score] + // and returns the new score. + score: (result) => { + // only inflate the score of things that are actual API reference things + const [, title, , , score] = result; + + if (pattern !== null && title.startsWith('discord.')) { + let _score = __score(title, pattern); + if (_score === Number.MAX_VALUE) { + return score; + } + if (beenScored.has(title)) { + return 0; + } + beenScored.add(title); + let newScore = 100 + queryBeingDone.length - _score; + // console.log(`${title}: ${score} -> ${newScore} (${_score})`); + return newScore; + } + return score; + }, + + // query matches the full name of an object + objNameMatch: 15, + // or matches in the last dotted part of the object name + objPartialMatch: 11, + // Additive scores depending on the priority of the object + objPrio: { + 0: 15, // used to be importantResults + 1: 7, // used to be objectResults + 2: -5 // used to be unimportantResults + }, + // Used when the priority is not in the mapping. + objPrioDefault: 0, + + // query found in title + title: 15, + partialTitle: 7, + // query found in terms + term: 5, + partialTerm: 2 +}; + +document.addEventListener('DOMContentLoaded', () => { + const params = new URLSearchParams(window.location.search); + queryBeingDone = params.get('q'); + if (queryBeingDone) { + let pattern = Array.from(queryBeingDone).map(escapeRegex).join('.*?'); + pattern = new RegExp(pattern, 'i'); + } +}); + + + + +var splitChars = (function() { + var result = {}; + var singles = [96, 180, 187, 191, 215, 247, 749, 885, 903, 907, 909, 930, 1014, 1648, + 1748, 1809, 2416, 2473, 2481, 2526, 2601, 2609, 2612, 2615, 2653, 2702, + 2706, 2729, 2737, 2740, 2857, 2865, 2868, 2910, 2928, 2948, 2961, 2971, + 2973, 3085, 3089, 3113, 3124, 3213, 3217, 3241, 3252, 3295, 3341, 3345, + 3369, 3506, 3516, 3633, 3715, 3721, 3736, 3744, 3748, 3750, 3756, 3761, + 3781, 3912, 4239, 4347, 4681, 4695, 4697, 4745, 4785, 4799, 4801, 4823, + 4881, 5760, 5901, 5997, 6313, 7405, 8024, 8026, 8028, 8030, 8117, 8125, + 8133, 8181, 8468, 8485, 8487, 8489, 8494, 8527, 11311, 11359, 11687, 11695, + 11703, 11711, 11719, 11727, 11735, 12448, 12539, 43010, 43014, 43019, 43587, + 43696, 43713, 64286, 64297, 64311, 64317, 64319, 64322, 64325, 65141]; + var i, j, start, end; + for (i = 0; i < singles.length; i++) { + result[singles[i]] = true; + } + var ranges = [[0, 47], [58, 64], [91, 94], [123, 169], [171, 177], [182, 184], [706, 709], + [722, 735], [741, 747], [751, 879], [888, 889], [894, 901], [1154, 1161], + [1318, 1328], [1367, 1368], [1370, 1376], [1416, 1487], [1515, 1519], [1523, 1568], + [1611, 1631], [1642, 1645], [1750, 1764], [1767, 1773], [1789, 1790], [1792, 1807], + [1840, 1868], [1958, 1968], [1970, 1983], [2027, 2035], [2038, 2041], [2043, 2047], + [2070, 2073], [2075, 2083], [2085, 2087], [2089, 2307], [2362, 2364], [2366, 2383], + [2385, 2391], [2402, 2405], [2419, 2424], [2432, 2436], [2445, 2446], [2449, 2450], + [2483, 2485], [2490, 2492], [2494, 2509], [2511, 2523], [2530, 2533], [2546, 2547], + [2554, 2564], [2571, 2574], [2577, 2578], [2618, 2648], [2655, 2661], [2672, 2673], + [2677, 2692], [2746, 2748], [2750, 2767], [2769, 2783], [2786, 2789], [2800, 2820], + [2829, 2830], [2833, 2834], [2874, 2876], [2878, 2907], [2914, 2917], [2930, 2946], + [2955, 2957], [2966, 2968], [2976, 2978], [2981, 2983], [2987, 2989], [3002, 3023], + [3025, 3045], [3059, 3076], [3130, 3132], [3134, 3159], [3162, 3167], [3170, 3173], + [3184, 3191], [3199, 3204], [3258, 3260], [3262, 3293], [3298, 3301], [3312, 3332], + [3386, 3388], [3390, 3423], [3426, 3429], [3446, 3449], [3456, 3460], [3479, 3481], + [3518, 3519], [3527, 3584], [3636, 3647], [3655, 3663], [3674, 3712], [3717, 3718], + [3723, 3724], [3726, 3731], [3752, 3753], [3764, 3772], [3774, 3775], [3783, 3791], + [3802, 3803], [3806, 3839], [3841, 3871], [3892, 3903], [3949, 3975], [3980, 4095], + [4139, 4158], [4170, 4175], [4182, 4185], [4190, 4192], [4194, 4196], [4199, 4205], + [4209, 4212], [4226, 4237], [4250, 4255], [4294, 4303], [4349, 4351], [4686, 4687], + [4702, 4703], [4750, 4751], [4790, 4791], [4806, 4807], [4886, 4887], [4955, 4968], + [4989, 4991], [5008, 5023], [5109, 5120], [5741, 5742], [5787, 5791], [5867, 5869], + [5873, 5887], [5906, 5919], [5938, 5951], [5970, 5983], [6001, 6015], [6068, 6102], + [6104, 6107], [6109, 6111], [6122, 6127], [6138, 6159], [6170, 6175], [6264, 6271], + [6315, 6319], [6390, 6399], [6429, 6469], [6510, 6511], [6517, 6527], [6572, 6592], + [6600, 6607], [6619, 6655], [6679, 6687], [6741, 6783], [6794, 6799], [6810, 6822], + [6824, 6916], [6964, 6980], [6988, 6991], [7002, 7042], [7073, 7085], [7098, 7167], + [7204, 7231], [7242, 7244], [7294, 7400], [7410, 7423], [7616, 7679], [7958, 7959], + [7966, 7967], [8006, 8007], [8014, 8015], [8062, 8063], [8127, 8129], [8141, 8143], + [8148, 8149], [8156, 8159], [8173, 8177], [8189, 8303], [8306, 8307], [8314, 8318], + [8330, 8335], [8341, 8449], [8451, 8454], [8456, 8457], [8470, 8472], [8478, 8483], + [8506, 8507], [8512, 8516], [8522, 8525], [8586, 9311], [9372, 9449], [9472, 10101], + [10132, 11263], [11493, 11498], [11503, 11516], [11518, 11519], [11558, 11567], + [11622, 11630], [11632, 11647], [11671, 11679], [11743, 11822], [11824, 12292], + [12296, 12320], [12330, 12336], [12342, 12343], [12349, 12352], [12439, 12444], + [12544, 12548], [12590, 12592], [12687, 12689], [12694, 12703], [12728, 12783], + [12800, 12831], [12842, 12880], [12896, 12927], [12938, 12976], [12992, 13311], + [19894, 19967], [40908, 40959], [42125, 42191], [42238, 42239], [42509, 42511], + [42540, 42559], [42592, 42593], [42607, 42622], [42648, 42655], [42736, 42774], + [42784, 42785], [42889, 42890], [42893, 43002], [43043, 43055], [43062, 43071], + [43124, 43137], [43188, 43215], [43226, 43249], [43256, 43258], [43260, 43263], + [43302, 43311], [43335, 43359], [43389, 43395], [43443, 43470], [43482, 43519], + [43561, 43583], [43596, 43599], [43610, 43615], [43639, 43641], [43643, 43647], + [43698, 43700], [43703, 43704], [43710, 43711], [43715, 43738], [43742, 43967], + [44003, 44015], [44026, 44031], [55204, 55215], [55239, 55242], [55292, 55295], + [57344, 63743], [64046, 64047], [64110, 64111], [64218, 64255], [64263, 64274], + [64280, 64284], [64434, 64466], [64830, 64847], [64912, 64913], [64968, 65007], + [65020, 65135], [65277, 65295], [65306, 65312], [65339, 65344], [65371, 65381], + [65471, 65473], [65480, 65481], [65488, 65489], [65496, 65497]]; + for (i = 0; i < ranges.length; i++) { + start = ranges[i][0]; + end = ranges[i][1]; + for (j = start; j <= end; j++) { + result[j] = true; + } + } + return result; +})(); + +function splitQuery(query) { + var result = []; + var start = -1; + for (var i = 0; i < query.length; i++) { + if (splitChars[query.charCodeAt(i)]) { + if (start !== -1) { + result.push(query.slice(start, i)); + start = -1; + } + } else if (start === -1) { + start = i; + } + } + if (start !== -1) { + result.push(query.slice(start)); + } + return result; +} + + diff --git a/_static/pygments.css b/_static/pygments.css index df3e6f7..21d9178 100644 --- a/_static/pygments.css +++ b/_static/pygments.css @@ -1,69 +1,69 @@ -.highlight .hll { background-color: #ffffcc } -.highlight { background: #f0f0f0; } -.highlight .c { color: #60a0b0; font-style: italic } /* Comment */ -.highlight .err { border: 1px solid #FF0000 } /* Error */ -.highlight .k { color: #007020; font-weight: bold } /* Keyword */ -.highlight .o { color: #666666 } /* Operator */ -.highlight .ch { color: #60a0b0; font-style: italic } /* Comment.Hashbang */ -.highlight .cm { color: #60a0b0; font-style: italic } /* Comment.Multiline */ -.highlight .cp { color: #007020 } /* Comment.Preproc */ -.highlight .cpf { color: #60a0b0; font-style: italic } /* Comment.PreprocFile */ -.highlight .c1 { color: #60a0b0; font-style: italic } /* Comment.Single */ -.highlight .cs { color: #60a0b0; background-color: #fff0f0 } /* Comment.Special */ -.highlight .gd { color: #A00000 } /* Generic.Deleted */ -.highlight .ge { font-style: italic } /* Generic.Emph */ -.highlight .gr { color: #FF0000 } /* Generic.Error */ -.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ -.highlight .gi { color: #00A000 } /* Generic.Inserted */ -.highlight .go { color: #888888 } /* Generic.Output */ -.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ -.highlight .gs { font-weight: bold } /* Generic.Strong */ -.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ -.highlight .gt { color: #0044DD } /* Generic.Traceback */ -.highlight .kc { color: #007020; font-weight: bold } /* Keyword.Constant */ -.highlight .kd { color: #007020; font-weight: bold } /* Keyword.Declaration */ -.highlight .kn { color: #007020; font-weight: bold } /* Keyword.Namespace */ -.highlight .kp { color: #007020 } /* Keyword.Pseudo */ -.highlight .kr { color: #007020; font-weight: bold } /* Keyword.Reserved */ -.highlight .kt { color: #902000 } /* Keyword.Type */ -.highlight .m { color: #40a070 } /* Literal.Number */ -.highlight .s { color: #4070a0 } /* Literal.String */ -.highlight .na { color: #4070a0 } /* Name.Attribute */ -.highlight .nb { color: #007020 } /* Name.Builtin */ -.highlight .nc { color: #0e84b5; font-weight: bold } /* Name.Class */ -.highlight .no { color: #60add5 } /* Name.Constant */ -.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ -.highlight .ni { color: #d55537; font-weight: bold } /* Name.Entity */ -.highlight .ne { color: #007020 } /* Name.Exception */ -.highlight .nf { color: #06287e } /* Name.Function */ -.highlight .nl { color: #002070; font-weight: bold } /* Name.Label */ -.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ -.highlight .nt { color: #062873; font-weight: bold } /* Name.Tag */ -.highlight .nv { color: #bb60d5 } /* Name.Variable */ -.highlight .ow { color: #007020; font-weight: bold } /* Operator.Word */ -.highlight .w { color: #bbbbbb } /* Text.Whitespace */ -.highlight .mb { color: #40a070 } /* Literal.Number.Bin */ -.highlight .mf { color: #40a070 } /* Literal.Number.Float */ -.highlight .mh { color: #40a070 } /* Literal.Number.Hex */ -.highlight .mi { color: #40a070 } /* Literal.Number.Integer */ -.highlight .mo { color: #40a070 } /* Literal.Number.Oct */ -.highlight .sa { color: #4070a0 } /* Literal.String.Affix */ -.highlight .sb { color: #4070a0 } /* Literal.String.Backtick */ -.highlight .sc { color: #4070a0 } /* Literal.String.Char */ -.highlight .dl { color: #4070a0 } /* Literal.String.Delimiter */ -.highlight .sd { color: #4070a0; font-style: italic } /* Literal.String.Doc */ -.highlight .s2 { color: #4070a0 } /* Literal.String.Double */ -.highlight .se { color: #4070a0; font-weight: bold } /* Literal.String.Escape */ -.highlight .sh { color: #4070a0 } /* Literal.String.Heredoc */ -.highlight .si { color: #70a0d0; font-style: italic } /* Literal.String.Interpol */ -.highlight .sx { color: #c65d09 } /* Literal.String.Other */ -.highlight .sr { color: #235388 } /* Literal.String.Regex */ -.highlight .s1 { color: #4070a0 } /* Literal.String.Single */ -.highlight .ss { color: #517918 } /* Literal.String.Symbol */ -.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ -.highlight .fm { color: #06287e } /* Name.Function.Magic */ -.highlight .vc { color: #bb60d5 } /* Name.Variable.Class */ -.highlight .vg { color: #bb60d5 } /* Name.Variable.Global */ -.highlight .vi { color: #bb60d5 } /* Name.Variable.Instance */ -.highlight .vm { color: #bb60d5 } /* Name.Variable.Magic */ +.highlight .hll { background-color: #ffffcc } +.highlight { background: #f0f0f0; } +.highlight .c { color: #60a0b0; font-style: italic } /* Comment */ +.highlight .err { border: 1px solid #FF0000 } /* Error */ +.highlight .k { color: #007020; font-weight: bold } /* Keyword */ +.highlight .o { color: #666666 } /* Operator */ +.highlight .ch { color: #60a0b0; font-style: italic } /* Comment.Hashbang */ +.highlight .cm { color: #60a0b0; font-style: italic } /* Comment.Multiline */ +.highlight .cp { color: #007020 } /* Comment.Preproc */ +.highlight .cpf { color: #60a0b0; font-style: italic } /* Comment.PreprocFile */ +.highlight .c1 { color: #60a0b0; font-style: italic } /* Comment.Single */ +.highlight .cs { color: #60a0b0; background-color: #fff0f0 } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #007020; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #007020; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #007020; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #007020 } /* Keyword.Pseudo */ +.highlight .kr { color: #007020; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #902000 } /* Keyword.Type */ +.highlight .m { color: #40a070 } /* Literal.Number */ +.highlight .s { color: #4070a0 } /* Literal.String */ +.highlight .na { color: #4070a0 } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #0e84b5; font-weight: bold } /* Name.Class */ +.highlight .no { color: #60add5 } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #d55537; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #007020 } /* Name.Exception */ +.highlight .nf { color: #06287e } /* Name.Function */ +.highlight .nl { color: #002070; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #062873; font-weight: bold } /* Name.Tag */ +.highlight .nv { color: #bb60d5 } /* Name.Variable */ +.highlight .ow { color: #007020; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #40a070 } /* Literal.Number.Bin */ +.highlight .mf { color: #40a070 } /* Literal.Number.Float */ +.highlight .mh { color: #40a070 } /* Literal.Number.Hex */ +.highlight .mi { color: #40a070 } /* Literal.Number.Integer */ +.highlight .mo { color: #40a070 } /* Literal.Number.Oct */ +.highlight .sa { color: #4070a0 } /* Literal.String.Affix */ +.highlight .sb { color: #4070a0 } /* Literal.String.Backtick */ +.highlight .sc { color: #4070a0 } /* Literal.String.Char */ +.highlight .dl { color: #4070a0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #4070a0; font-style: italic } /* Literal.String.Doc */ +.highlight .s2 { color: #4070a0 } /* Literal.String.Double */ +.highlight .se { color: #4070a0; font-weight: bold } /* Literal.String.Escape */ +.highlight .sh { color: #4070a0 } /* Literal.String.Heredoc */ +.highlight .si { color: #70a0d0; font-style: italic } /* Literal.String.Interpol */ +.highlight .sx { color: #c65d09 } /* Literal.String.Other */ +.highlight .sr { color: #235388 } /* Literal.String.Regex */ +.highlight .s1 { color: #4070a0 } /* Literal.String.Single */ +.highlight .ss { color: #517918 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #06287e } /* Name.Function.Magic */ +.highlight .vc { color: #bb60d5 } /* Name.Variable.Class */ +.highlight .vg { color: #bb60d5 } /* Name.Variable.Global */ +.highlight .vi { color: #bb60d5 } /* Name.Variable.Instance */ +.highlight .vm { color: #bb60d5 } /* Name.Variable.Magic */ .highlight .il { color: #40a070 } /* Literal.Number.Integer.Long */ \ No newline at end of file diff --git a/_static/style.css b/_static/style.css index f0bf4f1..b57e576 100644 --- a/_static/style.css +++ b/_static/style.css @@ -1,1264 +1,1264 @@ -/* -This theme was created from scratch. -Historically however, thanks to: -- Alabaster for being a good base - - Which thanks Flask + KR theme -- Sphinx Readable Theme - - Which also proved to be a great base -*/ - -/* - note: this CSS is "mobile first" - The desktop implementation is near the bottom -*/ - -* { - box-sizing: border-box; -} - -/* CSS variables would go here */ -:root { - --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; - - /* palette goes here */ - --white: #ffffff; - --grey-1: #f9f9fa; - --grey-1-8: rgba(249, 249, 250, 0.8); - --grey-2: #ededf0; - --grey-3: #d7d7db; - --grey-4: #b1b1b3; - --grey-5: #737373; - --grey-6: #4a4a4f; - --grey-7: #38383d; - --grey-8: #2a2a2e; - --black: #0c0c0d; - - --blue-1: #3399ff; - --blue-2: #0a84ff; - --blue-3: #0060df; - --blue-4: #003eaa; - --blue-5: #002275; - --blue-6: #000f40; - - --settings: var(--grey-1); - --settings-hover: var(--grey-1-8); - --main-background: var(--grey-1); - --link-text: var(--blue-2); - --link-hover-text: var(--blue-6); - --main-text: var(--black); - --mobile-nav-background: var(--black); - --mobile-nav-text: var(--white); - --mobile-nav-hover-text: var(--white); - --mobile-nav-header-text: var(--white); - --nav-background: var(--main-background); - --nav-text: var(--grey-6); - --nav-hover-text: var(--grey-6); - --nav-header-text: var(--black); - --sub-header-background: var(--grey-6); - --search-border: var(--grey-4); - --search-text: var(--white); - --search-focus: var(--blue-1); - --search-button: var(--grey-1); - --search-button-hover: var(--grey-1-8); - --footer-text: var(--grey-5); - --footer-link: var(--grey-6); - --hr-border: var(--grey-2); - --main-big-headers-text: var(--black); - --main-big-headers-border: var(--grey-4); - --main-h5-header-text: var(--black); - --main-h6-header-text: var(--grey-4); - --main-h4-header-border: var(--grey-4); - --header-link: var(--grey-6); - --header-link-hover-text: var(--white); - --admonition-background: var(--grey-2); - --note-background: var(--blue-1); - --note-text: var(--white); - --warning-background: #ffe900; - --warning-text: var(--black); - --error-background: #d70022; - --error-text: var(--white); - --helpful-background: #00c8d7; - --helpful-text: var(--black); - --codeblock-background: var(--grey-2); - --codeblock-border: var(--grey-4); - --codeblock-text: var(--grey-6); - --inline-code-background: var(--grey-3); - --xref-code-background: transparent; - --api-entry-background: var(--grey-2); - --table-header-background: var(--grey-3); - --table-text: var(--black); - --table-border: var(--grey-4); - --mobile-active-toc: var(--grey-7); - --active-toc: var(--grey-3); - --scrollbar: rgba(0,0,0,0.2); - --scrollbar-hover: rgba(0,0,0,0.4); - --rtd-ad-border: var(--grey-3); - --rtd-ad-background: var(--grey-2); - --rtd-ad-main-text: var(--grey-6); - --rtd-ad-small-text: var(--grey-4); - --attribute-table-title: var(--grey-6); - --attribute-table-entry-border: var(--grey-3); - --attribute-table-entry-text: var(--grey-5); - --attribute-table-entry-hover-border: var(--blue-2); - --attribute-table-entry-hover-background: var(--grey-2); - --attribute-table-entry-hover-text: var(--blue-2); - --attribute-table-badge: var(--grey-7); -} - -:root[data-font="serif"] { - --font-family: 'Georgia', 'Yu Gothic', 'Noto Sans CJK JP Regular', serif; -} - -:root[data-theme="dark"] { - --main-background: var(--grey-7); - --link-text: var(--blue-1); - --link-hover-text: var(--blue-2); - --main-text: var(--white); - --sub-header-background: var(--grey-8); - --search-border: var(--grey-5); - --nav-background: var(--main-background); - --nav-text: var(--grey-1); - --nav-hover-text: var(--grey-2); - --nav-header-text: var(--white); - --footer-text: var(--grey-2); - --footer-link: var(--grey-1); - --hr-border: var(--grey-1); - --main-big-headers-text: var(--grey-1); - --main-big-headers-border: var(--grey-1); - --main-h5-header-text: var(--grey-4); - --main-h6-header-text: var(--grey-5); - --main-h4-header-border: var(--grey-2); - --header-link: var(--grey-2); - --header-link-hover-text: var(--grey-6); - --admonition-background: var(--grey-8); - --note-background: var(--blue-3); - --note-text: var(--white); - --warning-background: #d7b600; - --warning-text: var(--black); - --error-background: #d70022; - --error-text: var(--white); - --helpful-background: #008ea4; - --helpful-text: var(--white); - --codeblock-background: var(--grey-6); - --codeblock-border: var(--black); - --codeblock-text: var(--grey-1); - --inline-code-background: var(--grey-8); - --xref-code-background: transparent; - --api-entry-background: var(--grey-6); - --table-header-background: var(--grey-6); - --table-text: var(--grey-1); - --table-border: var(--grey-4); - --active-toc: var(--grey-6); - --scrollbar: rgba(0,0,0,0.5); - --scrollbar-hover: rgba(0,0,0,0.7); - --rtd-ad-border: var(--grey-6); - --rtd-ad-background: var(--grey-5); - --rtd-ad-main-text: var(--grey-2); - --rtd-ad-small-text: var(--grey-1); - --attribute-table-title: var(--grey-3); - --attribute-table-entry-border: var(--grey-5); - --attribute-table-entry-text: var(--grey-3); - --attribute-table-entry-hover-border: var(--blue-1); - --attribute-table-entry-hover-background: var(--grey-6); - --attribute-table-entry-hover-text: var(--blue-1); - --attribute-table-badge: var(--grey-4); -} - -img[src$="snake_dark.svg"] { - display: none; -} -:root[data-theme="dark"] img[src$="snake.svg"] { - display: none; -} -:root[data-theme="dark"] img[src$="snake_dark.svg"] { - display: inherit; -} - -body { - font-family: var(--font-family); - font-size: 16px; - margin: 0; - padding: 0; - height: 100%; - background-color: var(--main-background); - color: var(--main-text); -} - - -/* Scrollbar related */ - -#sidebar::-webkit-scrollbar { - width: 0.5em; -} - -#sidebar::-webkit-scrollbar-thumb { - background-color: var(--scrollbar); - border-radius: 0.25em; -} - -#sidebar::-webkit-scrollbar-thumb:hover { - background-color: var(--scrollbar-hover); -} - - -/* grid related */ - -.main-grid { - display: grid; - min-height: 100%; - grid-auto-rows: min-content auto min-content; - grid-template-areas: - "s" - "h" - "n" - "c" - "f"; -} - -.grid-item { - max-width: 100vw; - padding: 0.8em; -} - -/* all URLs only show underline on hover */ -a { - text-decoration: none; - color: var(--link-text); -} - -a:hover { - text-decoration: underline; - color: var(--link-hover-text); -} - -/* headers */ - -header.grid-item { - grid-area: h; - color: var(--main-text); - position: relative; - z-index: 1; - padding: 0; -} - -header > nav { - background-color: var(--sub-header-background); - padding: 0.8em; - display: flex; - flex-direction: row; - justify-content: flex-end; -} - -header > nav a { - color: var(--white); -} - -header > nav.mobile-only { - width: 100%; - position: absolute; - top: 0; - right: 0; - z-index: -1; - padding-top: 0; - transition: top 0.5s ease-in-out; -} - -header > nav.mobile-only .search { - width: 100%; -} - -header > nav.mobile-only .search-wrapper { - background-color: var(--sub-header-background); -} - -.main-heading { - margin-right: auto; -} - -header > nav a:not(.main-heading) { - margin: 0 0.5em; -} - -header > nav > a:hover { - color: var(--grey-1-8); - text-decoration: underline; -} - -.sub-header { - grid-area: n; - background-color: var(--sub-header-background); - color: var(--white); - display: none; -} - -/* these aren't shown on mobile */ - -.sub-header > label { - display: none; - margin-right: 1em; -} - -.sub-header > select { - display: none; - background-color: transparent; - padding: 0.4em 0; - font-size: 1em; - width: 13.5%; - color: white; - border: none; - border-bottom: 1px solid var(--search-border); - - appearance: none; - background-image: url('/_images/drop_down_icon.svg'); - background-repeat: no-repeat; - background-position-x: 100%; - background-position-y: 50%; - - cursor: pointer; -} -.sub-header > select:focus { - outline: none; -} - -.sub-header > .settings { - color: var(--settings); - display: none; - margin-left: 1em; - margin-right: 0.5em; -} - -.setting h3 { - display: inline-block; - margin-left: 2em; -} - -.sub-header > .settings:hover { - color: var(--settings-hover); -} - -/* footer stuff */ -footer { - grid-area: f; - font-size: 14px; - text-align: right; - color: var(--footer-text); -} - -footer a { - text-decoration: underline; - color: var(--footer-link); -} - -/* sidebar stuff */ - -aside { - grid-area: s; - font-size: 14px; - line-height: 1.75em; - top: 0; - position: -webkit-sticky; /* safari */ - position: sticky; - background-color: var(--mobile-nav-background); - color: var(--mobile-nav-text); - z-index: 2; - max-height: 100vh; - overflow-y: auto; - overscroll-behavior-y: contain; -} - -aside h3 { - color: var(--mobile-nav-header-text); - font-size: 24px; - font-weight: normal; -} - -.collapsible-arrow { - font-size: 1.5em!important; - left: -1.166em; - top: 0.25em; - user-select: none; - position: relative; - line-height: 0.5em; - transition: transform 0.4s; - transform: rotate(0deg); -} - -.expanded { - transition: transform 0.4s; - transform: rotate(-90deg); -} - -.ref-internal-padding { - position: relative; - left: -20px; -} - -#settings-toggle { - float: right; -} - -aside .material-icons, -.settings > .material-icons { - cursor: pointer; - font-size: 2em; -} - -.sidebar-toggle { - display: unset !important; -} - -#sidebar { - display: none; -} - -#sidebar a { - color: var(--mobile-nav-text); -} - -#sidebar a:hover { - color: var(--mobile-nav-hover-text); -} - -#sidebar h3 { - font-size: 24px; - margin: 1em 1em 0 0; -} - -#sidebar ul { - list-style: none; - margin: 1em 2em 2em 1em; - padding: 0; -} - -#sidebar ul ul { - list-style: square; - margin: 0em; - margin-left: 1.5em; -} - -#sidebar li.no-list-style { - list-style: none; -} - -#sidebar form { - margin: 1em 0; - display: flex; - align-items: baseline; -} - -/* search button stuff */ - -.search-wrapper { - display: flex; - align-items: stretch; -} - -.search-wrapper > input[type=search] { - font-family: "Roboto", Corbel, Avenir, "Lucida Grande", "Lucida Sans", sans-serif; - outline: none; - appearance: none; - font-size: 1em; -} - -.search-wrapper > input[type=search], -.search-wrapper > button[type=submit] { - background-color: var(--sub-header-background); - border: none; - color: var(--search-text); - padding: 0.5em; - min-height: 2.5em; - flex: 9; -} - -.search-wrapper { - border-bottom: 1px solid var(--search-border); -} - -.search-wrapper:focus-within { - border-bottom: 1px solid var(--search-focus); -} - -/* .search-wrapper > input[type=search] { - border: 1px solid var(--search-border); - border-right: none; - border-top-left-radius: 4px; - border-bottom-left-radius: 4px; -} - -.search-wrapper > input[type=search]:focus, -button[type=submit]:focus ~ input[type=search] { - border: 1px solid var(--search-focus); - border-right: none; -} */ - -.search-wrapper > button[type=submit] { - color: var(--search-button); - /* border: 1px solid var(--search-border); */ - /* border-left: none; */ - /* border-bottom-right-radius: 4px; */ - /* border-top-right-radius: 4px; */ - cursor: pointer; - flex: 1; -} - -/* .search-wrapper > button[type=submit]:focus, -input[type=search]:focus ~ button[type=submit] { - border: 1px solid var(--search-focus); - border-left: none; -} */ - -.search-wrapper > button[type=submit]:hover { - background-color: var(--search-border); - color: var(--search-button-hover); -} - -/* main content area */ - -main { - grid-area: c; -} - -p { - margin-bottom: 8px; -} - -/* modal stuff */ - -div.modal { - position: fixed; - z-index: 10; - left: 0; - top: 0; - width: 100%; - height: 100%; - overflow: hidden; - background-color: rgba(0,0,0,0.4); - cursor: pointer; - display: none; -} - -div.modal-content { - background-color: var(--main-background); - box-shadow: 0 2px 8px rgba(0,0,0,0.54); - padding: 24px; - border-radius: 4px; - max-width: 40%; - min-width: 350px; - cursor: initial; - flex: 1; - margin: auto; -} - -div.modal-content > span.close { - color: #888; - float: right; - font-weight: bold; - -moz-user-select: none; - -webkit-user-select: none; - cursor: pointer; -} - -div.modal-content > span.close:hover, -div.modal-content > span.close:focus { - color: #444; -} - -div.modal input { - cursor: pointer; -} - -/* copy button */ - -.relative-copy { - position: relative; -} - -.copy { - cursor: pointer; - position: absolute; - top: 0px; - right: 0px; - border: 1px solid var(--codeblock-border); - font-size: 0.875em; - padding: 0.2em 0.5em; - border-bottom-left-radius: 4px; - display: flex; -} - -/* -- body styles --------------------------------------------------------- */ - -hr { - border: 1px solid var(--hr-border); -} - -main h1, -main h2, -main h3, -main h4, -main h5, -main h6 { font-weight: normal; } - -main h1, -main h2, -main h3, -main h4 { color: var(--main-big-headers-text); } -main h5 { color: var(--main-h5-header-text); } -main h6 { color: var(--main-h6-header-text); } - -main h1 { margin: 0 0 10px 0; } -main h2, -main h3 { margin: 10px 0px 10px 0px; } -main h4, -main h5, -main h6 { margin: 20px 0px 10px 0px; } - -main h1 { padding: 0 0 10px 0; } -main h2, -main h3 { padding: 10px 0 10px 0; } -main h4 { padding: 10px 0 10px 0; } -main h5, -main h6 { padding: 10px 0 0 0; } - -main h1, -main h2, -main h3 { border-bottom: 1px solid var(--main-big-headers-border); } -main h4 { border-bottom: 1px solid var(--main-h4-header-border); } - -main h1 { font-size: 2.3em; } -main h2 { font-size: 1.8em; } -main h3 { font-size: 1.3em; } -main h4 { font-size: 1.1em; } -main h5 { font-size: 1.05em; } -main h6 { font-size: 1em; } - -a.headerlink { - color: var(--header-link); - font-size: 0.8em; - padding: 0 4px 0 4px; - text-decoration: none; - visibility: hidden; -} - -a.headerlink:hover { - background-color: var(--header-link); - color: var(--header-link-hover-text); -} - -h1:hover > a.headerlink, -h2:hover > a.headerlink, -h3:hover > a.headerlink, -h4:hover > a.headerlink, -h5:hover > a.headerlink, -h6:hover > a.headerlink, -dt:hover > a.headerlink, -caption:hover > a.headerlink, -p.caption:hover > a.headerlink, -div.code-block-caption:hover > a.headerlink { - visibility: visible; -} - -.versionmodified { - font-style: italic; -} - -main ul { - list-style: disc; - margin: 1em 0; - padding-left: 1.3em; -} - -main ul ul, main ol ul { - margin: .2em 0; - padding-left: 1.2em; -} - -main ul li { - padding: 2px 0; -} - -main ul.search li { - padding: 5px 0 5px 20px; -} - -main ol { - counter-reset: li; - margin-left: 0; - padding-left: 0; -} - -main ol ol { - margin: .2em 0; -} - -main ol > li { - list-style: none; - margin: 0 0 0 1.9em; - padding: 2px 1px; - position: relative; -} - -main ol > li::before { - content: counter(li) "."; - counter-increment: li; - top: -2px; - left: -1.1em; - width: 1.1em; - padding: 4px 0; - position: absolute; - text-align: left; -} - -main p, -main dd, -main li { - line-height: 1.4; -} - -main img { - width: 100%; - max-width: 500px; -} - -/* weird margins */ -li > p { - margin: 2px; -} - -li > blockquote { - margin: 10px; -} - -/* admonitions */ -div.admonition { - padding: 0 0.8em; - padding-bottom: 0.8em; - margin: 0.8em 0; - border-radius: 2.5px; - border-left-width: 6px; - border-left-style: solid; - background-color: var(--admonition-background); -} - -p.admonition-title { - font-weight: bold; - margin: 0 -0.8rem; - padding: 0.4rem 0.6rem 0.4rem 2.5rem; - position: relative; - -moz-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - user-select: none; -} - -p.admonition-title::before { - font: normal normal normal 24px/1 'Material Icons'; - display: inline-block; - width: 24px; - height: 24px; - position: absolute; - left: 9.6px; -} - -div.important, div.note, div.hint, div.tip { - border-left-color: var(--note-background); -} - -div.important > p.admonition-title, -div.note > p.admonition-title, -div.hint > p.admonition-title, -div.tip > p.admonition-title { - background-color: var(--note-background); - color: var(--note-text); -} - -div.important > p.admonition-title::before, -div.note > p.admonition-title::before, -div.hint > p.admonition-title::before, -div.tip > p.admonition-title::before { - content: '\0e88e'; -} - -div.attention, div.warning, div.caution { - border-left-color: var(--warning-background); -} - -div.attention > p.admonition-title, -div.warning > p.admonition-title, -div.caution > p.admonition-title { - background-color: var(--warning-background); - color: var(--warning-text); -} - -div.attention > p.admonition-title::before, -div.warning > p.admonition-title::before, -div.caution > p.admonition-title::before { - content: '\0e002'; -} - -div.danger, div.error { - border-left-color: var(--error-background); -} - -div.danger > p.admonition-title, -div.error > p.admonition-title { - background-color: var(--error-background); - color: var(--error-text); -} - -div.danger > p.admonition-title::before, -div.error > p.admonition-title::before { - content: '\0e000'; -} - -/* helpful admonitions */ -div.helpful { - border-left-color: var(--helpful-background); -} - -div.helpful > p.admonition-title { - background-color: var(--helpful-background); - color: var(--helpful-text); -} - -div.helpful > p.admonition-title::before { - content: '\0e873'; -} - -dl.field-list > dd { - margin-top: 3px; - margin-bottom: 10px; - margin-left: 20px; -} - -/* no disgusting background in the FAQ */ -div.topic { - background-color: transparent; - border: none; -} - -/* don't link-ify the FAQ page */ -a.toc-backref { - text-decoration: none; - color: var(--main-text); -} - -/* bold and fix the Parameter, Raises, etc. */ -dl.field-list > dt { - font-weight: bold; -} - -/* remove flex from field lists */ -dl.field-list { - display: block; -} - -/* internal references are forced to bold for some reason */ -a.reference.internal > strong { - font-weight: unset; - font-family: monospace; -} - -/* exception hierarchy */ - -.exception-hierarchy-content dd, -.exception-hierarchy-content dl { - margin: 0px 2px; -} - -.exception-hierarchy-content { - margin-left: 0.5em; -} - -.exception-hierarchy-content ul { - list-style: '»' !important; -} - -/* attribute tables */ -.py-attribute-table { - display: flex; - flex-wrap: wrap; - flex-direction: row; - margin: 0 2em; - padding-top: 16px; -} - -.py-attribute-table-column { - flex: 1 1 auto; -} - -.py-attribute-table-column:not(:first-child) { - margin-top: 1em; -} - -.py-attribute-table-column > span { - font-weight: bold; - color: var(--attribute-table-title); -} - -main .py-attribute-table-column > ul { - list-style: none; - margin: 4px 0px; - padding-left: 0; - font-size: 0.95em; -} - -.py-attribute-table-entry { - margin: 0; - padding: 2px 0; - padding-left: 0.2em; - border-left: 2px solid var(--attribute-table-entry-border); - display: flex; - line-height: 1.2em; -} - -.py-attribute-table-entry > a { - padding-left: 0.5em; - color: var(--attribute-table-entry-text); - flex-grow: 1; -} - -.py-attribute-table-entry > a:hover { - color: var(--attribute-table-entry-hover-text); - text-decoration: none; -} - -.py-attribute-table-entry:hover { - background-color: var(--attribute-table-entry-hover-background); - border-left: 2px solid var(--attribute-table-entry-hover-border); - text-decoration: none; -} - -.py-attribute-table-badge { - flex-basis: 3em; - text-align: right; - font-size: 0.9em; - color: var(--attribute-table-badge); - -moz-user-select: none; - -webkit-user-select: none; - user-select: none; -} - -pre { - background-color: var(--codeblock-background); - border: 1px solid var(--codeblock-border); - color: var(--codeblock-text); - font-size: 0.75em; - line-height: 1.5em; - margin: 1.5em 0 1.5em 0; - padding: 10px; - overflow-x: auto; -} - -pre, code { - font-family: 'Consolas', 'Menlo', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', monospace; - font-size: 0.9em; - overflow-wrap: break-word; -} - -code { - background-color: var(--inline-code-background); - padding: .15em; - border-radius: 3px; -} - -code.descname { - background-color: transparent; - font-weight: bold; - font-size: 0.95em; -} - -code.descclassname { - background-color: transparent; - padding-right: 0; -} - -code.descclassname + code.descname { - padding-left: 0; -} - -code.xref, a code { - font-weight: normal; - background-color: var(--xref-code-background); -} - -span.pre { - padding: 0 2px; -} - -dl.class { - margin-bottom: 50px; -} - -dl.data > dt, -dl.describe > dt, -dl.function > dt, -dl.attribute > dt, -dl.classmethod > dt, -dl.method > dt, -dl.class > dt, -dl.exception > dt { - background-color: var(--api-entry-background); - padding: 1px 10px; -} - -dd { - margin-top: 0.5em; - margin-bottom: 0.5em; - margin-left: 1.5em; -} - - -.container.operations { - padding: 10px; - border: 1px solid var(--codeblock-border); - margin-bottom: 20px; -} - -.container.operations::before { - content: 'Supported Operations'; - color: var(--main-big-headers-text); - display: block; - padding-bottom: 0.5em; -} - -.container.operations > dl.describe > dt { - background-color: var(--api-entry-background); -} - -.table-wrapper { - overflow-x: auto; -} - -table.docutils { - width: 100%; - border-collapse: collapse; -} - -table.docutils.footnote { - width: auto; -} - -table.docutils thead, -table.docutils tfoot { - background: var(--table-header-background); -} - -table.docutils thead tr th { - color: var(--table-text); - font-weight: normal; - padding: 7px 5px; - vertical-align: middle; -} - -table.docutils tbody tr th, -table.docutils tbody tr td { - border-bottom: 0; - padding: 7px 5px; - vertical-align: top; -} - -table.docutils tbody tr:not(:first-child) { - border-top: solid 1px var(--table-border); -} - -table.docutils tbody tr:last-child th, -table.docutils tbody tr:last-child td { - border-bottom: solid 1px var(--table-border); -} - -table.docutils thead tr td p, -table.docutils tfoot tr td p, -table.docutils tbody tr td p, -table.docutils thead tr td ul, -table.docutils tfoot tr td ul, -table.docutils tbody tr td ul, -table.docutils thead tr td ol, -table.docutils tfoot tr td ol, -table.docutils tbody tr td ol { - margin: 0 0 .5em; -} -table.docutils thead tr td p.last, -table.docutils tfoot tr td p.last, -table.docutils tbody tr td p.last, -table.docutils thead tr td ul.last, -table.docutils tfoot tr td ul.last, -table.docutils tbody tr td ul.last, -table.docutils thead tr td ol.last, -table.docutils tfoot tr td ol.last, -table.docutils tbody tr td ol.last { - margin-bottom: 0; -} - -/* hide the welcome text */ -section#welcome-to-discord-py > h1 { - display: none; -} - -/* make the RTD ad look a little less jarring */ - -.ethical-fixedfooter { - background-color: var(--rtd-ad-background) !important; - border-top: 1px solid var(--rtd-ad-border) !important; -} - -.ethical-fixedfooter a { - color: var(--rtd-ad-main-text) !important; -} - -.ethical-callout > small > em > a { - color: var(--rtd-ad-small-text) !important; -} - -.active { - background-color: var(--mobile-active-toc); - border-left: 5px solid var(--mobile-active-toc); -} - -div.code-block-caption { - font-size: medium; - font-weight: bold; -} - - -/* desktop stuff */ - -@media screen and (min-width: 600px) { - .grid-item { - max-width: unset; - } - - .main-grid { - grid-template-areas: - "h h h h h h" - "n n n n n n" - "s s c c c c" - "s s f f f f"; - } - - .mobile-only { - display: none; - } - - header { - background-color: var(--black); - } - - header > nav { - background-color: unset; - } - - .sub-header { - display: flex; - align-items: center; - } - - .sub-header > label { - display: initial; - } - - .sub-header > select { - display: initial; - margin-right: auto; - } - - .sub-header > .settings { - display: initial; - } - - aside { - top: initial; - position: initial; - background-color: var(--nav-background); - color: var(--nav-text); - max-height: unset; - overflow-y: unset; - overscroll-behavior-y: unset; - } - - aside h3 { - color: var(--nav-header-text); - } - - #sidebar { - display: inline-block; - position: sticky; - top: 1em; - max-height: calc(100vh - 2em); - overflow-y: auto; - margin: 1em; - } - - #sidebar a { - color: var(--nav-text); - } - - .active { - background-color: transparent; - border-left: none; - position: relative; - } - - .active::before { - content: ""; - display: inline-block; - background-color: var(--active-toc); - position: absolute; - top: 0; - bottom: 0; - right: 0; - width: calc(100% + 0.5em); - border-radius: 4px; - z-index: -1; - } - - #sidebar a:hover { - color: var(--nav-hover-text); - } - - #hamburger-toggle, #settings-toggle { - display: none; - - } -} - -@media screen and (min-width: 1200px) { - .main-grid { - /* 62.5% width => multiple of 5/8 content */ - /* sidebar takes up 20% of the inner area */ - grid-template-columns: repeat(16, 1fr); - grid-template-areas: - "h h h h h h h h h h h h h h h h" - "n n n n n n n n n n n n n n n n" - "s s s . . c c c c c c c c c . ." - "s s s f f f f f f f f f f f f f" - } - - header > nav { - margin-left: 18.75%; - margin-right: 18.75%; - } - - .sub-header > label { - margin-left: 18.75%; - margin-right: 1em; - } - - .sub-header > .settings { - margin-right: 18.75%; - margin-left: 1em; - } - - .sub-header > .search { - width: 20%; - } - - .py-attribute-table-column:not(:first-child) { - margin-top: unset; - } - - main img { - display: block; - margin-left: auto; - margin-right: auto; - } -} +/* +This theme was created from scratch. +Historically however, thanks to: +- Alabaster for being a good base + - Which thanks Flask + KR theme +- Sphinx Readable Theme + - Which also proved to be a great base +*/ + +/* + note: this CSS is "mobile first" + The desktop implementation is near the bottom +*/ + +* { + box-sizing: border-box; +} + +/* CSS variables would go here */ +:root { + --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; + + /* palette goes here */ + --white: #ffffff; + --grey-1: #f9f9fa; + --grey-1-8: rgba(249, 249, 250, 0.8); + --grey-2: #ededf0; + --grey-3: #d7d7db; + --grey-4: #b1b1b3; + --grey-5: #737373; + --grey-6: #4a4a4f; + --grey-7: #38383d; + --grey-8: #2a2a2e; + --black: #0c0c0d; + + --blue-1: #3399ff; + --blue-2: #0a84ff; + --blue-3: #0060df; + --blue-4: #003eaa; + --blue-5: #002275; + --blue-6: #000f40; + + --settings: var(--grey-1); + --settings-hover: var(--grey-1-8); + --main-background: var(--grey-1); + --link-text: var(--blue-2); + --link-hover-text: var(--blue-6); + --main-text: var(--black); + --mobile-nav-background: var(--black); + --mobile-nav-text: var(--white); + --mobile-nav-hover-text: var(--white); + --mobile-nav-header-text: var(--white); + --nav-background: var(--main-background); + --nav-text: var(--grey-6); + --nav-hover-text: var(--grey-6); + --nav-header-text: var(--black); + --sub-header-background: var(--grey-6); + --search-border: var(--grey-4); + --search-text: var(--white); + --search-focus: var(--blue-1); + --search-button: var(--grey-1); + --search-button-hover: var(--grey-1-8); + --footer-text: var(--grey-5); + --footer-link: var(--grey-6); + --hr-border: var(--grey-2); + --main-big-headers-text: var(--black); + --main-big-headers-border: var(--grey-4); + --main-h5-header-text: var(--black); + --main-h6-header-text: var(--grey-4); + --main-h4-header-border: var(--grey-4); + --header-link: var(--grey-6); + --header-link-hover-text: var(--white); + --admonition-background: var(--grey-2); + --note-background: var(--blue-1); + --note-text: var(--white); + --warning-background: #ffe900; + --warning-text: var(--black); + --error-background: #d70022; + --error-text: var(--white); + --helpful-background: #00c8d7; + --helpful-text: var(--black); + --codeblock-background: var(--grey-2); + --codeblock-border: var(--grey-4); + --codeblock-text: var(--grey-6); + --inline-code-background: var(--grey-3); + --xref-code-background: transparent; + --api-entry-background: var(--grey-2); + --table-header-background: var(--grey-3); + --table-text: var(--black); + --table-border: var(--grey-4); + --mobile-active-toc: var(--grey-7); + --active-toc: var(--grey-3); + --scrollbar: rgba(0,0,0,0.2); + --scrollbar-hover: rgba(0,0,0,0.4); + --rtd-ad-border: var(--grey-3); + --rtd-ad-background: var(--grey-2); + --rtd-ad-main-text: var(--grey-6); + --rtd-ad-small-text: var(--grey-4); + --attribute-table-title: var(--grey-6); + --attribute-table-entry-border: var(--grey-3); + --attribute-table-entry-text: var(--grey-5); + --attribute-table-entry-hover-border: var(--blue-2); + --attribute-table-entry-hover-background: var(--grey-2); + --attribute-table-entry-hover-text: var(--blue-2); + --attribute-table-badge: var(--grey-7); +} + +:root[data-font="serif"] { + --font-family: 'Georgia', 'Yu Gothic', 'Noto Sans CJK JP Regular', serif; +} + +:root[data-theme="dark"] { + --main-background: var(--grey-7); + --link-text: var(--blue-1); + --link-hover-text: var(--blue-2); + --main-text: var(--white); + --sub-header-background: var(--grey-8); + --search-border: var(--grey-5); + --nav-background: var(--main-background); + --nav-text: var(--grey-1); + --nav-hover-text: var(--grey-2); + --nav-header-text: var(--white); + --footer-text: var(--grey-2); + --footer-link: var(--grey-1); + --hr-border: var(--grey-1); + --main-big-headers-text: var(--grey-1); + --main-big-headers-border: var(--grey-1); + --main-h5-header-text: var(--grey-4); + --main-h6-header-text: var(--grey-5); + --main-h4-header-border: var(--grey-2); + --header-link: var(--grey-2); + --header-link-hover-text: var(--grey-6); + --admonition-background: var(--grey-8); + --note-background: var(--blue-3); + --note-text: var(--white); + --warning-background: #d7b600; + --warning-text: var(--black); + --error-background: #d70022; + --error-text: var(--white); + --helpful-background: #008ea4; + --helpful-text: var(--white); + --codeblock-background: var(--grey-6); + --codeblock-border: var(--black); + --codeblock-text: var(--grey-1); + --inline-code-background: var(--grey-8); + --xref-code-background: transparent; + --api-entry-background: var(--grey-6); + --table-header-background: var(--grey-6); + --table-text: var(--grey-1); + --table-border: var(--grey-4); + --active-toc: var(--grey-6); + --scrollbar: rgba(0,0,0,0.5); + --scrollbar-hover: rgba(0,0,0,0.7); + --rtd-ad-border: var(--grey-6); + --rtd-ad-background: var(--grey-5); + --rtd-ad-main-text: var(--grey-2); + --rtd-ad-small-text: var(--grey-1); + --attribute-table-title: var(--grey-3); + --attribute-table-entry-border: var(--grey-5); + --attribute-table-entry-text: var(--grey-3); + --attribute-table-entry-hover-border: var(--blue-1); + --attribute-table-entry-hover-background: var(--grey-6); + --attribute-table-entry-hover-text: var(--blue-1); + --attribute-table-badge: var(--grey-4); +} + +img[src$="snake_dark.svg"] { + display: none; +} +:root[data-theme="dark"] img[src$="snake.svg"] { + display: none; +} +:root[data-theme="dark"] img[src$="snake_dark.svg"] { + display: inherit; +} + +body { + font-family: var(--font-family); + font-size: 16px; + margin: 0; + padding: 0; + height: 100%; + background-color: var(--main-background); + color: var(--main-text); +} + + +/* Scrollbar related */ + +#sidebar::-webkit-scrollbar { + width: 0.5em; +} + +#sidebar::-webkit-scrollbar-thumb { + background-color: var(--scrollbar); + border-radius: 0.25em; +} + +#sidebar::-webkit-scrollbar-thumb:hover { + background-color: var(--scrollbar-hover); +} + + +/* grid related */ + +.main-grid { + display: grid; + min-height: 100%; + grid-auto-rows: min-content auto min-content; + grid-template-areas: + "s" + "h" + "n" + "c" + "f"; +} + +.grid-item { + max-width: 100vw; + padding: 0.8em; +} + +/* all URLs only show underline on hover */ +a { + text-decoration: none; + color: var(--link-text); +} + +a:hover { + text-decoration: underline; + color: var(--link-hover-text); +} + +/* headers */ + +header.grid-item { + grid-area: h; + color: var(--main-text); + position: relative; + z-index: 1; + padding: 0; +} + +header > nav { + background-color: var(--sub-header-background); + padding: 0.8em; + display: flex; + flex-direction: row; + justify-content: flex-end; +} + +header > nav a { + color: var(--white); +} + +header > nav.mobile-only { + width: 100%; + position: absolute; + top: 0; + right: 0; + z-index: -1; + padding-top: 0; + transition: top 0.5s ease-in-out; +} + +header > nav.mobile-only .search { + width: 100%; +} + +header > nav.mobile-only .search-wrapper { + background-color: var(--sub-header-background); +} + +.main-heading { + margin-right: auto; +} + +header > nav a:not(.main-heading) { + margin: 0 0.5em; +} + +header > nav > a:hover { + color: var(--grey-1-8); + text-decoration: underline; +} + +.sub-header { + grid-area: n; + background-color: var(--sub-header-background); + color: var(--white); + display: none; +} + +/* these aren't shown on mobile */ + +.sub-header > label { + display: none; + margin-right: 1em; +} + +.sub-header > select { + display: none; + background-color: transparent; + padding: 0.4em 0; + font-size: 1em; + width: 13.5%; + color: white; + border: none; + border-bottom: 1px solid var(--search-border); + + appearance: none; + background-image: url('/_images/drop_down_icon.svg'); + background-repeat: no-repeat; + background-position-x: 100%; + background-position-y: 50%; + + cursor: pointer; +} +.sub-header > select:focus { + outline: none; +} + +.sub-header > .settings { + color: var(--settings); + display: none; + margin-left: 1em; + margin-right: 0.5em; +} + +.setting h3 { + display: inline-block; + margin-left: 2em; +} + +.sub-header > .settings:hover { + color: var(--settings-hover); +} + +/* footer stuff */ +footer { + grid-area: f; + font-size: 14px; + text-align: right; + color: var(--footer-text); +} + +footer a { + text-decoration: underline; + color: var(--footer-link); +} + +/* sidebar stuff */ + +aside { + grid-area: s; + font-size: 14px; + line-height: 1.75em; + top: 0; + position: -webkit-sticky; /* safari */ + position: sticky; + background-color: var(--mobile-nav-background); + color: var(--mobile-nav-text); + z-index: 2; + max-height: 100vh; + overflow-y: auto; + overscroll-behavior-y: contain; +} + +aside h3 { + color: var(--mobile-nav-header-text); + font-size: 24px; + font-weight: normal; +} + +.collapsible-arrow { + font-size: 1.5em!important; + left: -1.166em; + top: 0.25em; + user-select: none; + position: relative; + line-height: 0.5em; + transition: transform 0.4s; + transform: rotate(0deg); +} + +.expanded { + transition: transform 0.4s; + transform: rotate(-90deg); +} + +.ref-internal-padding { + position: relative; + left: -20px; +} + +#settings-toggle { + float: right; +} + +aside .material-icons, +.settings > .material-icons { + cursor: pointer; + font-size: 2em; +} + +.sidebar-toggle { + display: unset !important; +} + +#sidebar { + display: none; +} + +#sidebar a { + color: var(--mobile-nav-text); +} + +#sidebar a:hover { + color: var(--mobile-nav-hover-text); +} + +#sidebar h3 { + font-size: 24px; + margin: 1em 1em 0 0; +} + +#sidebar ul { + list-style: none; + margin: 1em 2em 2em 1em; + padding: 0; +} + +#sidebar ul ul { + list-style: square; + margin: 0em; + margin-left: 1.5em; +} + +#sidebar li.no-list-style { + list-style: none; +} + +#sidebar form { + margin: 1em 0; + display: flex; + align-items: baseline; +} + +/* search button stuff */ + +.search-wrapper { + display: flex; + align-items: stretch; +} + +.search-wrapper > input[type=search] { + font-family: "Roboto", Corbel, Avenir, "Lucida Grande", "Lucida Sans", sans-serif; + outline: none; + appearance: none; + font-size: 1em; +} + +.search-wrapper > input[type=search], +.search-wrapper > button[type=submit] { + background-color: var(--sub-header-background); + border: none; + color: var(--search-text); + padding: 0.5em; + min-height: 2.5em; + flex: 9; +} + +.search-wrapper { + border-bottom: 1px solid var(--search-border); +} + +.search-wrapper:focus-within { + border-bottom: 1px solid var(--search-focus); +} + +/* .search-wrapper > input[type=search] { + border: 1px solid var(--search-border); + border-right: none; + border-top-left-radius: 4px; + border-bottom-left-radius: 4px; +} + +.search-wrapper > input[type=search]:focus, +button[type=submit]:focus ~ input[type=search] { + border: 1px solid var(--search-focus); + border-right: none; +} */ + +.search-wrapper > button[type=submit] { + color: var(--search-button); + /* border: 1px solid var(--search-border); */ + /* border-left: none; */ + /* border-bottom-right-radius: 4px; */ + /* border-top-right-radius: 4px; */ + cursor: pointer; + flex: 1; +} + +/* .search-wrapper > button[type=submit]:focus, +input[type=search]:focus ~ button[type=submit] { + border: 1px solid var(--search-focus); + border-left: none; +} */ + +.search-wrapper > button[type=submit]:hover { + background-color: var(--search-border); + color: var(--search-button-hover); +} + +/* main content area */ + +main { + grid-area: c; +} + +p { + margin-bottom: 8px; +} + +/* modal stuff */ + +div.modal { + position: fixed; + z-index: 10; + left: 0; + top: 0; + width: 100%; + height: 100%; + overflow: hidden; + background-color: rgba(0,0,0,0.4); + cursor: pointer; + display: none; +} + +div.modal-content { + background-color: var(--main-background); + box-shadow: 0 2px 8px rgba(0,0,0,0.54); + padding: 24px; + border-radius: 4px; + max-width: 40%; + min-width: 350px; + cursor: initial; + flex: 1; + margin: auto; +} + +div.modal-content > span.close { + color: #888; + float: right; + font-weight: bold; + -moz-user-select: none; + -webkit-user-select: none; + cursor: pointer; +} + +div.modal-content > span.close:hover, +div.modal-content > span.close:focus { + color: #444; +} + +div.modal input { + cursor: pointer; +} + +/* copy button */ + +.relative-copy { + position: relative; +} + +.copy { + cursor: pointer; + position: absolute; + top: 0px; + right: 0px; + border: 1px solid var(--codeblock-border); + font-size: 0.875em; + padding: 0.2em 0.5em; + border-bottom-left-radius: 4px; + display: flex; +} + +/* -- body styles --------------------------------------------------------- */ + +hr { + border: 1px solid var(--hr-border); +} + +main h1, +main h2, +main h3, +main h4, +main h5, +main h6 { font-weight: normal; } + +main h1, +main h2, +main h3, +main h4 { color: var(--main-big-headers-text); } +main h5 { color: var(--main-h5-header-text); } +main h6 { color: var(--main-h6-header-text); } + +main h1 { margin: 0 0 10px 0; } +main h2, +main h3 { margin: 10px 0px 10px 0px; } +main h4, +main h5, +main h6 { margin: 20px 0px 10px 0px; } + +main h1 { padding: 0 0 10px 0; } +main h2, +main h3 { padding: 10px 0 10px 0; } +main h4 { padding: 10px 0 10px 0; } +main h5, +main h6 { padding: 10px 0 0 0; } + +main h1, +main h2, +main h3 { border-bottom: 1px solid var(--main-big-headers-border); } +main h4 { border-bottom: 1px solid var(--main-h4-header-border); } + +main h1 { font-size: 2.3em; } +main h2 { font-size: 1.8em; } +main h3 { font-size: 1.3em; } +main h4 { font-size: 1.1em; } +main h5 { font-size: 1.05em; } +main h6 { font-size: 1em; } + +a.headerlink { + color: var(--header-link); + font-size: 0.8em; + padding: 0 4px 0 4px; + text-decoration: none; + visibility: hidden; +} + +a.headerlink:hover { + background-color: var(--header-link); + color: var(--header-link-hover-text); +} + +h1:hover > a.headerlink, +h2:hover > a.headerlink, +h3:hover > a.headerlink, +h4:hover > a.headerlink, +h5:hover > a.headerlink, +h6:hover > a.headerlink, +dt:hover > a.headerlink, +caption:hover > a.headerlink, +p.caption:hover > a.headerlink, +div.code-block-caption:hover > a.headerlink { + visibility: visible; +} + +.versionmodified { + font-style: italic; +} + +main ul { + list-style: disc; + margin: 1em 0; + padding-left: 1.3em; +} + +main ul ul, main ol ul { + margin: .2em 0; + padding-left: 1.2em; +} + +main ul li { + padding: 2px 0; +} + +main ul.search li { + padding: 5px 0 5px 20px; +} + +main ol { + counter-reset: li; + margin-left: 0; + padding-left: 0; +} + +main ol ol { + margin: .2em 0; +} + +main ol > li { + list-style: none; + margin: 0 0 0 1.9em; + padding: 2px 1px; + position: relative; +} + +main ol > li::before { + content: counter(li) "."; + counter-increment: li; + top: -2px; + left: -1.1em; + width: 1.1em; + padding: 4px 0; + position: absolute; + text-align: left; +} + +main p, +main dd, +main li { + line-height: 1.4; +} + +main img { + width: 100%; + max-width: 500px; +} + +/* weird margins */ +li > p { + margin: 2px; +} + +li > blockquote { + margin: 10px; +} + +/* admonitions */ +div.admonition { + padding: 0 0.8em; + padding-bottom: 0.8em; + margin: 0.8em 0; + border-radius: 2.5px; + border-left-width: 6px; + border-left-style: solid; + background-color: var(--admonition-background); +} + +p.admonition-title { + font-weight: bold; + margin: 0 -0.8rem; + padding: 0.4rem 0.6rem 0.4rem 2.5rem; + position: relative; + -moz-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + user-select: none; +} + +p.admonition-title::before { + font: normal normal normal 24px/1 'Material Icons'; + display: inline-block; + width: 24px; + height: 24px; + position: absolute; + left: 9.6px; +} + +div.important, div.note, div.hint, div.tip { + border-left-color: var(--note-background); +} + +div.important > p.admonition-title, +div.note > p.admonition-title, +div.hint > p.admonition-title, +div.tip > p.admonition-title { + background-color: var(--note-background); + color: var(--note-text); +} + +div.important > p.admonition-title::before, +div.note > p.admonition-title::before, +div.hint > p.admonition-title::before, +div.tip > p.admonition-title::before { + content: '\0e88e'; +} + +div.attention, div.warning, div.caution { + border-left-color: var(--warning-background); +} + +div.attention > p.admonition-title, +div.warning > p.admonition-title, +div.caution > p.admonition-title { + background-color: var(--warning-background); + color: var(--warning-text); +} + +div.attention > p.admonition-title::before, +div.warning > p.admonition-title::before, +div.caution > p.admonition-title::before { + content: '\0e002'; +} + +div.danger, div.error { + border-left-color: var(--error-background); +} + +div.danger > p.admonition-title, +div.error > p.admonition-title { + background-color: var(--error-background); + color: var(--error-text); +} + +div.danger > p.admonition-title::before, +div.error > p.admonition-title::before { + content: '\0e000'; +} + +/* helpful admonitions */ +div.helpful { + border-left-color: var(--helpful-background); +} + +div.helpful > p.admonition-title { + background-color: var(--helpful-background); + color: var(--helpful-text); +} + +div.helpful > p.admonition-title::before { + content: '\0e873'; +} + +dl.field-list > dd { + margin-top: 3px; + margin-bottom: 10px; + margin-left: 20px; +} + +/* no disgusting background in the FAQ */ +div.topic { + background-color: transparent; + border: none; +} + +/* don't link-ify the FAQ page */ +a.toc-backref { + text-decoration: none; + color: var(--main-text); +} + +/* bold and fix the Parameter, Raises, etc. */ +dl.field-list > dt { + font-weight: bold; +} + +/* remove flex from field lists */ +dl.field-list { + display: block; +} + +/* internal references are forced to bold for some reason */ +a.reference.internal > strong { + font-weight: unset; + font-family: monospace; +} + +/* exception hierarchy */ + +.exception-hierarchy-content dd, +.exception-hierarchy-content dl { + margin: 0px 2px; +} + +.exception-hierarchy-content { + margin-left: 0.5em; +} + +.exception-hierarchy-content ul { + list-style: '»' !important; +} + +/* attribute tables */ +.py-attribute-table { + display: flex; + flex-wrap: wrap; + flex-direction: row; + margin: 0 2em; + padding-top: 16px; +} + +.py-attribute-table-column { + flex: 1 1 auto; +} + +.py-attribute-table-column:not(:first-child) { + margin-top: 1em; +} + +.py-attribute-table-column > span { + font-weight: bold; + color: var(--attribute-table-title); +} + +main .py-attribute-table-column > ul { + list-style: none; + margin: 4px 0px; + padding-left: 0; + font-size: 0.95em; +} + +.py-attribute-table-entry { + margin: 0; + padding: 2px 0; + padding-left: 0.2em; + border-left: 2px solid var(--attribute-table-entry-border); + display: flex; + line-height: 1.2em; +} + +.py-attribute-table-entry > a { + padding-left: 0.5em; + color: var(--attribute-table-entry-text); + flex-grow: 1; +} + +.py-attribute-table-entry > a:hover { + color: var(--attribute-table-entry-hover-text); + text-decoration: none; +} + +.py-attribute-table-entry:hover { + background-color: var(--attribute-table-entry-hover-background); + border-left: 2px solid var(--attribute-table-entry-hover-border); + text-decoration: none; +} + +.py-attribute-table-badge { + flex-basis: 3em; + text-align: right; + font-size: 0.9em; + color: var(--attribute-table-badge); + -moz-user-select: none; + -webkit-user-select: none; + user-select: none; +} + +pre { + background-color: var(--codeblock-background); + border: 1px solid var(--codeblock-border); + color: var(--codeblock-text); + font-size: 0.75em; + line-height: 1.5em; + margin: 1.5em 0 1.5em 0; + padding: 10px; + overflow-x: auto; +} + +pre, code { + font-family: 'Consolas', 'Menlo', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', monospace; + font-size: 0.9em; + overflow-wrap: break-word; +} + +code { + background-color: var(--inline-code-background); + padding: .15em; + border-radius: 3px; +} + +code.descname { + background-color: transparent; + font-weight: bold; + font-size: 0.95em; +} + +code.descclassname { + background-color: transparent; + padding-right: 0; +} + +code.descclassname + code.descname { + padding-left: 0; +} + +code.xref, a code { + font-weight: normal; + background-color: var(--xref-code-background); +} + +span.pre { + padding: 0 2px; +} + +dl.class { + margin-bottom: 50px; +} + +dl.data > dt, +dl.describe > dt, +dl.function > dt, +dl.attribute > dt, +dl.classmethod > dt, +dl.method > dt, +dl.class > dt, +dl.exception > dt { + background-color: var(--api-entry-background); + padding: 1px 10px; +} + +dd { + margin-top: 0.5em; + margin-bottom: 0.5em; + margin-left: 1.5em; +} + + +.container.operations { + padding: 10px; + border: 1px solid var(--codeblock-border); + margin-bottom: 20px; +} + +.container.operations::before { + content: 'Supported Operations'; + color: var(--main-big-headers-text); + display: block; + padding-bottom: 0.5em; +} + +.container.operations > dl.describe > dt { + background-color: var(--api-entry-background); +} + +.table-wrapper { + overflow-x: auto; +} + +table.docutils { + width: 100%; + border-collapse: collapse; +} + +table.docutils.footnote { + width: auto; +} + +table.docutils thead, +table.docutils tfoot { + background: var(--table-header-background); +} + +table.docutils thead tr th { + color: var(--table-text); + font-weight: normal; + padding: 7px 5px; + vertical-align: middle; +} + +table.docutils tbody tr th, +table.docutils tbody tr td { + border-bottom: 0; + padding: 7px 5px; + vertical-align: top; +} + +table.docutils tbody tr:not(:first-child) { + border-top: solid 1px var(--table-border); +} + +table.docutils tbody tr:last-child th, +table.docutils tbody tr:last-child td { + border-bottom: solid 1px var(--table-border); +} + +table.docutils thead tr td p, +table.docutils tfoot tr td p, +table.docutils tbody tr td p, +table.docutils thead tr td ul, +table.docutils tfoot tr td ul, +table.docutils tbody tr td ul, +table.docutils thead tr td ol, +table.docutils tfoot tr td ol, +table.docutils tbody tr td ol { + margin: 0 0 .5em; +} +table.docutils thead tr td p.last, +table.docutils tfoot tr td p.last, +table.docutils tbody tr td p.last, +table.docutils thead tr td ul.last, +table.docutils tfoot tr td ul.last, +table.docutils tbody tr td ul.last, +table.docutils thead tr td ol.last, +table.docutils tfoot tr td ol.last, +table.docutils tbody tr td ol.last { + margin-bottom: 0; +} + +/* hide the welcome text */ +section#welcome-to-discord-py > h1 { + display: none; +} + +/* make the RTD ad look a little less jarring */ + +.ethical-fixedfooter { + background-color: var(--rtd-ad-background) !important; + border-top: 1px solid var(--rtd-ad-border) !important; +} + +.ethical-fixedfooter a { + color: var(--rtd-ad-main-text) !important; +} + +.ethical-callout > small > em > a { + color: var(--rtd-ad-small-text) !important; +} + +.active { + background-color: var(--mobile-active-toc); + border-left: 5px solid var(--mobile-active-toc); +} + +div.code-block-caption { + font-size: medium; + font-weight: bold; +} + + +/* desktop stuff */ + +@media screen and (min-width: 600px) { + .grid-item { + max-width: unset; + } + + .main-grid { + grid-template-areas: + "h h h h h h" + "n n n n n n" + "s s c c c c" + "s s f f f f"; + } + + .mobile-only { + display: none; + } + + header { + background-color: var(--black); + } + + header > nav { + background-color: unset; + } + + .sub-header { + display: flex; + align-items: center; + } + + .sub-header > label { + display: initial; + } + + .sub-header > select { + display: initial; + margin-right: auto; + } + + .sub-header > .settings { + display: initial; + } + + aside { + top: initial; + position: initial; + background-color: var(--nav-background); + color: var(--nav-text); + max-height: unset; + overflow-y: unset; + overscroll-behavior-y: unset; + } + + aside h3 { + color: var(--nav-header-text); + } + + #sidebar { + display: inline-block; + position: sticky; + top: 1em; + max-height: calc(100vh - 2em); + overflow-y: auto; + margin: 1em; + } + + #sidebar a { + color: var(--nav-text); + } + + .active { + background-color: transparent; + border-left: none; + position: relative; + } + + .active::before { + content: ""; + display: inline-block; + background-color: var(--active-toc); + position: absolute; + top: 0; + bottom: 0; + right: 0; + width: calc(100% + 0.5em); + border-radius: 4px; + z-index: -1; + } + + #sidebar a:hover { + color: var(--nav-hover-text); + } + + #hamburger-toggle, #settings-toggle { + display: none; + + } +} + +@media screen and (min-width: 1200px) { + .main-grid { + /* 62.5% width => multiple of 5/8 content */ + /* sidebar takes up 20% of the inner area */ + grid-template-columns: repeat(16, 1fr); + grid-template-areas: + "h h h h h h h h h h h h h h h h" + "n n n n n n n n n n n n n n n n" + "s s s . . c c c c c c c c c . ." + "s s s f f f f f f f f f f f f f" + } + + header > nav { + margin-left: 18.75%; + margin-right: 18.75%; + } + + .sub-header > label { + margin-left: 18.75%; + margin-right: 1em; + } + + .sub-header > .settings { + margin-right: 18.75%; + margin-left: 1em; + } + + .sub-header > .search { + width: 20%; + } + + .py-attribute-table-column:not(:first-child) { + margin-top: unset; + } + + main img { + display: block; + margin-left: auto; + margin-right: auto; + } +} diff --git a/index.html b/index.html index 7e6bc04..028f491 100644 --- a/index.html +++ b/index.html @@ -113,7 +113,7 @@

Getting helpIf you’re having trouble with something, these resources might help.