From 33413abd28f5ca159d99e56c41ce2f8c708b88f1 Mon Sep 17 00:00:00 2001 From: lifehackerhansol Date: Wed, 2 Oct 2024 15:22:47 -0700 Subject: [PATCH] Forgotten VitePress bits (#189) * workflow: Update for VitePress * LICENSE: update for VitePress The previous license holders in this file were only related to the old Jekyll theme which is no longer in use. * enso-3.65: link to finalizing-setup-3.60 Not sure if this is correct, but the link no longer exists and it was previously renamed to this. * config: define `.vpk` and `.img` as extra extensions --- .github/workflows/publish.yml | 46 +++++++++++++++++++++++----------- LICENSE.txt | 2 +- docs/.vitepress/config.mjs | 2 ++ docs/installing-enso-(3.65).md | 2 +- 4 files changed, 35 insertions(+), 17 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 64ef03f2..d161cf8d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,36 +3,52 @@ name: Deploy site on: push: branches: [ master ] - paths: - - docs/** - - .github/workflows/publish.yml - - package.json workflow_dispatch: jobs: - doc-deploy: + build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: persist-credentials: false submodules: recursive - - uses: actions/setup-node@v3 + - name: Configure GitHub Pages + uses: actions/configure-pages@v5 + + - name: Setup Node + uses: actions/setup-node@v4 with: - node-version: 14 + node-version: 20 + cache: npm - name: Install dependencies run: npm ci - - name: Run VuePress - # Build the site using VuePress + - name: Build site run: npm run docs:build - - name: Deploy 🚀 - uses: JamesIves/github-pages-deploy-action@v4.4.1 + - name: Upload GitHub Pages artifact + uses: actions/upload-pages-artifact@v3 with: - branch: gh-pages # The branch the action should deploy to. - folder: docs/.vuepress/dist # The folder the action should deploy. - clean: true # Automatically remove deleted files from the deploy branch + path: docs/.vitepress/dist + + # Deployment job + deploy: + # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages + permissions: + contents: read + pages: write + id-token: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/LICENSE.txt b/LICENSE.txt index 536ab071..6df6b455 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2017 Michael Rose +Copyright (c) 2017-2024 emiyl Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/docs/.vitepress/config.mjs b/docs/.vitepress/config.mjs index b2aa96ef..553dc9bb 100644 --- a/docs/.vitepress/config.mjs +++ b/docs/.vitepress/config.mjs @@ -11,6 +11,8 @@ import container from 'markdown-it-container' import * as i18n from './i18n' +process.env.VITE_EXTRA_EXTENSIONS = 'vpk,img' + export default defineConfig({ title: "Vita Hacks Guide", description: "A complete guide to PS Vita (TV) custom firmware, from stock to Ensō.", diff --git a/docs/installing-enso-(3.65).md b/docs/installing-enso-(3.65).md index 6ecca27f..bad9031c 100644 --- a/docs/installing-enso-(3.65).md +++ b/docs/installing-enso-(3.65).md @@ -52,5 +52,5 @@ Unfortunately, you may experience minor software incompatibilities as you will n + When the process has completed, press any button to reboot your device ::: tip -Continue to [Finalizing Setup (Legacy)](finalizing-setup-(legacy)) +Continue to [Finalizing Setup (Legacy)](finalizing-setup-(3.60)) :::