diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 77d4886fb..305cb6102 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -56,10 +56,13 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Add directory to safe dir overrides + run: | + git config --global --add safe.directory "$PWD" + - name: Build ${{ matrix.device }} run: | - make DEVFAMILY=${{ matrix.device }} OS=${{ matrix.os }} \ - VERSION=${{ github.ref_name }} + make DEVFAMILY=${{ matrix.device }} OS=${{ matrix.os }} - name: Upload artifact uses: actions/upload-artifact@v4 diff --git a/_static/css/theme_overrides.css b/_static/css/theme_overrides.css index 9faea9bfe..7dd492924 100644 --- a/_static/css/theme_overrides.css +++ b/_static/css/theme_overrides.css @@ -19,3 +19,11 @@ .wy-nav-content { max-width: 100% !important; } + +/* Version compatibility override */ +.wy-side-nav-search>div.version { + margin-top: -.4045em; + margin-bottom: .809em; + font-weight: 400; + color: hsla(0, 0%, 100%, .3); +} diff --git a/_templates/layout.html b/_templates/layout.html index 9b18a057f..32ba3283b 100644 --- a/_templates/layout.html +++ b/_templates/layout.html @@ -3,3 +3,22 @@ {{ super() }} {% endblock %} +{%- block sidebartitle %} + {# the logo helper function was removed in Sphinx 6 and deprecated since Sphinx 4 #} + {# the master_doc variable was renamed to root_doc in Sphinx 4 (master_doc still exists in later Sphinx versions) #} + {%- set _logo_url = logo_url|default(pathto('_static/' + (logo or ""), 1)) %} + {%- set _root_doc = root_doc|default(master_doc) %} + + {% if not theme_logo_only %}{{ project }}{% endif %} + {%- if logo or logo_url %} + + {%- endif %} + + {%- set nav_version = version %} + {%- if nav_version %} +
+ {{ nav_version }} +
+ {%- endif %} + {%- include "searchbox.html" %} +{% endblock %}