-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
支持任意URL #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
没看懂「任意 URL」指的是什么意思。如果只是想部署在自己服务器上,并不需要做任何额外的操作,如果是 nginx 只需要用下面的配置即可 server {
listen 80;
server_name your.domain.com;
location / {
alias /path/to/dir/of/docs;
index index.html;
}
} 参考: |
部署在其它服务器, 但是使用的是 github.com/myrepo/README.md |
现在 html 入口文件要和 md 文档文件在同个目录下才有效。不过看起来可以加一个 |
刚看了一下代码,xhr的。那么就无法避免跨域问题。
|
特色是动态生成而非编译静态文件 😂 不打算支持这个功能 |
问下nginx配置,为什么第一种配置docs显示404,放在根目录就可以
配置
|
我也遇到这个问题,把文件名小写试试 |
用caddy 要怎么配置,我配起来都是空白页? |
The correct vps nginx conf is: server {
listen 80;
server_name your.domain.com;
location / {
root /path/to/dir/of/docs;
index index.html;
}
} Or you have to change your static file owner to nging conf user |
怎么去掉url上面那个#/啊 |
|
It's been a few years since I lastly used Docsify, and today I tried to deploy some old pages with nginx, using the configuration from the document (same as what the author mentioned in this issue), and encountered the 403 problem quite smoothly. Changing Thank you, my friend, you saved my day :D |
能否支持任意URL,这样我就可以放在我自己的服务器上
比如:
The text was updated successfully, but these errors were encountered: