element-ui和element-plus离线文档

2,155 阅读1分钟

1.element-ui离线文档。在GitHub - ElemeFE/element: A Vue.js 2.0 UI Toolkit for Web

把项目下来,然后本地跑下载依赖,运行 npm run deploy:build,打包后在example/element-ui下启一个服务就可以打开了。

2.element-plus离线文档,在GitHub - element-plus/element-plus at gh-pages把项目下下来pnpm docs:dev跑就行了 github位置如下图

image.png

image.png

nginx部署也是这个文件

nginx.conf

#user  nobody;
worker_processes  1;

events {
    worker_connections  1024;
}

http {
    include       mime.types;
    default_type  application/octet-stream;

    sendfile        on;
    keepalive_timeout  65;

    server {
        listen       80;
        server_name  localhost;

        location / {
            root   C:\Users\S\Desktop\element-plus;
            index  index.html index.htm;
        }

        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
    }
	
}