Added theme for jazzy doc

This commit is contained in:
Petr Pokorny
2021-02-04 11:30:58 +01:00
parent 2fecd26a55
commit c933d73e0c
26 changed files with 3026 additions and 0 deletions

View File

@@ -0,0 +1,88 @@
/* Rouge Syntax Highlighting, Mapbox Base style
------------------------------------------------------- */
.highlight .hll { background-color:#ffffcc }
/* No Styling, Just Default:
.highlight .nx, Normal Text
.highlight .ni Name.Entity
.highlight .nf Name.Entity
.highlight .no Name.Constant
*/
/* Comments */
.highlight .o, /* Operator */
.highlight .c,
.highlight .c1,
.highlight .cp,
.highlight .cm { color:#999; font-style:italic; }
.highlight .err { color:#F00000; background-color:#F0A0A0 } /* Error */
.highlight .k { color:#404040; font-weight:bold; } /* Keyword */
.highlight .css .k { font-weight:normal; }
.highlight .cs { color:#404040; font-style:italic; } /* Comment.Special */
.highlight .gd { color:#A00000; } /* Generic.Deleted */
.highlight .ge { font-style:italic } /* Generic.Emph */
.highlight .gs { font-weight:bold; } /* Generic.Strong */
.highlight .gr { color:#FF0000; } /* Generic.Error */
.highlight .gh { color:#000080; } /* Generic.Heading */
.highlight .gi { color:#00A000; } /* Generic.Inserted */
.highlight .go { color:#808080; } /* Generic.Output */
.highlight .gp { color:#c65d09; } /* Generic.Prompt */
.highlight .gu { color:#800080; } /* Generic.Subheading */
.highlight .gt { color:#0040D0; } /* Generic.Traceback */
.highlight .kc { color:#D24400; } /* Keyword.Constant */
/* Keyword.Declaration
* Keyword.Namespace
* Keyword.Reserved */
.highlight .kd,
.highlight .kn,
.highlight .kr,
.highlight .nt { color:#0B5A91; } /* Name.Tag */
/* Literal.Number */
.highlight .mh,
.highlight .mo,
.highlight .il,
.highlight .mi,
.highlight .kt,
.highlight .mf,
.highlight .nl, /* Name.Label */
.highlight .na, /* Name.Attribute */
.highlight .m { color:#0C9DC2; } /* Keyword.Type */
.highlight .kp { color:#0080f0; } /* Keyword.Pseudo */
.highlight .nc { color:#DF6637; } /* Name.Class */
.highlight .css .nc { color:#75A21C; }
.highlight .nd { color:#505050; } /* Name.Decorator */
.highlight .ne { color:#F00000; } /* Name.Exception */
.highlight .nn { color:#0e84b5; } /* Name.Namespace */
.highlight .nf, /* Name.Function */
.highlight .nv { color:#003060; } /* Name.Variable */
.highlight .ow { color:#404040; } /* Operator.Word */
.highlight .w { color:#bbbbbb; } /* Text.Whitespace */
.highlight .sc { color:#8080F0; } /* Literal.String.Char */
.highlight .sd { color:#D04020; } /* Literal.String.Doc */
/* Name.Builtin / Name.Builtin.Pseudo */
.highlight .bp,
.highlight .nb { color:#007020; }
/* Literal.String */
.highlight .s,
.highlight .sh,
.highlight .sb,
.highlight .s1,
.highlight .sr,
.highlight .se { color:#75A21C; }
.highlight .si { background-color:#eee; } /* Literal.String.Interpol */
.highlight .p { color:#444444; } /* Normal Text */
.highlight .ss { color:#f0c080; } /* Literal.String.Symbol */
.highlight .vc { color:#c0c0f0; } /* Name.Variable.Class */
.highlight .vg { color:#f08040; } /* Name.Variable.Global */
.highlight .vi { color:#a0a0f0; } /* Name.Variable.Instance */

View File

@@ -0,0 +1,804 @@
// ===========================================================================
//
// Variables
//
// ===========================================================================
$body_background: #fff;
$body_font: 14px/25px 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
$text_color: #333;
$gray_border: 1px solid #ddd;
$quote_color: #858585;
$quote_border: 4px solid #e5e5e5;
$link_color: #3887BE;
$link_hover_color: #63b6e5;
$table_alt_row_color: #fbfbfb;
$table_border_color: #ddd;
$color_light: #F5F8FC;
$color_darkblue: #0B293A;
$color_brightblue: #3A68D8;
$color_darkblue_lighten: rgba(11, 41, 58, 0.75);
$keyline_color: rgba(12, 40, 73, 0.08);
$code_font: Menlo, Bitstream Vera Sans Mono, Monaco, Consolas, monospace;
$purple: #9595D1;
$blue: #4092C5;
// ----- Layout
$gutter: 16px;
$navigation_min_width: 175px;
$navigation_max_width: 300px;
// ----- Header
$header_weight: normal;
$header_color: #555;
$header_font: 'Open Sans Bold', 'Helvetica Neue', Helvetica, Arial, sans-serif;
$header_link_color: #fff;
$doc_coverage_color: #999;
// ----- Navigation
$navigation_max_width: 300px;
$navigation_bg_color: #fbfbfb;
$navigation_task_color: $link_color;
$section_name_color: $color_darkblue;
$navigation_gloss_color: #999;
// ----- Content
$declaration_title_language_color: #4183c4;
$declaration_language_border: 4px solid $color_brightblue;
$declaration_bg_color: #fdfeff;
$declaration_border_color: #ddd;
$aside_color: #aaa;
$aside_border: 4px solid lighten($aside_color, 20%);
$aside_warning_color: #ff0000;
$aside_warning_border: 4px solid lighten($aside_warning_color, 20%);
// ----- Footer
$footer_text_color: #888;
$footer_link_color: #555;
// ===========================================================================
//
// Base
//
// ===========================================================================
*, *:before, *:after {
box-sizing: inherit;
}
body {
margin: 0;
background: $body_background;
color: $color_darkblue;
font: $body_font;
-webkit-font-smoothing: antialiased;
box-sizing: border-box;
}
// ----- Block elements
@mixin heading($font-size: 1rem, $margin: 1.275em 0 0.85em) {
font-family: $header_font;
font-size: $font-size;
font-weight: $header_weight;
color: $color_darkblue;
margin: $margin;
}
h1 {
@include heading(1.7rem, 0.5em 0 0.6em);
}
h1 a {
color: $color_darkblue;
}
h2 {
@include heading(1.5rem, 1em 0 0.6em);
}
h3 {
@include heading(1.2rem, 1em 0 0.3em);
}
h3 > code {
font-weight: bold;
font-size: 1.2rem;
}
h4 {
@include heading(1rem);
}
h5, h6 {
@include heading;
}
p {
margin: 0 0 1em;
}
ul, ol {
padding: 0 0 0 1.5em;
margin: 0 0 0.85em;
}
ul.item-container {
padding: 0px;
}
ul:first-of-type,
ol:first-of-type {
margin: 0px;
}
blockquote {
margin: 0 0 0.85em;
padding: 0 15px;
color: $quote_color;
border-left: $quote_border;
}
// ----- Inline elements
img {
max-width: 100%;
}
a {
color: $link_color;
text-decoration: none;
> *:hover, &:hover, &:focus {
opacity: 0.7;
}
&:focus {
box-shadow:inset 0 0 0 1px rgba(0,0,0,0.05);
}
}
// ----- Tables
table {
background: $body_background;
width: 100%;
font-size: 13px;
line-height: 23px;
border-collapse: collapse;
border-spacing: 0;
overflow: auto;
margin: 0 0 0.85em;
}
th, td {
padding: 6px 13px;
border: 1px solid $keyline_color;
}
// ----- Code
pre {
margin: 0 0 1.275em;
padding: .85em 1em;
overflow: auto;
background: $color_light;
font-family: $code_font;
border-radius: 4px;
}
code {
font-family: $code_font;
font-size: 13px;
line-height: .85em;
}
p, li {
> code {
background: $color_light;
padding: 0.1em 0.2em;
font-weight: bold;
border: 1px solid #D5D5D5;
border-radius: 4px;
}
}
td > code,
.graybox code {
font-weight: bold;
font-size: 12px;
}
pre code {
padding: 0;
white-space: pre;
}
// ===========================================================================
//
// Layout
//
// ===========================================================================
.content-wrapper {
display: flex;
flex-direction: column;
@media (min-width: 768px) {
flex-direction: row;
}
}
.limiter {
max-width: 1360px;
margin: auto;
padding: 0px 30px;
}
.space-right2 {
margin-right: 20px;
}
// ===========================================================================
//
// Header
//
// ===========================================================================
.header-container {
background: $color_brightblue;
}
.header {
display: flex;
padding: 12px 0px;
font-size: 12px;
color: $doc_coverage_color;
@media (max-width: 768px) {
display: block;
}
}
.header-tag {
vertical-align: text-top;
line-height: 10px;
background: rgba(255, 255, 255, 0.1);
border-radius: 4px;
padding: 2px 5px;
margin-left: 5px;
opacity: 0.9;
}
.header-col {
margin: 5px 0 0 0;
padding: 0
}
.header-col--primary {
flex: 1;
}
.header-link {
font-family: $header_font;
color: $header_link_color;
}
.header-image, .header-icon {
padding-right: 2px;
vertical-align: -4px;
height: 16px;
}
// ===========================================================================
//
// Breadcrumbs
//
// ===========================================================================
.breadcrumbs {
font-size: 13px;
padding: $gutter / 2 0px;
margin: 0;
background: $color_light;
border-bottom: 1px solid $keyline_color;
}
.carat {
height: 10px;
margin: 0 5px;
}
// ===========================================================================
//
// Navigation
//
// ===========================================================================
.navigation {
order: 2;
font-size: 13px;
padding-top: 20px;
@media (min-width: 768px) {
order: 1;
width: 25%;
min-width: $navigation_min_width;
max-width: $navigation_max_width;
padding-bottom: $gutter*4;
line-height: 20px;
overflow: hidden;
border-right: 1px solid $keyline_color;
}
}
.nav-groups {
list-style-type: none;
padding-left: 0;
}
.nav-group-name {
padding: $gutter/2 0 $gutter/2 0px;
}
.small-heading, h4 {
font-size: 13px;
font-family: $header_font;
text-transform: uppercase;
color: $color_darkblue;
letter-spacing: 1px;
}
.nav-group-tasks {
margin: $gutter/2 0;
padding: 0 0 0 0;
}
.nav-group-task {
font-size: 1em;
list-style-type: none;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: $navigation_task_color;
}
%nav-group-task-gloss {
color: $navigation_gloss_color;
font-size: 90%;
margin-left: 0.5em;
}
.nav-group-task[data-url^="Protocols/"] > .nav-group-task-link::after {
@extend %nav-group-task-gloss;
content: "(Protocol)";
}
.nav-group-task[data-name="MGLForegroundStyleLayer"],
.nav-group-task[data-name="MGLMultiPoint"],
.nav-group-task[data-name="MGLShape"],
.nav-group-task[data-name="MGLSource"],
.nav-group-task[data-name="MGLStyleFunction"],
.nav-group-task[data-name="MGLStyleLayer"],
.nav-group-task[data-name="MGLTileSource"],
.nav-group-task[data-name="MGLVectorStyleLayer"] {
.nav-group-task-link::after {
@extend %nav-group-task-gloss;
content: "(Abstract Class)";
}
}
.nav-group-name > .small-heading,
.nav-group-task-link {
display: block;
}
.nav-group-task-link {
color: $color_darkblue_lighten;
}
// ===========================================================================
//
// Content
//
// ===========================================================================
.main-content {
order: 1;
@media (min-width: 768px) {
order: 2;
flex: 1;
padding-bottom: 60px;
max-width: 80%;
}
}
.section {
padding: 0px 20px;
@media (max-width: 768px) {
padding: inherit;
}
}
.section-content {
margin: 0 auto;
padding: $gutter 0;
border-bottom: 1px solid $keyline_color;
}
.section-content img {
margin: 0 auto;
}
.section-name {
color: $section_name_color;
display: block;
}
.anchor-icon {
margin-left: 4px;
opacity: 0.7;
display: inline-block;
background: url("../img/link.svg");
background-repeat: no-repeat;
width: 10px;
height: 10px;
}
h1 > .anchor-icon { margin-bottom: 2px; }
.declaration .highlight {
font-size: 15px;
overflow-x: initial; // This allows the scrollbar to show up inside declarations
padding: $gutter/2 0;
line-height: 20px;
margin: 0;
background-color: transparent;
border: none;
}
.highlight a { text-decoration: underline; }
.task-group-section {
border-top: $gray_border;
}
.task-group {
padding-top: 0px;
}
.task-name-container {
a[name] {
&:before {
content: "";
display: block;
}
}
}
.item {
width: 100%;
list-style-type: none;
a[name] {
&:before {
content: "";
display: block;
}
}
.token {
margin-left: 0px;
font-size: 13px;
display: flex;
padding: 5px 0px;
line-height: 14px;
}
.token-name {
display: inline-block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.token-icon {
background: url('../img/plus.svg');
width: 17px;
display: inline-block;
vertical-align: middle;
height: 13px;
opacity: 1;
margin-left: 5px;
background-repeat: no-repeat;
}
.token-icon-minus {
background: url('../img/minus.svg');
background-repeat: no-repeat;
}
.discouraged {
text-decoration: line-through;
}
.declaration-note {
font-size: 13px;
color: #808080;
font-style: italic;
}
}
.pointer-container {
border-bottom: $gray_border;
left: -23px;
padding-bottom: 13px;
position: relative;
width: 110%;
}
.pointer {
left: 21px;
top: 7px;
display: block;
position: absolute;
width: 12px;
height: 12px;
border-left: 1px solid $declaration_border_color;
border-top: 1px solid $declaration_border_color;
background: $declaration_bg_color;
transform: rotate(45deg);
}
.height-container {
display: none;
position: relative;
width: 100%;
overflow: hidden;
.section {
background: $declaration_bg_color;
border: 1px solid $keyline_color;
padding: 15px 20px;
border-radius: 4px;
margin: 10px 0px 30px;
}
}
.aside, .language {
padding: 6px 12px;
margin: 12px 0;
border-left: $aside_border;
border-radius: 4px;
overflow-y: hidden;
.aside-title {
font-size: 10px;
font-family: $header_font;
letter-spacing: 2px;
text-transform: uppercase;
padding: 2px 8px;
display: inline;
margin: 0;
-webkit-user-select: none;
}
p:last-child {
margin-bottom: 0;
}
}
.language {
background: $color_light;
border-left: $declaration_language_border;
}
.aside.aside-see, .aside.aside-note, {
background: $color_light;
.aside-title {
padding-left: 0px;
}
}
.aside-warning, .aside-deprecated, .aside-unavailable {
border-left: $aside_warning_border;
.aside-title {
color: $aside_warning_color;
}
}
.graybox {
width: 100%;
border-collapse:separate;
border:solid $keyline_color 1px;
border-radius:6px;
-moz-border-radius:6px;
p {
margin: 0;
word-break: break-word;
min-width: 50px;
}
td {
padding: 5px 25px 5px 10px;
vertical-align: middle;
}
tr td:first-of-type {
text-align: right;
padding: 7px;
vertical-align: top;
word-break: normal;
width: 40px;
border-left: none;
border-top: none;
}
th, td {
border-right:none;
border-top: none;
}
td:first-child, th:first-child {
border-left: none;
}
tr:last-of-type td {
border-bottom: none;
}
}
.show-on-github-icon {
width: 16px;
display: inline-block !important;
vertical-align: -3px;
padding-left: 2px;
}
.show-on-github a {
margin: 10px 0 10px;
display: inline-block;
font-size: 13px;
}
// ===========================================================================
//
// Search
//
// ===========================================================================
form[role=search] {
input {
font: $body_font;
font-size: 14px;
line-height: 24px;
padding: 0px 15px;
height: 36px;
margin: 0;
border: 1px solid $keyline_color;
background: $color_light;
outline: none;
margin-bottom: 10px;
border-radius: 18px;
.loading & {
background: white url(../img/spinner.gif) center right 4px no-repeat;
}
}
input:focus {
border: 1px solid $color_brightblue;
background: #fff;
}
// Typeahead elements
.twitter-typeahead {
width: 100%;
}
.tt-menu {
margin: 0;
background: $navigation_bg_color;
color: $text_color;
border: 1px solid $keyline_color;
}
.tt-highlight {
font-weight: bold;
}
.tt-suggestion {
font: $body_font;
padding: 0 $gutter/2;
span {
display: table-cell;
white-space: nowrap;
}
.doc-parent-name {
width: 100%;
text-align: right;
font-weight: normal;
font-size: 0.9em;
padding-left: $gutter;
}
}
.tt-suggestion:hover,
.tt-suggestion.tt-cursor {
cursor: pointer;
background-color: $link_color;
color: #fff;
}
.tt-suggestion:hover .doc-parent-name,
.tt-suggestion.tt-cursor .doc-parent-name {
color: #fff;
}
}
// ===========================================================================
//
// Footer
//
// ===========================================================================
.footer {
border-top: 1px $keyline_color solid;
padding: $gutter/2 $gutter;
color: $footer_text_color;
p {
display: inline;
}
a {
color: $footer_link_color;
}
}
// ===========================================================================
//
// Dash
//
// ===========================================================================
html.dash {
.header, .breadcrumbs, .navigation {
display: none;
}
.height-container {
display: block;
}
}
// ===========================================================================
//
// Fonts
//
// ===========================================================================
@font-face {
font-family:'Open Sans';
src:url('../fonts/opensans-regular.eot');
src:url('../fonts/opensans-regular.eot#iefix') format('embedded-opentype'),
url('../fonts/opensans-regular.woff') format('woff');
}
@font-face {
font-family:'Open Sans Bold';
src:url('../fonts/opensans-bold.eot');
src:url('../fonts/opensans-bold.eot#iefix') format('embedded-opentype'),
url('../fonts/opensans-bold.woff') format('woff');
}
.strong { font-family: $header_font;}
.text-purple { color: $purple; }
.text-blue { color: $blue; }
.keyline-purple { border-color: $purple; }
.keyline-blue { border-color: $blue; }

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 274 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg viewBox="0 0 33 33" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path stroke="none" fill="#3887BE" fill-rule="evenodd" d="M16.6,0.4 C7.6,0.4 0.3,7.7 0.3,16.7 C0.3,23.9 5,30 11.4,32.2 C12.2,32.3 12.5,31.8 12.5,31.4 L12.5,28.6 C8,29.6 7,26.4 7,26.4 C6.3,24.5 5.2,24 5.2,24 C3.7,23 5.3,23 5.3,23 C6.9,23.1 7.8,24.7 7.8,24.7 C9.3,27.2 11.6,26.5 12.5,26.1 C12.6,25 13.1,24.3 13.5,23.9 C9.9,23.5 6.1,22.1 6.1,15.8 C6.1,14 6.7,12.6 7.8,11.4 C7.6,11 7.1,9.3 8,7.1 C8,7.1 9.4,6.7 12.5,8.8 C13.8,8.4 15.2,8.3 16.6,8.3 C18,8.3 19.4,8.5 20.7,8.8 C23.8,6.7 25.2,7.1 25.2,7.1 C26.1,9.3 25.5,11 25.4,11.4 C26.4,12.5 27.1,14 27.1,15.8 C27.1,22.1 23.3,23.4 19.7,23.8 C20.3,24.3 20.8,25.3 20.8,26.8 L20.8,31.3 C20.8,31.7 21.1,32.2 21.9,32.1 C28.4,29.9 33,23.8 33,16.6 C32.9,7.7 25.6,0.4 16.6,0.4 L16.6,0.4 Z"></path>
</svg>

After

Width:  |  Height:  |  Size: 919 B

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="10px" height="10px" viewBox="0 0 10 10" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 41.2 (35397) - http://www.bohemiancoding.com/sketch -->
<title>Page 1 Copy</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" opacity="0.461229011">
<g id="Desktop-Copy" transform="translate(-251.000000, -309.000000)" fill="#071B32">
<path d="M255.260269,316.616571 L254.592518,317.284675 C254.075101,317.80176 253.233025,317.80176 252.715608,317.284675 C252.19819,316.766905 252.19819,315.925161 252.715608,315.407433 L254.592518,313.530854 C255.110267,313.013105 255.951679,313.013105 256.469097,313.530854 C256.630773,313.69253 256.736069,313.887591 256.796969,314.093309 C256.846216,314.064798 256.896791,314.04147 256.938262,313.999999 L257.810446,313.128146 C257.698992,312.93827 257.5707,312.755526 257.407407,312.592565 C256.371266,311.556133 254.69039,311.556133 253.653918,312.592565 L251.777339,314.469143 C250.740887,315.505927 250.740887,317.18618 251.777339,318.222964 C252.813791,319.259084 254.494355,319.259084 255.530828,318.222964 L256.953171,316.800601 C256.384848,316.884186 255.801346,316.827163 255.260269,316.616571 M260.222897,313.530854 L258.345675,315.407412 C257.309534,316.444196 255.628659,316.444196 254.592518,315.407412 C254.429225,315.244782 254.301576,315.061375 254.189458,314.872162 L255.061663,313.999978 C255.103134,313.958154 255.15433,313.934204 255.203246,313.906004 C255.263504,314.112096 255.3688,314.307115 255.530807,314.469123 C256.048225,314.986851 256.89028,314.986208 257.407386,314.469123 L259.283965,312.592544 C259.801714,312.074774 259.801714,311.233051 259.283965,310.715613 C258.766838,310.198195 257.925135,310.198195 257.407386,310.715613 L256.739925,311.383716 C256.198558,311.172772 255.615036,311.116081 255.047065,311.199355 L256.469076,309.777323 C257.50586,308.740892 259.186092,308.740892 260.222876,309.777323 C261.259038,310.813817 261.259038,312.494402 260.222897,313.530854" id="Page-1-Copy"></path>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 21.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="new" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 800 180" style="enable-background:new 0 0 800 180;" xml:space="preserve">
<style type="text/css">
.st0{fill:#FFFFFF;}
</style>
<title>Mapbox_Logo_08</title>
<g>
<g>
<path class="st0" d="M594.6,49.8c-9.9,0-19.4,4.1-26.3,11.3V23c0-1.2-1-2.2-2.2-2.2l0,0h-13.4c-1.2,0-2.2,1-2.2,2.2v103
c0,1.2,1,2.2,2.2,2.2h13.4c1.2,0,2.2-1,2.2-2.2v0v-7.1c6.9,7.2,16.3,11.3,26.3,11.3c20.9,0,37.8-18,37.8-40.2
S615.5,49.8,594.6,49.8z M591.5,114.1c-12.7,0-23-10.6-23.1-23.8v-0.6c0.2-13.2,10.4-23.8,23.1-23.8c12.8,0,23.1,10.8,23.1,24.1
S604.2,114.1,591.5,114.1L591.5,114.1z"/>
<path class="st0" d="M681.7,49.8c-22.6,0-40.9,18-40.9,40.2s18.3,40.2,40.9,40.2c22.6,0,40.9-18,40.9-40.2S704.3,49.8,681.7,49.8z
M681.6,114.1c-12.8,0-23.1-10.8-23.1-24.1s10.4-24.1,23.1-24.1s23.1,10.8,23.1,24.1S694.3,114.1,681.6,114.1L681.6,114.1z"/>
<path class="st0" d="M431.6,51.8h-13.4c-1.2,0-2.2,1-2.2,2.2c0,0,0,0,0,0v7.1c-6.9-7.2-16.3-11.3-26.3-11.3
c-20.9,0-37.8,18-37.8,40.2s16.9,40.2,37.8,40.2c9.9,0,19.4-4.1,26.3-11.3v7.1c0,1.2,1,2.2,2.2,2.2l0,0h13.4c1.2,0,2.2-1,2.2-2.2
v0V54C433.8,52.8,432.8,51.8,431.6,51.8z M392.8,114.1c-12.8,0-23.1-10.8-23.1-24.1s10.4-24.1,23.1-24.1c12.7,0,23,10.6,23.1,23.8
v0.6C415.8,103.5,405.5,114.1,392.8,114.1L392.8,114.1z"/>
<path class="st0" d="M498.5,49.8c-9.9,0-19.4,4.1-26.3,11.3V54c0-1.2-1-2.2-2.2-2.2l0,0h-13.4c-1.2,0-2.2,1-2.2,2.2c0,0,0,0,0,0
v103c0,1.2,1,2.2,2.2,2.2l0,0h13.4c1.2,0,2.2-1,2.2-2.2v0v-38.1c6.9,7.2,16.3,11.3,26.3,11.3c20.9,0,37.8-18,37.8-40.2
S519.4,49.8,498.5,49.8z M495.4,114.1c-12.7,0-23-10.6-23.1-23.8v-0.6c0.2-13.2,10.4-23.8,23.1-23.8c12.8,0,23.1,10.8,23.1,24.1
S508.2,114.1,495.4,114.1L495.4,114.1z"/>
<path class="st0" d="M311.8,49.8c-10,0.1-19.1,5.9-23.4,15c-4.9-9.3-14.7-15.1-25.2-15c-8.2,0-15.9,4-20.7,10.6V54
c0-1.2-1-2.2-2.2-2.2l0,0h-13.4c-1.2,0-2.2,1-2.2,2.2c0,0,0,0,0,0v72c0,1.2,1,2.2,2.2,2.2h0h13.4c1.2,0,2.2-1,2.2-2.2v0V82.9
c0.5-9.6,7.2-17.3,15.4-17.3c8.5,0,15.6,7.1,15.6,16.4v44c0,1.2,1,2.2,2.2,2.2l13.5,0c1.2,0,2.2-1,2.2-2.2c0,0,0,0,0,0l-0.1-44.8
c1.2-8.8,7.5-15.6,15.2-15.6c8.5,0,15.6,7.1,15.6,16.4v44c0,1.2,1,2.2,2.2,2.2l13.5,0c1.2,0,2.2-1,2.2-2.2c0,0,0,0,0,0l-0.1-49.5
C339.9,61.7,327.3,49.8,311.8,49.8z"/>
<path class="st0" d="M794.7,125.1l-23.2-35.3l23-35c0.6-0.9,0.3-2.2-0.6-2.8c-0.3-0.2-0.7-0.3-1.1-0.3h-15.5
c-1.2,0-2.3,0.6-2.9,1.6L760.9,76l-13.5-22.6c-0.6-1-1.7-1.6-2.9-1.6h-15.5c-1.1,0-2,0.9-2,2c0,0.4,0.1,0.8,0.3,1.1l23,35
l-23.2,35.3c-0.6,0.9-0.3,2.2,0.6,2.8c0.3,0.2,0.7,0.3,1.1,0.3h15.5c1.2,0,2.3-0.6,2.9-1.6l13.8-23l13.8,23c0.6,1,1.7,1.6,2.9,1.6
H793c1.1,0,2-0.9,2-2C795,125.9,794.9,125.5,794.7,125.1z"/>
</g>
<g>
<path class="st0" d="M93.9,1.1C44.8,1.1,5,40.9,5,90s39.8,88.9,88.9,88.9s88.9-39.8,88.9-88.9C182.8,40.9,143,1.1,93.9,1.1z
M136.1,111.8c-30.4,30.4-84.7,20.7-84.7,20.7s-9.8-54.2,20.7-84.7C89,30.9,117,31.6,134.7,49.2S153,94.9,136.1,111.8L136.1,111.8
z"/>
<polygon class="st0" points="104.1,53.2 95.4,71.1 77.5,79.8 95.4,88.5 104.1,106.4 112.8,88.5 130.7,79.8 112.8,71.1 "/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="13px" height="13px" viewBox="0 0 13 13" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" opacity="0.68516791">
<g id="Desktop-Copy" transform="translate(-633.000000, -419.000000)" fill="#3887BE">
<g id="Page-1" transform="translate(633.000000, 419.000000)">
<path d="M6.49003164,12.5026484 C9.77303945,12.5107734 12.477852,9.82012891 12.5025824,6.52148047 C12.5272621,3.23964063 9.80929727,0.507914063 6.50892227,0.497351563 C3.22951992,0.486890625 0.516836328,3.18535547 0.497336328,6.47735156 C0.477836328,9.76472656 3.19280508,12.4944727 6.49003164,12.5026484 M-1.5234375e-05,6.49233203 C8.6328125e-05,2.89442969 2.92752383,-0.00116796875 6.56371523,2.52575739e-14 C10.1085004,0.0011171875 13.0018637,2.95516406 12.9999848,6.57124609 C12.9981566,10.111918 10.0405551,13.0024883 6.42218789,13 C2.91340664,12.9976133 -0.000116796875,10.045293 -1.5234375e-05,6.49233203" id="Fill-1"></path>
<path d="M6.50034531,6.75380469 C5.4769,6.75380469 4.45345469,6.75385547 3.43000938,6.75370312 C3.37084922,6.75365234 3.2953375,6.77437109 3.25577891,6.74593359 C3.16254453,6.67885156 3.08637266,6.58795312 3.00329453,6.50665234 C3.09033359,6.42057812 3.17204063,6.32769922 3.26750938,6.2521875 C3.29904453,6.22720312 3.36592344,6.24624609 3.41665391,6.24624609 C5.47197422,6.24614453 7.52734531,6.24614453 9.58261484,6.24624609 C9.63334531,6.24624609 9.70017344,6.22720312 9.73186094,6.25213672 C9.82748203,6.32744531 9.90944297,6.42012109 9.99673594,6.50604297 C9.90543125,6.58810547 9.81905234,6.67697266 9.72013047,6.74852344 C9.68656406,6.77274609 9.62136094,6.75375391 9.57063047,6.75375391 C8.54723594,6.75380469 7.52373984,6.75380469 6.50034531,6.75380469" id="Fill-4"></path>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="13px" height="13px" viewBox="0 0 13 13" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="Desktop-Copy" transform="translate(-664.000000, -384.000000)" fill="#3887BE">
<g id="Page-1-Copy-2" transform="translate(664.000000, 384.000000)">
<path d="M6.50560625,12.5026484 C9.79216875,12.4978242 12.4953055,9.79478906 12.502618,6.50583984 C12.5098797,3.21653516 9.78231719,0.489378906 6.49331719,0.497402344 C3.20421563,0.505425781 0.503719531,3.20576953 0.497321094,6.49294141 C0.490973438,9.78478516 3.21295,12.5074219 6.50560625,12.5026484 M2.03125001e-05,6.49563281 C7.10937501e-05,2.89549609 2.92552813,-0.00106640625 6.56045,2.10942375e-14 C10.1069109,0.001015625 13.0016961,2.95353906 13.0000203,6.56799609 C12.9982938,10.1104453 10.0425203,13.0021836 6.42547344,13 C2.91501641,12.9978672 -3.04687499e-05,10.0470195 2.03125001e-05,6.49563281" id="Fill-1"></path>
<path d="M6.75167695,6.75167187 L6.75167695,8.89296484 C6.75167695,9.13833984 6.74700508,9.38386719 6.75320039,9.62908984 C6.75797383,9.81850391 6.71440352,9.99253125 6.49934492,9.992125 C6.28459102,9.99161719 6.24574336,9.81753906 6.24655586,9.62817578 C6.25046602,8.68151172 6.2483332,7.73484766 6.2483332,6.75167187 L5.96527852,6.75167187 C5.14450117,6.75167187 4.32367305,6.75030078 3.5028957,6.75273828 C3.31896602,6.75329687 3.14113008,6.73039453 3.13772773,6.5040625 C3.13432539,6.27828906 3.30662617,6.2465 3.49405977,6.24700781 C4.39877852,6.24980078 5.30354805,6.24832812 6.2483332,6.24832812 L6.2483332,5.96999609 C6.2483332,5.19151953 6.25061836,4.41304297 6.24665742,3.63456641 C6.24569258,3.44982422 6.26976289,3.26711328 6.4872082,3.25975 C6.72288398,3.25172656 6.75416523,3.43834766 6.75320039,3.63456641 C6.74949336,4.4045625 6.75167695,5.17455859 6.75167695,5.94455469 L6.75167695,6.24832812 L7.06900898,6.24832812 C7.88130586,6.24832812 8.69365352,6.24980078 9.50595039,6.24716016 C9.69302852,6.24660156 9.86598945,6.27925391 9.86213008,6.50482422 C9.85821992,6.73080078 9.68002852,6.75339844 9.49609883,6.75278906 C8.68380195,6.75025 7.87150508,6.75167187 7.0592082,6.75167187 L6.75167695,6.75167187 Z" id="Fill-4"></path>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@@ -0,0 +1,42 @@
window.jazzy = {'docset': false}
if (typeof window.dash != 'undefined') {
document.documentElement.className += ' dash'
window.jazzy.docset = true
}
if (navigator.userAgent.match(/xcode/i)) {
document.documentElement.className += ' xcode'
window.jazzy.docset = true
}
// On doc load, toggle the URL hash discussion if present
$(document).ready(function() {
if (!window.jazzy.docset) {
var linkToHash = $('a[href="' + window.location.hash +'"]');
linkToHash.trigger("click");
}
});
// On token click, toggle its discussion and animate token.marginLeft
$(".token").click(function(event) {
if (window.jazzy.docset) {
return;
}
var link = $(this);
var linkIcon = link.find('.token-icon');
var animationDuration = 300;
var tokenOffset = "0px";
var original = link.css('marginLeft') == tokenOffset;
linkIcon.toggleClass('token-icon-minus');
link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration);
$content = link.parent().parent().next();
$content.slideToggle(animationDuration);
// Keeps the document from jumping to the hash.
var href = $(this).attr('href');
if (history.pushState) {
history.pushState({}, '', href);
} else {
location.hash = href;
}
event.preventDefault();
});

View File

@@ -0,0 +1,70 @@
$(function(){
var $typeahead = $('[data-typeahead]');
var $form = $typeahead.parents('form');
var searchURL = $form.attr('action');
function displayTemplate(result) {
return result.name;
}
function suggestionTemplate(result) {
var t = '<div class="list-group-item clearfix">';
t += '<span class="doc-name">' + result.name + '</span>';
if (result.parent_name) {
t += '<span class="doc-parent-name label">' + result.parent_name + '</span>';
}
t += '</div>';
return t;
}
$typeahead.one('focus', function() {
$form.addClass('loading');
$.getJSON(searchURL).then(function(searchData) {
const searchIndex = lunr(function() {
this.ref('url');
this.field('name');
this.field('abstract');
for (const [url, doc] of Object.entries(searchData)) {
this.add({url: url, name: doc.name, abstract: doc.abstract});
}
});
$typeahead.typeahead(
{
highlight: true,
minLength: 3,
autoselect: true
},
{
limit: 10,
display: displayTemplate,
templates: { suggestion: suggestionTemplate },
source: function(query, sync) {
const lcSearch = query.toLowerCase();
const results = searchIndex.query(function(q) {
q.term(lcSearch, { boost: 100 });
q.term(lcSearch, {
boost: 10,
wildcard: lunr.Query.wildcard.TRAILING
});
}).map(function(result) {
var doc = searchData[result.ref];
doc.url = result.ref;
return doc;
});
sync(results);
}
}
);
$form.removeClass('loading');
$typeahead.trigger('focus');
});
});
var baseURL = searchURL.slice(0, -"search.json".length);
$typeahead.on('typeahead:select', function(e, result) {
window.location = baseURL + result.url;
});
});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,12 @@
{{#deprecation_message}}
<div class="aside aside-deprecated">
<p class="aside-title">Deprecated</p>
{{{deprecation_message}}}
</div>
{{/deprecation_message}}
{{#unavailable_message}}
<div class="aside aside-unavailable">
<p class="aside-title">Unavailable</p>
{{{unavailable_message}}}
</div>
{{/unavailable_message}}

View File

@@ -0,0 +1,72 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{name}} {{kind}} Reference</title>
<link rel="stylesheet" type="text/css" href="{{path_to_root}}css/jazzy.css" />
<link rel="stylesheet" type="text/css" href="{{path_to_root}}css/highlight.css" />
<meta charset="utf-8">
<script src="{{path_to_root}}js/jquery.min.js" defer></script>
<script src="{{path_to_root}}js/jazzy.js" defer></script>
{{{custom_head}}}
{{^disable_search}}
<script src="{{path_to_root}}js/lunr.min.js" defer></script>
<script src="{{path_to_root}}js/typeahead.jquery.js" defer></script>
<script src="{{path_to_root}}js/jazzy.search.js" defer></script>
<meta class="swiftype" name="type" data-type="enum" content="{{module_name}} Reference" />
<meta class="swiftype" name="title" data-type="string" content="{{name}}" />
{{/disable_search}}
<style type="text/css">
.nav-group-name[data-name="{{name}}"] > .small-heading,
.nav-group-task[data-name="{{name}}"] {
background-color: #f5f8fc;
font-family: "Open Sans Bold";
border-left: 3px solid #3a68d8;
padding-left: 5px
}
</style>
</head>
<body>
{{#dash_type}}
<a name="//apple_ref/{{language_stub}}/{{dash_type}}/{{name}}" class="dashAnchor"></a>
{{/dash_type}}
<a title="{{name}} {{kind}} Reference"></a>
{{> header}}
<div class="breadcrumbs">
<div class="limiter">
<a class="breadcrumb" href="{{path_to_root}}index.html">{{module_name}} Reference</a>
<img class="carat" src="{{path_to_root}}img/carat.png" />
{{name}} {{kind}} Reference
</div>
</div>
<div class="content-wrapper limiter">
{{> nav}}
<article class="main-content">
<section class="section">
<div class="section-content">
{{^hide_name}}<a href="#/{{name}}"><h1 id="{{name}}">{{name}}<span class="anchor-icon" /></h1></a>{{/hide_name}}
{{> deprecation}}
{{#declaration}}
<div class="declaration">
<div class="language">
{{{declaration}}}
</div>
</div>
{{/declaration}}
{{{overview}}}
</div>
</section>
{{> tasks}}
</article>
</div>
{{> footer}}
</body>
</div>
</html>

View File

@@ -0,0 +1,3 @@
<section class="footer limiter">
{{{copyright}}} Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v{{jazzy_version}}</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.
</section>

View File

@@ -0,0 +1,33 @@
<header class="header-container">
<div class="limiter">
<div class="header">
<p class="header-col header-col--primary">
<a class="header-link" href="{{path_to_root}}index.html">
<img style="height: 25px;" class="header-icon" src="{{path_to_root}}img/mapbox.svg" alt="{{module_name}} Docs"/>
<span class='header-tag'>{{docs_title}} Reference ({{module_version}})</span>
</a>
{{#doc_coverage}} ({{doc_coverage}}% documented){{/doc_coverage}}
</p>
{{#github_url}}
<p class="header-col header-col--secondary">
<a class="header-link space-right2" href="{{github_url}}">
<svg style="margin-bottom: 1px;" class="header-icon" viewBox="0 0 33 33" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path stroke="none" stroke-width="1" fill="white" fill-rule="evenodd" d="M16.6,0.4 C7.6,0.4 0.3,7.7 0.3,16.7 C0.3,23.9 5,30 11.4,32.2 C12.2,32.3 12.5,31.8 12.5,31.4 L12.5,28.6 C8,29.6 7,26.4 7,26.4 C6.3,24.5 5.2,24 5.2,24 C3.7,23 5.3,23 5.3,23 C6.9,23.1 7.8,24.7 7.8,24.7 C9.3,27.2 11.6,26.5 12.5,26.1 C12.6,25 13.1,24.3 13.5,23.9 C9.9,23.5 6.1,22.1 6.1,15.8 C6.1,14 6.7,12.6 7.8,11.4 C7.6,11 7.1,9.3 8,7.1 C8,7.1 9.4,6.7 12.5,8.8 C13.8,8.4 15.2,8.3 16.6,8.3 C18,8.3 19.4,8.5 20.7,8.8 C23.8,6.7 25.2,7.1 25.2,7.1 C26.1,9.3 25.5,11 25.4,11.4 C26.4,12.5 27.1,14 27.1,15.8 C27.1,22.1 23.3,23.4 19.7,23.8 C20.3,24.3 20.8,25.3 20.8,26.8 L20.8,31.3 C20.8,31.7 21.1,32.2 21.9,32.1 C28.4,29.9 33,23.8 33,16.6 C32.9,7.7 25.6,0.4 16.6,0.4 L16.6,0.4 Z"></path>
</svg>
View on GitHub
</a>
</p>
{{/github_url}}
{{#dash_url}}
<p class="header-col header-col--secondary">
<a class="header-link bold" href="{{dash_url}}">
<img style="margin-bottom: 1px;" class="header-icon" src="{{path_to_root}}img/dash.png"/>
Install in Dash
</a>
</p>
{{/dash_url}}
</div>
</div>
</header>

View File

@@ -0,0 +1,23 @@
<nav class="navigation">
{{^disable_search}}
<div class="header-col--secondary">
<form role="search" action="{{path_to_root}}search.json">
<input type="text" placeholder="Search documentation" data-typeahead>
</form>
</div>
{{/disable_search}}
<ul class="nav-groups">
{{#structure}}
<li class="nav-group-name" data-name="{{section}}">
<a class="small-heading" href="{{path_to_root}}{{section}}.html">{{section}}<span class="anchor-icon" /></a>
<ul class="nav-group-tasks">
{{#children}}
<li class="nav-group-task" data-name="{{name}}" data-url="{{url}}">
<a title="{{name}}" class="nav-group-task-link" href="{{path_to_root}}{{url}}">{{name}}</a>
</li>
{{/children}}
</ul>
</li>
{{/structure}}
</ul>
</nav>

View File

@@ -0,0 +1,12 @@
<tr>
<td>
<code>
{{name}}
</code>
</td>
<td>
<div>
{{{discussion}}}
</div>
</td>
</tr>

View File

@@ -0,0 +1,94 @@
<div class="task-group">
{{#name}}
<div class="task-name-container">
<a name="/{{uid}}"></a>
<a name="//apple_ref/{{language_stub}}/Section/{{name}}" class="dashAnchor"></a>
<a href="#/{{uid}}">
<h3 id="{{uid}}" class="section-name">{{name}}<span class="anchor-icon" /></h3>
</a>
</div>
{{/name}}
<ul class="item-container">
{{#items}}
<li class="item">
<div>
<code>
<a name="/{{usr}}"></a>
<a name="//apple_ref/{{language_stub}}/{{dash_type}}/{{name}}" class="dashAnchor"></a>
<a class="token{{#usage_discouraged}} discouraged{{/usage_discouraged}}" href="#/{{usr}}"><span class="token-name">{{name}}</span><span class="token-icon" /></a>
</code>
{{#default_impl_abstract}}
<span class="declaration-note">
Default implementation
</span>
{{/default_impl_abstract}}
{{#from_protocol_extension}}
<span class="declaration-note">
Extension method
</span>
{{/from_protocol_extension}}
</div>
<div class="height-container">
<section class="section">
{{> deprecation}}
{{#abstract}}
<div class="abstract">
{{{abstract}}}
{{#url}}
<a href="{{{path_to_root}}}{{{url}}}" class="slightly-smaller">See more</a>
{{/url}}
</div>
{{/abstract}}
{{#default_impl_abstract}}
<h4>Default Implementation</h4>
<div class="default_impl abstract">
{{{default_impl_abstract}}}
</div>
{{/default_impl_abstract}}
{{#declaration}}
<div class="declaration">
<h4>Declaration</h4>
<div class="language keyline-blue">
<p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">{{language}}</p>
{{{declaration}}}
</div>
{{#other_language_declaration}}
<div class="language keyline-purple">
<p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p>
{{{other_language_declaration}}}
</div>
{{/other_language_declaration}}
</div>
{{/declaration}}
{{#parameters.count}}
<div>
<h4>Parameters</h4>
<table class="graybox">
<tbody>
{{#parameters}}
{{> parameter}}
{{/parameters}}
</tbody>
</table>
</div>
{{/parameters.count}}
{{#return}}
<div>
<h4>Return Value</h4>
{{{return}}}
</div>
{{/return}}
{{#github_token_url}}
<div class="show-on-github">
<a href="{{{github_token_url}}}">
<img style="margin-bottom: 1px;" class="show-on-github-icon" src="{{{path_to_root}}}img/github.svg"/>
View Source on GitHub
</a>
</div>
{{/github_token_url}}
</section>
</div>
</li>
{{/items}}
</ul>
</div>

View File

@@ -0,0 +1,9 @@
{{#tasks.count}}
<section class="section">
<div class="section-content">
{{#tasks}}
{{> task}}
{{/tasks}}
</div>
</section>
{{/tasks.count}}