From da1b6b37fe2ee09359b532f0d2669975b4476c95 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Fri, 14 Mar 2025 17:05:26 +0000
Subject: [PATCH] fix(explorer): fix incorrect recursive case for folder rendering
---
docs/hosting.md | 26 +++++++++++++++++++++++++-
1 files changed, 25 insertions(+), 1 deletions(-)
diff --git a/docs/hosting.md b/docs/hosting.md
index 4bbaeb5..8b945a2 100644
--- a/docs/hosting.md
+++ b/docs/hosting.md
@@ -61,6 +61,8 @@
with:
fetch-depth: 0 # Fetch all history for git info
- uses: actions/setup-node@v4
+ with:
+ node-version: 22
- name: Install Dependencies
run: npm ci
- name: Build Quartz
@@ -206,7 +208,7 @@
paths:
- public
tags:
- - docker
+ - gitlab-org-docker
pages:
stage: deploy
@@ -245,6 +247,28 @@
}
```
+### Using Apache
+
+Here's an example of how to do this with Apache:
+
+```apache title=".htaccess"
+RewriteEngine On
+
+ErrorDocument 404 /404.html
+
+# Rewrite rule for .html extension removal (with directory check)
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI}.html -f
+RewriteRule ^(.*)$ $1.html [L]
+
+# Handle directory requests explicitly
+RewriteCond %{REQUEST_FILENAME} -d
+RewriteRule ^(.*)/$ $1/index.html [L]
+```
+
+Don't forget to activate brotli / gzip compression.
+
### Using Caddy
Here's and example of how to do this with Caddy:
--
Gitblit v1.10.0