fix(docs): Replace offline docs build action (attempt 3) (#2112)

* fix(deck): Add new override videos to the just (#2100)

* chore(repo): Update opengraph images

* Revert "feat: Update to kernel 6.12.8-207"

This reverts commit b645716f84e71cb2cbd4725a1d333657fb99b6ba.

* chore(deps): update wandalen/wretry.action action to v3.8.0 (#2095)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Add new override videos

---------

Co-authored-by: Kyle Gospodnetich <me@kylegospodneti.ch>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(docs): Replace offline docs build action (attempt 3)

This centralizes the logic to build the docs in a single repo
(https://github.com/KyleGospo/docs.bazzite.gg) and fixes offline docs
not building

---------

Co-authored-by: Sean <SuperRiderTH@users.noreply.github.com>
Co-authored-by: Kyle Gospodnetich <me@kylegospodneti.ch>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
Zeglius 2025-01-18 19:47:31 +01:00 committed by GitHub
parent d7eaee931a
commit bc72466487
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 96 deletions

View File

@ -175,7 +175,7 @@ jobs:
run: rm -r ${{ github.workspace }}/docs && git clone https://github.com/KyleGospo/docs.bazzite.gg.git ${{ github.workspace }}/docs
continue-on-error: true
- name: Build offline documentation
uses: ./.github/workflows/build_mkdocs
uses: KyleGospo/docs.bazzite.gg@main
continue-on-error: true
with:
github_token: ${{ github.token }}

View File

@ -1,95 +0,0 @@
name: Build mkdocs
description: Parametrized mkdocs building
inputs:
github_token:
description: github token
required: true
site_url:
description: Set `MKDOCS_SITE_URL` env var
default: ""
required: true
working_dir:
description: Parent directory that contains mkdocs.yml
default: ${{ github.workspace }}/docs
output_dir:
description: Where we will output the resulting webpage
default: ${{ github.workspace }}/book
upload_github_page:
description: Upload github-page
default: "false"
repo_url:
description: URL of the repo
default: ${{ github.server_url }}/${{ github.repository }}
outputs:
artifact_id:
description: "Artifact id uploaded (is an empty string in case of `upload_github_page: false`)"
value: ${{ steps.upload-artifact.outputs.artifact_id }}
runs:
using: composite
steps:
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Poetry
uses: abatilo/actions-poetry@v4
- name: Configure Poetry
working-directory: ${{ inputs.working_dir }}
shell: bash
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- name: Poetry install deps
shell: bash
working-directory: ${{ inputs.working_dir }}
run: poetry install
- name: Build book
shell: bash
working-directory: ${{ inputs.working_dir }}
env:
MKDOCS_SITE_URL: ${{ inputs.site_url }}
MKDOCS_REPO_URL: ${{ inputs.repo_url }}
_OUTPUT_DIR: ${{ inputs.output_dir }}
run: |
source .venv/bin/activate
max_tries=3
is_ok=0
while [[ $max_tries -gt 0 && is_ok -ne 1 ]]; do
if ! mkdocs build --verbose -d $_OUTPUT_DIR; then
max_tries=$(( $max_tries -1 ))
else
is_ok=1
fi
done
- name: Setup Pages
if: ${{ inputs.upload_github_page == 'true' }}
uses: actions/configure-pages@v5
with:
token: ${{ inputs.github_token }}
- name: Upload artifact
if: ${{ inputs.upload_github_page == 'true' }}
uses: actions/upload-pages-artifact@v3
id: upload-artifact
with:
path: ${{ inputs.output_dir }}
token: ${{ inputs.github_token }}
- name: Deploy to GitHub Pages
if: ${{ inputs.upload_github_page == 'true' }}
id: deployment
uses: actions/deploy-pages@v4
with:
token: ${{ inputs.github_token }}

View File

@ -172,6 +172,8 @@ configure-override-videos ACTION="":
rm $HOME/.local/share/Steam/config/uioverrides/movies/deck_startup.webm
rm $HOME/.local/share/Steam/config/uioverrides/movies/deck-suspend-animation.webm
rm $HOME/.local/share/Steam/config/uioverrides/movies/deck-suspend-animation-from-throbber.webm
rm $HOME/.local/share/Steam/config/uioverrides/movies/steam_os_suspend.webm
rm $HOME/.local/share/Steam/config/uioverrides/movies/steam_os_suspend_from_throbber.webm
fi
# Restores the stock virtual keyboard under KDE & GNOME