File tree Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
git_link_template = ' https://github.com/pdoc3/pdoc/blob/{commit} /{path} #L{start_line} -L{end_line} '
4
4
5
+ search_query = '''
6
+ site:pdoc3.github.io
7
+ inurl:github.com/pdoc3
8
+ '''
9
+
5
10
%>
Original file line number Diff line number Diff line change 42
42
# tracking id (UA-XXXXXX-Y).
43
43
google_analytics = ' '
44
44
45
+ # If set, insert Google Custom Search search bar widget above the sidebar index.
46
+ # The whitespace-separated tokens represent arbitrary extra queries (at least one
47
+ # must match) passed to regular Google search. Example:
48
+ # search_query = 'inurl:github.com/USER/PROJECT site:PROJECT.github.io site:PROJECT.website'
49
+ search_query = ' '
50
+
45
51
# If set, render LaTeX math syntax within \(...\) (inline equations),
46
52
# or within \[...\] or $$...$$ or `.. math::` (block equations)
47
53
# as nicely-formatted math formulas using MathJax.
Original file line number Diff line number Diff line change 285
285
286
286
<%include file =" logo.mako" />
287
287
288
+ % if search_query:
289
+ <div class =" gcse-search" style =" height : 70px "
290
+ data-as_oq =" ${' '.join(search_query.strip().split()) | h }"
291
+ data-gaCategoryParameter =" ${module.refname | h}" >
292
+ </div >
293
+ % endif
294
+
288
295
<h1 >Index</h1 >
289
296
${ extract_toc(module.docstring) if extract_module_toc_into_sidebar else ' ' }
290
297
<ul id =" index" >
384
391
</script ><script async src =' https://www.google-analytics.com/analytics.js' ></script >
385
392
% endif
386
393
394
+ % if search_query:
395
+ <script async src =" https://cse.google.com/cse.js?cx=017837193012385208679:pey8ky8gdqw" ></script >
396
+ <style >.gsc-control-cse {padding :0 !important ;margin-top :1em } </style >
397
+ % endif
398
+
387
399
% if latex_math:
388
400
<script async src =' https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS_CHTML' ></script >
389
401
% endif
You can’t perform that action at this time.
0 commit comments