-
Notifications
You must be signed in to change notification settings - Fork 479
Expand file tree
/
Copy pathdefault.html
More file actions
executable file
·156 lines (150 loc) · 6.46 KB
/
default.html
File metadata and controls
executable file
·156 lines (150 loc) · 6.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!DOCTYPE html>
<html lang="en">
<head>
{% include head.html %}
</head>
<body>
{% include main-menu-serverless.html %}
{% for hash in page.allowed_hashes %}
<a id="{{ hash }}" style="display: none"></a>
{% endfor %}
<div class="container-fluid">
<div class="row" id="maincontent">
<div class="nav-docs-mobile d-flex d-lg-none w-100 justify-content-between align-items-center px-4 py-2 border-top border-bottom" data-toggle="collapse" data-target="#sidebarMenu" aria-expanded="false" aria-controls="sidebarMenu" data-nosnippet>
<div class="h3 m-0">
Docs Menu
</div>
<div class="sidenav-arrow mr-4">
<div class="arrow-down">
</div>
</div>
</div>
<nav id="sidebarMenu" class="col-lg-2 d-lg-block sidebar collapse border-right pt-3 pr-md-0">
{%- assign sidebar_class = "" -%}
{%- if page.name == 'index.md' -%}
{%- assign sidebar_class = "nav--home " -%}
{%- elsif page.url == '/search.html' -%}
{%- assign sidebar_class = "nav--search " -%}
{%- endif -%}
{% include_cached sidebar.html sidebar_class=sidebar_class %}
<!-- Mobile-only action buttons: Ask AI & Rate This Page -->
<div class="sidebar-mobile-actions d-lg-none border-top mt-2 pt-2 px-3 pb-3">
<button type="button" class="btn btn-sm btn-outline-secondary w-100" id="sidebar-rate-page-btn">
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="none" viewBox="0 0 16 16" class="mr-1" style="vertical-align: -2px;">
<path fill="currentColor" d="M7.538 1.11a.5.5 0 0 1 .924 0l1.537 3.696a.5.5 0 0 0 .421.306l3.99.32a.5.5 0 0 1 .285.878l-3.04 2.604a.5.5 0 0 0-.16.496l.928 3.893a.5.5 0 0 1-.747.542L8.261 11.76a.5.5 0 0 0-.522 0l-3.415 2.086a.5.5 0 0 1-.747-.542l.928-3.893a.5.5 0 0 0-.16-.496L1.304 6.31a.5.5 0 0 1 .285-.878l3.99-.32A.5.5 0 0 0 6 4.806L7.538 1.11Z"></path>
</svg> Rate This Page
</button>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
document.getElementById('sidebar-rate-page-btn').addEventListener('click', function(e) {
e.preventDefault();
e.stopPropagation();
var sidebar = document.getElementById('sidebarMenu');
if (sidebar && sidebar.classList.contains('show')) {
$(sidebar).collapse('hide');
}
setTimeout(function() {
var ov = document.getElementById('feedback-overlay');
if (ov) {
ov.style.display = 'block';
ov.style.position = 'fixed';
ov.style.bottom = '0';
ov.style.left = '0';
ov.style.right = '0';
ov.style.width = '100%';
ov.style.maxWidth = '100%';
ov.style.zIndex = '10000';
}
}, 400);
});
});
</script>
</nav>
{% if page.toc == true %}
{% if page.homepage != true %}
<!-- Smaller column col-xl-8 -->
<main role="main" class="col col-lg-8 ml-sm-auto px-lg-5">
{% endif %}
{% else %}
<!-- larger column col-xl-10 -->
<main role="main" class="ml-sm-auto col-lg-10 px-lg-5">
{% endif %}
{{content}}
</main>
{% if page.toc == true %}
<div class="toc-col col-md-2">
<div class="toc-col-contents"> <!-- lets all elements scroll -->
<div class="d-none d-lg-block pb-4">
{% include contribute-options.html %}
</div>
<div class="toc-right-title">On this page</div>
<div id="toc-right">
</div>
<!-- {% comment %} Hide feedback widget under toc. {% endcomment %} -->
<!-- {% if page.feedback != false %}
{% include feedback-widget-toc.html %}
{% endif %} {% comment %} Show feedback widget under toc. {% endcomment %} -->
<div class="cf-5329-area-16738">
</div>
</div>
</div>
{% endif %}
</div>
</div>
{% include_cached footer.html %}
{% include_cached sidebar.js.html sidebar_data=page.sidebar_data %}
<script src="https://go.cockroachlabs.com/js/forms2/js/forms2.min.js" defer></script>
<script src="{{ 'js/jquery.cookie.min.js' | relative_url }}" defer></script>
<script src="{{ 'js/jquery.navgoco.min.js' | relative_url }}" defer></script>
<!-- bs 4.X -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous" defer></script>
<script src="{{ 'js/toc.js' | relative_url }}" defer></script>
<script src="{{ 'js/cookieUtils.js' | relative_url }}" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" defer></script>
<script src="{{ 'js/customscripts.js' | relative_url }}" defer></script>
<script src="{{ 'js/setDocsContext.js' | relative_url }}" defer></script>
<script src="{{ 'js/anchor.js' | relative_url }}" defer></script>
{% if page.homepage != true %}
<script>
whenAvailable('anchors', function() {
anchors.add('h2, h3, h4, h5');
anchors.add('.anchored');
});
</script>
{% endif %}
<script src="{{ 'js/tocRightScrollHighlight.js' | relative_url }}" defer></script>
{% include_cached google_tag_manager.html %}
{% include_cached google_remarketing.html %}
{% if page.twitter == true %}
{% include_cached twitter_analytics.html %}
{% endif %}
<script>
// Ensure Kapa script is loaded before attaching event listeners
window.onload = function() {
console.log("Kapa Loaded");
// Adding an event listener for modal open
Kapa("onModalOpen", function({ mode }) {
analytics.track('Kapa Modal Opened', {
mode: mode
});
});
// Adding an event listener for modal close
Kapa("onModalClose", function({ mode }) {
analytics.track('Kapa Modal Closed', {
mode: mode
});
});
// Adding an event listener for Ask AI query submission
Kapa("onAskAIQuerySubmit", function({ threadId, questionAnswerId, question }) {
analytics.track('Kapa AI Query Submitted', {
threadId: threadId,
questionAnswerId: questionAnswerId,
question: question
});
});
};
</script>
{% include feedback-widget.html %}
</body>
</html>