Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

comments.html 1.7 KB

You have to be logged in to leave a comment. Sign In
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
  1. {% if page.meta.comments %}
  2. <h2 id="__comments">{{ lang.t("meta.comments") }}</h2>
  3. <!-- Insert Giscus code snippet from https://giscus.app/ here -->
  4. <script async
  5. crossorigin="anonymous"
  6. data-category="Docs"
  7. data-category-id="DIC_kwDOH-jzvc4CWLkL"
  8. data-emit-metadata="0"
  9. data-input-position="top"
  10. data-lang="en"
  11. data-loading="lazy"
  12. data-mapping="pathname"
  13. data-reactions-enabled="1"
  14. data-repo="ultralytics/ultralytics"
  15. data-repo-id="R_kgDOH-jzvQ"
  16. data-strict="1"
  17. data-theme="preferred_color_scheme"
  18. src="https://giscus.app/client.js">
  19. </script>
  20. <!-- Synchronize Giscus theme with palette -->
  21. <script>
  22. var giscus = document.querySelector("script[src*=giscus]")
  23. /* Set palette on initial load */
  24. var palette = __md_get("__palette")
  25. if (palette && typeof palette.color === "object") {
  26. var theme = palette.color.scheme === "slate" ? "dark" : "light"
  27. giscus.setAttribute("data-theme", theme)
  28. }
  29. /* Register event handlers after documented loaded */
  30. document.addEventListener("DOMContentLoaded", function() {
  31. var ref = document.querySelector("[data-md-component=palette]")
  32. ref.addEventListener("change", function() {
  33. var palette = __md_get("__palette")
  34. if (palette && typeof palette.color === "object") {
  35. var theme = palette.color.scheme === "slate" ? "dark" : "light"
  36. /* Instruct Giscus to change theme */
  37. var frame = document.querySelector(".giscus-frame")
  38. frame.contentWindow.postMessage(
  39. { giscus: { setConfig: { theme } } },
  40. "https://giscus.app"
  41. )
  42. }
  43. })
  44. })
  45. </script>
  46. {% endif %}
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...