Skip to content

Commit

Permalink
No partial (#6195)
Browse files Browse the repository at this point in the history
* No partial

* Add code comments
  • Loading branch information
weitzman authored Jan 6, 2025
1 parent ac3240b commit 870f0ae
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 46 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Build docs site

on:
push:
branches: [ 11.x, 12.x, 13.x, actions ]
# zActions is used to build and preview mkdocs changes.
branches: [ 11.x, 12.x, 13.x, zActions ]
tags: ["11.*", "12.*", "13.*"]

jobs:
Expand Down
45 changes: 0 additions & 45 deletions docs/overrides/partials/tabs.html

This file was deleted.

30 changes: 30 additions & 0 deletions docs/overrides/partials/tabsBAK.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!--
**
MW: Renamed because the Nav is only showing the API link. For now, no API link is added.
Also I updated this partial without testing 1/2025.
**
-->

{% import "partials/tabs-item.html" as item with context %}

<!-- Navigation tabs -->
<nav
class="md-tabs"
aria-label="{{ lang.t('tabs') }}"
data-md-component="tabs"
>
<div class="md-grid">
<ul class="md-tabs__list">
{% for nav_item in nav %}
{{ item.render(nav_item) }}
{% endfor %}

<!-- MW: Add link built outside of mkdocs -->
<!-- This can now be done in 'nav' without an override but I'd have to hard code the domain https://github.com/squidfunk/mkdocs-material/issues/2072 and https://github.com/squidfunk/mkdocs-material/issues/1884 -->
<li class="md-tabs__item">
<a href="/api" class="md-tabs__link">API</a>
</li>
<!-- End Add -->
</ul>
</div>
</nav>

0 comments on commit 870f0ae

Please sign in to comment.