diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2025-10-10 23:38:20 -0400 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2025-10-10 23:38:20 -0400 |
| commit | 3ee3ba0af6d5130baae229cfab90eb79e91244a9 (patch) | |
| tree | b7e894881b84e18a45d78e5bac095a53c67ffb37 /scripts/deploy-docs.sh | |
| parent | Use bolt.eugenetriguba.com for docs (diff) | |
| download | cli-3ee3ba0af6d5130baae229cfab90eb79e91244a9.zip | |
Reorganize functions in deploy-docs
Diffstat (limited to 'scripts/deploy-docs.sh')
| -rwxr-xr-x | scripts/deploy-docs.sh | 24 |
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 "$@" |