Go to file
Donggang Cao d3cb4ae39a update xuos.md 2020-11-08 23:39:46 +08:00
docs update xuos.md 2020-11-08 23:39:46 +08:00
.gitignore website init 2020-08-27 13:58:49 +08:00
README.md udpate README 2020-08-28 15:02:46 +08:00
package-lock.json add intro/kernel/hwsupport/sensor 2020-10-22 17:49:30 +08:00
package.json update xuos.md 2020-11-08 23:39:46 +08:00

README.md

XiUOS

X IIoT Ubuquitous Operating System

Development

XiUOS 网站开发

假定工作于Ubuntu环境.

XiUOS网站基于VuePress, 故应先通过 yarn 安装 vuepress .

安装 yarn

首先

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

然后

sudo apt update && sudo apt install yarn

具体参见这里

安装vuepress

可以为所有项目安装全局的唯一 vuepress

yarn global add vuepress

也可以在vuepress 项目根目录下安装每个项目各自的vuepress

yarn add -D vuepress

下载网站源码

git clone https://github.com/xuos/xuos-web

如果没有全局vuepress, 需要安装

cd xuos-web
yarn add -D vuepress

测试

yarn dev

会在终端启动 web server, 浏览器中访问 http://localhost:8080, 可观察网站效果

运行

yarn build

可在 docs/.vuepress/dist 中生成编译后的html页面