From 6b973b25567fa1a1b8d03e7d7d9fcf56be56ffad Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Mon, 2 Sep 2024 20:11:39 -0400 Subject: [PATCH] Point docs to Astral favicon (#13219) ## Summary Same as https://github.com/astral-sh/uv/pull/6951. Unfortunately we have to use a single favicon for the docs. --- .github/workflows/publish-docs.yml | 9 +++++---- docs/.overrides/main.html | 20 ++++++++++++++++++++ docs/assets/favicon.ico | Bin 0 -> 7406 bytes mkdocs.template.yml | 2 +- 4 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 docs/.overrides/main.html create mode 100644 docs/assets/favicon.ico diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index d7c5f19b4bf9f..fe2dd5edcbbdd 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -34,10 +34,10 @@ jobs: - name: "Set docs version" run: | version="${{ (inputs.plan != '' && fromJson(inputs.plan).announcement_tag) || inputs.ref }}" - # if version is missing, exit with error - if [[ -z "$version" ]]; then - echo "Can't build docs without a version." - exit 1 + # if version is missing, use 'latest' + if [ -z "$version" ]; then + echo "Using 'latest' as version" + version="latest" fi # Use version as display name for now @@ -145,6 +145,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.ASTRAL_DOCS_PAT }} run: | branch_name="${{ env.branch_name }}" + # auto-merge the PR if the build was triggered by a release. Manual builds should be reviewed by a human. # give the PR a few seconds to be created before trying to auto-merge it sleep 10 diff --git a/docs/.overrides/main.html b/docs/.overrides/main.html new file mode 100644 index 0000000000000..1589605500224 --- /dev/null +++ b/docs/.overrides/main.html @@ -0,0 +1,20 @@ +{% extends "base.html" %} + +{% block extrahead %} + + + + + + + + + +{% endblock %} diff --git a/docs/assets/favicon.ico b/docs/assets/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..2da75b736984e79d696db58c1fad3fe9edf83665 GIT binary patch literal 7406 zcmeHMOKVd>6#nvPo=tC_ZLA0Z7wSeMLbWZXO=50h%(Jy=6KiX%B`$n`7AZ&tQA-6C z@v#wfAuhyCK@is>A}+gf=f;Kj3tZ}*oBNoXN0UW0Db5EobIzPIGv|J}3Fk}z9SjHt zA&eHh?gNGZ1Ok$70lo=yPG?m=-vg`;0DA==VF}I%jjR)4tqx+ZtIDBW2a&8)F!5*& z`3HB9Ub=$tfe@x%Jw(;VLpWuOof!Dk6ttIQRQ2`1BOc{@Orv zB#zwe6&&^N$Lz*C@RLQ1?H)pAc?tZ9NhHe)n11_$3V?}>0meY58Q>V&U_fuxqL<@L z+8L{b-p23MVvyqu+8OT-=C3l+ZT$56d=51_QQGwLs_`W%^KU>3HMMp8^z4-2q_*FL zf4BV2)BPQP^hp?KZ-3fLmA8%`bx&Gi`_pXH%m0)gd;R&fGiLd%C8Nu3Yyppr_GfZ4 z20ER8{qN_KIyE4)aiJ-7s!>p6NOkJ`_m3#7KNsuL=m?MEhc`$R=MWkUB08E7YgD-= zjU0*~F>@O6lO;?(yN_ex6ynpfVr?23=8?L10WjHSxlFw&zD~dx7&FNAAn@N!k+tAKgl<-}R;#aM%4%q#Kd%GM%eSH0dabI(L zA4#5c&F!+KI@a&MP3=9}xMj^Ozn|XTfkx2F_D+tS{y8Ffig3j)<|;~_BIPDxY?4gw z&tvgC#`cXOdW6Tsle=PmBIhQ#d$*8TSw?bU5&6e!h{dvEelosiSjkb2&y~Sv3&^hC zKzypy=|^YhGX@v~Z8BhPiC%I$~=S87ycA< a(0bLKI