-
Notifications
You must be signed in to change notification settings - Fork 59
/
search.html
304 lines (269 loc) · 11.7 KB
/
search.html
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
<!DOCTYPE html>
<html lang="en" itemscope itemtype="https://schema.org/WebPage">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Site Search - Bazel</title>
<script>
var current_url = window.location.href;
// Do a shortcut so that be.bazel.build redirect to the build encyclopedia
var be_url = new RegExp("^https?://be(\.bazel.build)?/?");
if (be_url.test(current_url)) {
window.location.replace(current_url.replace(be_url, "https://docs.bazel.build/be/overview.html"));
}
var be_url = new RegExp("^https?://be(\.bazel.build)?/([a-zA-Z0-9_-]+)([/#](.*))?");
if (be_url.test(current_url)) {
window.location.replace(current_url.replace(be_url, "https://docs.bazel.build/be/$2.html#$4"));
}
// And a short to code reviews
var cr_url = new RegExp("^https?://cr(\.bazel.build)?/([0-9]+)")
if (cr_url.test(current_url)) {
window.location.replace(current_url.replace(cr_url, "https://bazel-review.googlesource.com/c/$2"));
}
// Code review dashboard
var cr_url = new RegExp("^https?://cr(\.bazel.build)?/?")
if (cr_url.test(current_url)) {
window.location.replace(current_url.replace(cr_url, "https://bazel-review.googlesource.com/"));
}
</script>
<link rel="canonical" href="/search.html">
<!-- Webfont -->
<link href="//fonts.googleapis.com/css?family=Source+Code+Pro:400,500,700|Open+Sans:400,600,700,800" rel="stylesheet">
<link rel="icon" type="image/png" href="/images/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="/images/favicon-16x16.png" sizes="16x16">
<!-- Bootstrap -->
<link href="/assets/css/bootstrap.min.css" rel="stylesheet">
<link href="/assets/css/font-awesome.min.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- Custom stylesheet -->
<link rel="stylesheet" type="text/css" href="/css/main.css">
<!--
Metadata tags.
The metadata tag's name attribute is specified in the HTML5 spec for
specifying metadata, and the property attribute comes from RDFa, which
itself extends HTML5. It's valid to use both name and property in the
same metadata element.
og:<tag> is part of the Open Graph protocol by Facebook, but is also used
by other social media sites like LinkedIn.
-->
<meta name="og:title" property="og:title" content="Site Search - Bazel">
<meta name="og:image" property="og:image" content="https://bazel.build/images/bazel-og-image.png">
<meta name="og:type" property="og:type" content="website">
<meta name="og:url" property="og:url" content="/search.html">
<!-- Twitter has its own custom cards meta tags. -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="/search.html">
<meta property="twitter:title" content="Site Search - Bazel">
<meta property="twitter:image" content="https://bazel.build/images/bazel-og-image.png">
</head>
<body>
<nav id="common-nav" class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">
<img class="navbar-logo" src="/images/bazel-navbar.svg">
</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/bazelbuild/bazel">
<span class="hidden-sm">GitHub</span>
<span class="nav-icon visible-sm"><i class="fa fa-github"></i></span>
</a>
</li>
</ul>
<form class="navbar-form navbar-right" action="/search.html" id="cse-search-box">
<div class="form-group">
<input type="hidden" name="cx" value="009927877080525621790:2pxlpaexqpc">
<input type="hidden" name="cof" value="FORID:10">
<input type="hidden" name="ie" value="UTF-8">
<input type="search" name="q" id="q" class="form-control input-sm" placeholder="Search">
</div>
</form>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://docs.bazel.build/bazel-overview.html">Getting Started</a>
</li>
<li>
<a href="https://docs.bazel.build/guide.html">Using Bazel</a>
</li>
<li>
<a href="https://docs.bazel.build/skylark/concepts.html">Extending Bazel</a>
</li>
<li>
<a href="/contributing.html">Contributing</a>
</li>
<li>
<a href="https://blog.bazel.build">
<span class="hidden-sm">Blog</span>
<span class="nav-icon visible-sm"><i class="fa fa-rss"></i></span>
</a>
</li>
<li>
<a href="https://twitter.com/bazelbuild">
<span class="visible-xs">Twitter</span>
<span><i class="nav-icon fa fa-twitter hidden-xs"></i></span>
</a>
</li>
<li>
<a href="http://stackoverflow.com/questions/tagged/bazel">
<span class="visible-xs">StackOverflow</span>
<span><i class="nav-icon fa fa-stack-overflow hidden-xs"></i></span>
</a>
</li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<div class="page-title-bar">
<div class="container">
<h1>Site Search</h1>
</div>
</div>
<div class="container">
<script>
(function() {
var cx = '009927877080525621790:2pxlpaexqpc';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
// Keep the search term in the search area.
var urlParams = new URLSearchParams(window.location.search);
document.getElementById('q').value = urlParams.get('q');
</script>
<gcse:searchresults-only></gcse:searchresults-only>
</div>
<footer class="footer">
<div class="container">
<div class="row">
<div class="col-sm-4 col-md-2">
<p>About</p>
<ul class="list-unstyled">
<li><a href="/users.html">Who's using Bazel</a></li>
<li><a href="/roadmap.html">Roadmap</a></li>
<li><a href="/contributing.html">Contribute</a></li>
<li><a href="/governance.html">Governance Plan</a></li>
<li><a href="https://policies.google.com/privacy">Privacy Policy</a></li>
</ul>
</div>
<div class="col-sm-4 col-md-2">
<p>Support</p>
<ul class="list-unstyled">
<li><a href="https://docs.bazel.build/guide.html">Documentation</a></li>
<li><a href="/faq.html">FAQ</a></li>
<li><a href="https://github.com/bazelbuild/bazel/issues">Issue Tracker</a></li>
<li><a href="/experts.html">Community Experts</a></li>
<li><a href="http://stackoverflow.com/questions/tagged/bazel">Stack Overflow</a></li>
<li><a href="/support.html">Support Policy</a></li>
</ul>
</div>
<div class="col-sm-4 col-md-2">
<p>Stay Connected</p>
<ul class="list-unstyled">
<li><a href="https://twitter.com/bazelbuild">Twitter</a></li>
<li><a href="https://blog.bazel.build">Blog</a></li>
<li><a href="https://github.com/bazelbuild/bazel">GitHub</a></li>
<li><a href="https://groups.google.com/forum/#!forum/bazel-discuss">Discussion group</a></li>
<li><a href="https://slack.bazel.build">Slack</a></li>
</ul>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<p class="text-muted">© 2022 Google</p>
</div>
</div>
</div>
</footer>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="/assets/js/bootstrap.min.js"></script>
<!-- Anchor JS -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/3.2.0/anchor.min.js"></script>
<script>
// Automatically add anchors and links to all header elements that don't already have them.
anchors.add();
</script>
<script>
var shiftWindow = function() {
if (location.hash.length !== 0) {
window.scrollBy(0, -50);
}
};
window.addEventListener("hashchange", shiftWindow);
var highlightCurrentSidebarNav = function() {
var href = location.pathname;
var item = $('#sidebar-nav [href$="' + href + '"]');
if (item) {
var li = item.parent();
li.addClass("active");
if (li.parent() && li.parent().is("ul")) {
do {
var ul = li.parent();
if (ul.hasClass("collapse")) {
ul.collapse("show");
}
li = ul.parent();
} while (li && li.is("li"));
}
}
};
$(document).ready(function() {
// Scroll to anchor of location hash, adjusted for fixed navbar.
window.setTimeout(function() {
shiftWindow();
}, 1);
// Flip the caret when submenu toggles are clicked.
$(".sidebar-submenu").on("show.bs.collapse", function() {
var toggle = $('[href$="#' + $(this).attr('id') + '"]');
if (toggle) {
toggle.addClass("dropup");
}
});
$(".sidebar-submenu").on("hide.bs.collapse", function() {
var toggle = $('[href$="#' + $(this).attr('id') + '"]');
if (toggle) {
toggle.removeClass("dropup");
}
});
// Highlight the current page on the sidebar nav.
highlightCurrentSidebarNav();
});
</script>
<!-- Google Analytics tracking code -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-61082125-1', 'auto');
ga('send', 'pageview');
</script>
<!-- Anchor JS -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/3.2.0/anchor.min.js"></script>
<script>
// Automatically add anchors and links to all header elements that don't already have them.
anchors.add();
</script>
</body>
</html>