fix: implement normalize method in html5.js (#2712)

This commit is contained in:
Luffy
2026-04-04 10:35:26 +08:00
committed by GitHub
parent 72c0d63718
commit ee6fef4ffc
2 changed files with 21 additions and 3 deletions
+19 -3
View File
@@ -58,14 +58,14 @@ Your `firebase.json` file should look similar to this (I changed the deployment
Once finished, build the starting template by running `docsify init ./site` (replacing site with the deployment directory you determined when running `firebase init` - public by default). Add/edit the documentation, then run `firebase deploy` from the root project directory.
## VPS
## Nginx
Use the following nginx config.
Use the following Nginx configuration.
```nginx
server {
listen 80;
server_name your.domain.com;
server_name your.domain.com;
location / {
alias /path/to/dir/of/docs/;
@@ -74,6 +74,22 @@ server {
}
```
If [`routerMode`](configuration.md#routermode) is set to `history`, use this configuration instead:
```nginx
server {
listen 80;
server_name your.domain.com;
root /path/to/dir/of/docs;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}
```
## Netlify
1. Login to your [Netlify](https://www.netlify.com/) account.