From 39dab3d6cb8edd51f0e2511561122ef906860541 Mon Sep 17 00:00:00 2001 From: Jakub Pelc Date: Fri, 9 Jan 2026 23:59:40 +0100 Subject: [PATCH] add local build of the qtrvsim manual --- .github/workflows/hugo.yml | 14 ++++++++++++++ static/.htaccess | 1 - 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index 040c79a..4af58a4 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -20,6 +20,15 @@ jobs: run: sudo apt-get update && sudo apt-get install nodejs hugo rclone - name: Checkout uses: nschloe/action-cached-lfs-checkout@v1 + - name: Checkout QtRvSim for manual + uses: actions/checkout@v4 + with: + repository: cvut/qtrvsim + path: external-qtrvsim + - name: Setup mdBook + uses: peaceiris/actions-mdbook@v2 + with: + mdbook-version: "latest" - name: Cache NPM dependencies uses: actions/cache@master with: @@ -30,6 +39,11 @@ jobs: run: npm install && npm run build - name: Build with Hugo run: hugo + - name: Build QtRvSim Manual + run: | + mdbook build external-qtrvsim/docs/user + mkdir -p public/qtrvsim/manual + cp -a external-qtrvsim/docs/user/book/. public/qtrvsim/manual/ - name: Create ZIP Archive run: zip -r site.zip public/ - name: Send ZIP to Web for deployment diff --git a/static/.htaccess b/static/.htaccess index 3f2c12f..45a44b9 100644 --- a/static/.htaccess +++ b/static/.htaccess @@ -2,7 +2,6 @@ RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] - RewriteRule qtrvsim/manual/?$ https://cvut.github.io/qtrvsim/manual/ [R=302,L] RewriteRule qtrvsim/$ /qtrvsim/app [R=302,L] RewriteRule qtmips/$ /qtmips/app [R=302,L]