You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tanghc
a79272df2d
|
4 years ago | |
---|---|---|
.. | ||
blog | 4 years ago | |
docs | 4 years ago | |
en-us | 4 years ago | |
img | 4 years ago | |
md_json | 4 years ago | |
site_config | 4 years ago | |
src | 4 years ago | |
utils | 4 years ago | |
zh-cn | 4 years ago | |
.babelrc | 4 years ago | |
.docsite | 4 years ago | |
.eslintrc | 4 years ago | |
.gitignore | 4 years ago | |
.nojekyll | 4 years ago | |
404.html | 4 years ago | |
README.md | 4 years ago | |
build.sh | 4 years ago | |
docsite.config.yml | 4 years ago | |
gulpfile.js | 4 years ago | |
index.html | 4 years ago | |
package.json | 4 years ago | |
redirect.ejs | 4 years ago | |
template.ejs | 4 years ago | |
webpack.config.js | 4 years ago |
README.md
门户网站
纯静态网站,作为开放平台基本介绍使用,可独立部署,logo制作:http://www.uugai.com/
初始化
安装node,建议安装11版本,12版本会有不兼容问题。
安装完毕执行:
npm install
启动
docsite start
打包
首先,需要配置下站点的根路径,修改site_config/site.js中的rootPath字段。规则如下:
当部署根路径为/,则设置为''空字符串即可。
当部署根路径不为/,则设置为具体的根路径,注意需以/开头,但不能有尾/。
运行build.sh
将dist内容上传到服务器