源文件:
11-docs-auto-publish-publish-docs-site.md# 11. Docs Auto Publish: publish-docs-site
This document records the automatic sync and publish helper for the docs site.
# Script
- live path:
/usr/local/bin/publish-docs-site - exported copy:
scripts/publish-docs-site
# Purpose
Turn the docs site refresh into one command.
It performs all of the following:
- sync toolkit markdown files into
/srv/git/docs.v4.sohophp.app/docs-content - optionally commit the repo update as user
git - rebuild
manifest.txt - rebuild
files.sha256 - rebuild
node-cicd-toolkit.tar.gz - rebuild
node-cicd-toolkit.sha256 - unpack and verify the new bundle
- redeploy
docs.v4.sohophp.app - run an HTTPS smoke test
# Example usage
sudo /usr/local/bin/publish-docs-site
Skip the repo commit if you only want a content refresh and deploy:
sudo /usr/local/bin/publish-docs-site --skip-commit
# Why this exists
Without this helper, refreshing the docs site requires multiple manual steps and it is easy to forget one of:
- repo sync
- manifest regeneration
- checksum regeneration
- safe tarball output path
- redeploy
- smoke verification
# Validation target
Successful output includes:
- bundle verification lines ending in
OK - deploy output from
cicd-deploy-node-site - live README grep hits from
https://docs.v4.sohophp.app/doc/README.md - current checksum output from
/download/node-cicd-toolkit.sha256 - optional
--skip-commitmode for content-only refreshes