diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3f064987..9e8a40fb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -28,7 +28,7 @@ jobs: python -m build - name: Publish - uses: pypa/gh-action-pypi-publish@v1.8.11 + uses: pypa/gh-action-pypi-publish@v1.8.14 with: user: __token__ password: ${{ secrets.PYPI_KEY }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 54d54122..9c60749e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -20,7 +20,7 @@ jobs: - uses: actions/setup-python@v5 with: python-version: 3.11 - - uses: pre-commit/action@v3.0.0 + - uses: pre-commit/action@v3.0.1 tests: continue-on-error: ${{ matrix.experimental || false }} diff --git a/src/sphinx_book_theme/assets/styles/sections/_header-article.scss b/src/sphinx_book_theme/assets/styles/sections/_header-article.scss index 83141717..a741c647 100644 --- a/src/sphinx_book_theme/assets/styles/sections/_header-article.scss +++ b/src/sphinx_book_theme/assets/styles/sections/_header-article.scss @@ -91,7 +91,8 @@ label.sidebar-toggle.secondary-toggle { font-size: 1.3rem; color: var(--pst-color-text-muted); border: none; - padding: 0 0.5rem; + padding-left: 0.5rem; + padding-right: 0.5rem; // Make sure anything inside is aligned vertically display: flex; diff --git a/src/sphinx_book_theme/header_buttons/launch.py b/src/sphinx_book_theme/header_buttons/launch.py index 4f89228d..c00f9293 100644 --- a/src/sphinx_book_theme/header_buttons/launch.py +++ b/src/sphinx_book_theme/header_buttons/launch.py @@ -134,7 +134,7 @@ def add_launch_buttons( { "type": "link", "text": "Binder", - "tooltip": translation("Launch on") + "Binder", + "tooltip": translation("Launch on") + " Binder", "icon": "_static/images/logo_binder.svg", "url": url, } @@ -152,7 +152,7 @@ def add_launch_buttons( { "type": "link", "text": "JupyterHub", - "tooltip": translation("Launch on") + "JupyterHub", + "tooltip": translation("Launch on") + " JupyterHub", "icon": "_static/images/logo_jupyterhub.svg", "url": url, } @@ -167,7 +167,7 @@ def add_launch_buttons( { "type": "link", "text": "Colab", - "tooltip": translation("Launch on") + "Colab", + "tooltip": translation("Launch on") + " Colab", "icon": "_static/images/logo_colab.png", "url": url, } @@ -183,7 +183,7 @@ def add_launch_buttons( { "type": "link", "text": "Deepnote", - "tooltip": translation("Launch on") + "Deepnote", + "tooltip": translation("Launch on") + " Deepnote", "icon": "_static/images/logo_deepnote.svg", "url": url, } diff --git a/src/sphinx_book_theme/theme/sphinx_book_theme/macros/buttons.html b/src/sphinx_book_theme/theme/sphinx_book_theme/macros/buttons.html index 4956e475..de4d681d 100644 --- a/src/sphinx_book_theme/theme/sphinx_book_theme/macros/buttons.html +++ b/src/sphinx_book_theme/theme/sphinx_book_theme/macros/buttons.html @@ -6,7 +6,7 @@ {% if icon.startswith("fa") -%} {% else %} - + {% endif -%} {% endif %} diff --git a/tests/test_build/build__header-article.html b/tests/test_build/build__header-article.html index bbac6fd6..ad7e3f12 100644 --- a/tests/test_build/build__header-article.html +++ b/tests/test_build/build__header-article.html @@ -18,9 +18,9 @@