aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/deploy-docs.sh
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2025-10-10 23:38:20 -0400
committerEugene Triguba <hello@eugenetriguba.com>2025-10-10 23:38:20 -0400
commit3ee3ba0af6d5130baae229cfab90eb79e91244a9 (patch)
treeb7e894881b84e18a45d78e5bac095a53c67ffb37 /scripts/deploy-docs.sh
parentUse bolt.eugenetriguba.com for docs (diff)
downloadcli-3ee3ba0af6d5130baae229cfab90eb79e91244a9.zip
Reorganize functions in deploy-docs
Diffstat (limited to 'scripts/deploy-docs.sh')
-rwxr-xr-xscripts/deploy-docs.sh24
1 files changed, 12 insertions, 12 deletions
diff --git a/scripts/deploy-docs.sh b/scripts/deploy-docs.sh
index afb3b66..7bdae3a 100755
--- a/scripts/deploy-docs.sh
+++ b/scripts/deploy-docs.sh
@@ -14,6 +14,18 @@ usage() {
echo " $0 # Build and deploy docs to $SITE"
}
+main() {
+ if [[ "${1:-}" == "-h" || "${1:-}" == "--help" ]]; then
+ usage
+ exit 0
+ fi
+
+ log_header "Deploying Documentation"
+ build_docs
+ package_site
+ deploy_to_pages
+}
+
build_docs() {
log_step "Building documentation with MkDocs"
mkdocs build
@@ -32,16 +44,4 @@ deploy_to_pages() {
log_success "Documentation deployed to https://$SITE"
}
-main() {
- if [[ "${1:-}" == "-h" || "${1:-}" == "--help" ]]; then
- usage
- exit 0
- fi
-
- log_header "Deploying Documentation"
- build_docs
- package_site
- deploy_to_pages
-}
-
main "$@"