代码拉取完成,页面将自动刷新
#!/usr/bin/env bash
# ==============================================================================
# Community Hass.io Add-ons for Home Assistant
# This script builds a small little website
# ==============================================================================
set -o errexit # Exit script when a command exits with non-zero status
set -o errtrace # Exit on error inside any functions or sub-shells
set -o nounset # Exit script on use of an undefined variable
set -o pipefail # Return exit status of the last command in the pipe that failed
# Switch to the root of the repository.
cd "$(dirname "$(dirname "${BASH_SOURCE[0]}")")"
# Create a documentation folder
mkdir -p docs
# Install requirements
pip install -r requirements.txt
# Download Beta page
curl https://raw.githubusercontent.com/hassio-addons/repository-beta/master/README.md --output docs/beta.md
# Download Edge page
curl https://raw.githubusercontent.com/hassio-addons/repository-edge/master/README.md --output docs/edge.md
# Get the pages into the docs folder
ln -sf ../README.md docs/index.md
ln -sf ../LICENSE.md docs/license.md
ln -sf ../.github/CONTRIBUTING.md docs/contributing.md
ln -sf ../.github/CODE_OF_CONDUCT.md docs/code-of-conduct.md
# Build!
mkdocs build
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。