Go to file
xuedongliang f7de7cc15d feat that define xiuos develop-branch as prepare_for_master
it is OK
2021-12-08 17:03:41 +08:00
docs feat that define xiuos develop-branch as prepare_for_master 2021-12-08 16:46:11 +08:00
.gitignore update webdoc, make steps accurate 2021-05-01 12:20:27 +08:00
README.md Merge remote-tracking branch 'upstream/master' into BranchName 2021-04-29 11:28:42 +08:00
package-lock.json add intro/kernel/hwsupport/sensor 2020-10-22 17:49:30 +08:00
package.json update license 2021-05-06 17:58:19 +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需要依赖v10.x以上的node.js在命令行输入以下命令以查看node.js版本

nodejs -v

如果版本过低导致安装失败输入以下命令安装新版的node.js其中版本号14可以根据node.js官网的最新版本更改

curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs

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

yarn global add vuepress

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

yarn add -D vuepress

下载网站源码

git clone https://git.trustie.net/xuos/xuos-web.git

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

cd xuos-web
yarn add -D vuepress

测试

yarn dev

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

运行

yarn build

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