MkDocs configuration and content for info/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

107 lines
4.9 KiB

  1. <div class="navbar navbar-default navbar-fixed-top" role="navigation">
  2. <div class="container">
  3. <!-- Collapsed navigation -->
  4. <div class="navbar-header">
  5. {%- if nav|length>1 or (page and (page.next_page or page.previous_page)) or config.repo_url %}
  6. <!-- Expander button -->
  7. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
  8. <span class="sr-only">Toggle navigation</span>
  9. <span class="icon-bar"></span>
  10. <span class="icon-bar"></span>
  11. <span class="icon-bar"></span>
  12. </button>
  13. {% endif %}
  14. <!-- Main title -->
  15. <a class="navbar-brand" href="{{ nav.homepage.url|url }}">{{ config.site_name }}</a>
  16. </div>
  17. <!-- Expanded navigation -->
  18. <div class="navbar-collapse collapse">
  19. {%- block site_nav %}
  20. {%- if nav|length>1 %}
  21. <!-- Main navigation -->
  22. <ul class="nav navbar-nav">
  23. {% for nav_item in nav %}
  24. {% if nav_item.children %}
  25. <li class="dropdown{% if nav_item.active %} active{% endif %}">
  26. <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ nav_item.title }} <b class="caret"></b></a>
  27. <ul class="dropdown-menu">
  28. {% for nav_item in nav_item.children %}
  29. {% include "nav-sub.html" %}
  30. {% endfor %}
  31. </ul>
  32. </li>
  33. {% else %}
  34. <li {% if nav_item.active %}class="active"{% endif %}>
  35. <a href="{{ nav_item.url|url }}">{{ nav_item.title }}</a>
  36. </li>
  37. {% endif %}
  38. {% endfor %}
  39. </ul>
  40. {%- endif %}
  41. {%- endblock %}
  42. <ul class="nav navbar-nav navbar-right">
  43. {%- block search_button %}
  44. {%- if 'search' in config['plugins'] %}
  45. <li>
  46. <a href="#" data-toggle="modal" data-target="#mkdocs_search_modal">
  47. <i class="fas fa-search"></i> Search
  48. </a>
  49. </li>
  50. {%- endif %}
  51. {%- endblock %}
  52. {%- block next_prev %}
  53. {%- if page and (page.next_page or page.previous_page) %}
  54. <li {% if not page.previous_page %}class="disabled"{% endif %}>
  55. <a rel="prev" {% if page.previous_page %}href="{{ page.previous_page.url|url }}"{% endif %}>
  56. <i class="fas fa-arrow-left"></i> Previous
  57. </a>
  58. </li>
  59. <li {% if not page.next_page %}class="disabled"{% endif %}>
  60. <a rel="next" {% if page.next_page %}href="{{ page.next_page.url|url }}"{% endif %}>
  61. Next <i class="fas fa-arrow-right"></i>
  62. </a>
  63. </li>
  64. {%- endif %}
  65. {%- endblock %}
  66. {%- block repo %}
  67. {%- if page and page.edit_url %}
  68. <li>
  69. <a href="{{ page.edit_url }}">
  70. {%- if config.repo_name == 'GitHub' -%}
  71. <i class="fab fa-github"></i> Edit on {{ config.repo_name }}
  72. {%- elif config.repo_name == 'Bitbucket' -%}
  73. <i class="fab fa-bitbucket"></i> Edit on {{ config.repo_name }}
  74. {%- elif config.repo_name == 'GitLab' -%}
  75. <i class="fab fa-gitlab"></i> Edit on {{ config.repo_name }}
  76. {%- else -%}
  77. Edit on {{ config.repo_name }}
  78. {%- endif -%}
  79. </a>
  80. </li>
  81. {%- elif config.repo_url %}
  82. <li>
  83. <a href="{{ config.repo_url }}">
  84. {%- if config.repo_name == 'GitHub' -%}
  85. <i class="fab fa-github"></i> {{ config.repo_name }}
  86. {%- elif config.repo_name == 'Bitbucket' -%}
  87. <i class="fab fa-bitbucket"></i> {{ config.repo_name }}
  88. {%- elif config.repo_name == 'GitLab' -%}
  89. <i class="fab fa-gitlab"></i> {{ config.repo_name }}
  90. {%- else -%}
  91. {{ config.repo_name }}
  92. {%- endif -%}
  93. </a>
  94. </li>
  95. {%- endif %}
  96. {%- endblock %}
  97. </ul>
  98. </div>
  99. </div>
  100. </div>