From 62ccf46b9cf8eae9bd6a46842bb38acb186fb15f Mon Sep 17 00:00:00 2001
From: Rahix <rahix@rahix.de>
Date: Sun, 19 Sep 2021 15:45:42 +0200
Subject: [PATCH] feat(docs): Add --open flag to build-docs.sh

Can be used to build docs and directly open them in the users default
web-browser:

	./Documentation/build-docs.sh --open
---
 Documentation/build-docs.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Documentation/build-docs.sh b/Documentation/build-docs.sh
index 09c32eca4..2cb616489 100755
--- a/Documentation/build-docs.sh
+++ b/Documentation/build-docs.sh
@@ -4,3 +4,7 @@ set -e
 cd "$(dirname "$0")"
 
 sphinx-build -b html . ./output
+
+if [ "$1" = "--open" ]; then
+   xdg-open ./output/index.html
+fi
-- 
GitLab