Skip to content

Commit

Permalink
Add OpenTelemetry-Web to site (#205)
Browse files Browse the repository at this point in the history
* update registry

* fix search elements not taking full width

* update colors/tagging

* add collector note

* initial work

* add sourcemap

* add opentelemetry tracing

* change url for collector
  • Loading branch information
austinlparker authored Jun 18, 2020
1 parent 479cf6f commit 8072e04
Show file tree
Hide file tree
Showing 15 changed files with 18,274 additions and 18 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ data/progress_generated.yaml
# Link checker
bin/
tmp/

scripts/collector.yaml
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ clean:

setup:
npm install
npm run-script build

serve: setup
hugo server \
--buildDrafts \
--buildFuture
hugo server -p 30000 --buildDrafts --buildFuture && npm start

preview-build: get-milestones
hugo \
Expand Down
13,508 changes: 13,508 additions & 0 deletions assets/js/app.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/js/app.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/js/search.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions assets/js/search.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
{{ partial "meta.html" . }}
{{ partial "css.html" . }}
{{ partial "javascript.html" . }}
<title>
{{ block "title" . }}{{ site.Title }} | {{ site.Params.tagline }}{{ end }}
</title>
Expand All @@ -16,6 +17,5 @@
</main>

{{ partial "footer.html" . }}
{{ partial "javascript.html" . }}
</body>
</html>
3 changes: 2 additions & 1 deletion layouts/registry/list.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{{ define "main" }}
{{ $registryItems := where .Data.Pages "Params.layout" "!=" "search" }}
{{ $search := resources.Get "js/search.js" | fingerprint }}
<div class="container">
<section class="section">
<div class="columns">
Expand Down Expand Up @@ -121,6 +122,6 @@ <h1 class="title">OpenTelemetry Registry</h1>
</script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/3.2.0/fuse.min.js"></script>
<script src="{{ "/js/search.js" | absURL }}"></script>
<script src="{{ $search.RelPermalink }}" integrity="{{ $search.Data.Integrity }}" type="application/javascript"></script>
</div>
{{ end }}
3 changes: 2 additions & 1 deletion layouts/registry/search.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{ define "main" }}
{{ $search := resources.Get "js/search.js" | fingerprint }}
<div class="registry__search container">
<div class="row">
<div class="col">
Expand Down Expand Up @@ -28,5 +29,5 @@ <h4><a href="${link}">${title}</a></h4>
</script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/3.2.0/fuse.min.js"></script>
<script src="{{ "/js/search.js" | absURL }}"></script>
<script src="{{ $search.RelPermalink }}" integrity="{{ $search.Data.Integrity }}" type="application/javascript"></script>
{{ end }}
Loading

0 comments on commit 8072e04

Please sign in to comment.