diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2026-02-12 19:14:17 -0500 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2026-02-12 19:14:17 -0500 |
| commit | 449f74ded67b49fb3066d6d107fa6de9dba0093c (patch) | |
| tree | d18017e8e318541781d5cf1cb3e161d3c2ee0be8 /scripts/deploy-docs.sh | |
| parent | Release v0.12.1 (diff) | |
| download | cli-449f74ded67b49fb3066d6d107fa6de9dba0093c.zip | |
Replace HTML docs with man pages that ship with bolt
Diffstat (limited to '')
| -rwxr-xr-x | scripts/deploy-docs.sh | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/scripts/deploy-docs.sh b/scripts/deploy-docs.sh deleted file mode 100755 index 194882a..0000000 --- a/scripts/deploy-docs.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/env bash -set -eou pipefail - -source "$(dirname "${BASH_SOURCE[0]}")/lib/log.sh" -source "$(dirname "${BASH_SOURCE[0]}")/lib/path.sh" - -readonly SITE="bolt.eugenetriguba.com" - -usage() { - echo "Usage: $0" - echo "" - echo "Build and deploy documentation to SourceHut Pages" - echo "" - echo "Examples:" - 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 - log_success "Documentation built successfully" -} - -package_site() { - log_step "Creating tarball" - tar -C site -czf site.tar.gz . - log_success "Site packaged as site.tar.gz" -} - -deploy_to_pages() { - log_step "Deploying to SourceHut Pages: $SITE" - hut pages publish -d "$SITE" site.tar.gz - log_success "Documentation deployed to https://$SITE" -} - -main "$@" |