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

toc.html 1.8 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. <nav id="side-toc-secondary" class="md-nav md-nav--secondary" aria-label="{{ lang.t("toc.title") }}">
  2. {% set toc = page.toc %}
  3. <!--
  4. Hack: check whether the content contains a h1 headline. If it does, the
  5. top-level anchor must be skipped, since it would be redundant to the link
  6. to the current page that is located just above the anchor. Therefore we
  7. directly continue with the children of the anchor.
  8. -->
  9. {% if toc | first is defined and "\x3ch1 id=" in page.content %}
  10. {% set toc = (toc | first).children %}
  11. {% endif %}
  12. <!-- Render item list -->
  13. {% if toc | first is defined %}
  14. <label class="md-nav__title" for="__toc">
  15. <span class="md-nav__icon md-icon">
  16. {% include ".icons/material/arrow-left.svg" %}
  17. </span>
  18. {{ lang.t("toc.title") }}
  19. </label>
  20. <ul class="md-nav__list" data-md-scrollfix>
  21. {% for toc_item in toc %}
  22. {% include "partials/toc-item.html" %}
  23. {% endfor %}
  24. </ul>
  25. {% endif %}
  26. </nav>
  27. <div id="bug-toc" class="md-button secondary-nav__button">
  28. <p>Found a problem? <br/>Let us know (or fix it):</p>
  29. <script>
  30. $(document).ready(function() {
  31. const page = `{{ page.url }}`.replace(/.$/,".md");
  32. const url = "https://dagshub.com/DAGsHub-Official/dagshub-docs/src/main/docs/" + page;
  33. let button = document.querySelector('#page_link');
  34. if (button) {
  35. button.setAttribute('href', url);
  36. }
  37. });
  38. </script>
  39. <a id="page_link" href="" target="_blank">
  40. <i class="fas fa-wrench fa-lg"></i><span>Edit this Page</span>
  41. </a>
  42. </div>
  43. <div id="discord-toc" class="md-button secondary-nav__button">
  44. <p>Have a question? <br/>Join our community now:</p>
  45. <a href="https://discord.com/invite/9gU36Y6" target="_blank">
  46. <i class="fab fa-discord fa-lg"></i><span>Discord Chat</span>
  47. </a>
  48. </div>
Tip!

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

Comments

Loading...