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.
Yan_yan 7d94b1d3a0 Update task.md 1 year ago
docs Update task.md 1 year ago
.gitignore website init 2 years ago
README.md udpate README 2 years ago
package-lock.json add intro/kernel/hwsupport/sensor 2 years ago
package.json update xuos.md 2 years ago

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页面