Curated list of awesome Home Assistant resources. https://www.awesome-ha.com/
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.
 
 

28 lines
1006 B

#!/usr/bin/env bash
# ==============================================================================
# Awesome Home Assistant
# This scripts builds the Awesome list into a website using mkdocs
# ==============================================================================
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]}")")"
# Install requirements
pip install -r requirements.txt
# Link images folder
mkdir -p docs/images
cp -Rf images/* docs/images/
# Get the pages into the docs folder
ln -sf ../README.md docs/index.md
ln -sf ../LICENSE.md docs/license.md
ln -sf ../CONTRIBUTING.md docs/contributing.md
ln -sf ../CODE_OF_CONDUCT.md docs/code-of-conduct.md
# Build!
mkdocs build