docs(gh-pages): migrate site to jekyll format (#3517)

This commit is contained in:
ReenigneArcher 2025-01-06 21:50:26 -05:00 committed by GitHub
commit b662b8e7c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 607 additions and 813 deletions

View file

@ -3,10 +3,15 @@ name: Build GH-Pages
on: on:
pull_request: pull_request:
branches: [master] branches:
types: [opened, synchronize, reopened] - master
types:
- opened
- synchronize
- reopened
push: push:
branches: [master] branches:
- master
workflow_dispatch: workflow_dispatch:
concurrency: concurrency:
@ -14,49 +19,29 @@ concurrency:
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
update_pages: prep:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Checkout gh-pages - name: Upload artifact
uses: actions/checkout@v4
with:
ref: gh-pages
path: gh-pages
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of the personal token
fetch-depth: 0 # otherwise, will fail to push refs to dest repo
- name: Prepare gh-pages
run: |
# empty contents
rm -f -r ./gh-pages/*
# copy template back to pages
cp -f -r ./gh-pages-template/. ./gh-pages/
- name: Upload Artifacts
if: ${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: gh-pages name: prep
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn` path: gh-pages-template/
path: | if-no-files-found: error
${{ github.workspace }}/gh-pages include-hidden-files: true
!**/*.git retention-days: 1
- name: Deploy to gh-pages call-jekyll-build:
if: >- needs: prep
(github.event_name == 'push' && github.ref == 'refs/heads/master') || uses: LizardByte/LizardByte.github.io/.github/workflows/jekyll-build.yml@master
(github.event_name == 'workflow_dispatch') with:
uses: actions-js/push@v1.5 site_artifact: 'prep'
with: target_branch: 'gh-pages'
github_token: ${{ secrets.GH_BOT_TOKEN }} clean_gh_pages: true
author_email: ${{ secrets.GH_BOT_EMAIL }} secrets:
author_name: ${{ secrets.GH_BOT_NAME }} GH_BOT_EMAIL: ${{ secrets.GH_BOT_EMAIL }}
directory: gh-pages GH_BOT_NAME: ${{ secrets.GH_BOT_NAME }}
branch: gh-pages GH_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
force: false
message: sync gh-pages to ${{ github.sha }}

View file

@ -0,0 +1,4 @@
---
# See https://github.com/daattali/beautiful-jekyll/blob/master/_config.yml for documented options
avatar: "/Sunshine/assets/img/navbar-avatar.png"

View file

Before

Width:  |  Height:  |  Size: 6.2 MiB

After

Width:  |  Height:  |  Size: 6.2 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 1.8 MiB

After

Width:  |  Height:  |  Size: 1.8 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 5.9 MiB

After

Width:  |  Height:  |  Size: 5.9 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 1.7 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 5 MiB

After

Width:  |  Height:  |  Size: 5 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

File diff suppressed because it is too large Load diff