fix: correct base path in docs build, add Pages deploy workflow

Site was committed with base='/' (assumes repo-root domain), but
GitHub Pages serves this repo at /vjailbreak-docs/, breaking all
absolute asset/link paths. Rebuilt with BASE=vjailbreak-docs to
match. Also adds the Actions-based deploy workflow (mirrors
platform9/vjailbreak) so future pushes to gh-pages rebuild and
deploy automatically instead of relying on manual commits.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
This commit is contained in:
OmkarDeshpande7
2026-09-12 22:57:13 +05:30
co-authored by Claude Sonnet 5
parent 94a0a48b23
commit d322caf561
286 changed files with 20586 additions and 2861 deletions
+48
View File
@@ -0,0 +1,48 @@
name: Deploy Docs
on:
# Trigger the workflow every time you push to the `gh-pages` branch
# Using a different branch name? Replace `gh-pages` with your branch's name
push:
branches: [ gh-pages ]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:
inputs:
branch:
description: 'Branch to use'
required: true
default: 'gh-pages'
# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install, build, and upload your site
env:
SITE_URL: ${{ env.SITE_URL }}
BASE: ${{ github.event.repository.name }}
uses: withastro/action@v4
with:
path: docs/ # The root location of your Astro project inside the repository. (optional)
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4