Skip to content

Commit 303a79d

Browse files
authored
Merge pull request #1 from cvut/docs
Add local build of QtRVSim manual
2 parents 177d67f + 39dab3d commit 303a79d

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/hugo.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ jobs:
2020
run: sudo apt-get update && sudo apt-get install nodejs hugo rclone
2121
- name: Checkout
2222
uses: nschloe/action-cached-lfs-checkout@v1
23+
- name: Checkout QtRvSim for manual
24+
uses: actions/checkout@v4
25+
with:
26+
repository: cvut/qtrvsim
27+
path: external-qtrvsim
28+
- name: Setup mdBook
29+
uses: peaceiris/actions-mdbook@v2
30+
with:
31+
mdbook-version: "latest"
2332
- name: Cache NPM dependencies
2433
uses: actions/cache@master
2534
with:
@@ -30,6 +39,11 @@ jobs:
3039
run: npm install && npm run build
3140
- name: Build with Hugo
3241
run: hugo
42+
- name: Build QtRvSim Manual
43+
run: |
44+
mdbook build external-qtrvsim/docs/user
45+
mkdir -p public/qtrvsim/manual
46+
cp -a external-qtrvsim/docs/user/book/. public/qtrvsim/manual/
3347
- name: Create ZIP Archive
3448
run: zip -r site.zip public/
3549
- name: Send ZIP to Web for deployment

static/.htaccess

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
RewriteEngine On
33
RewriteCond %{HTTPS} off
44
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
5-
RewriteRule qtrvsim/manual/?$ https://cvut.github.io/qtrvsim/manual/ [R=302,L]
65
RewriteRule qtrvsim/$ /qtrvsim/app [R=302,L]
76
RewriteRule qtmips/$ /qtmips/app [R=302,L]
87
</IfModule>

0 commit comments

Comments
 (0)