mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-20 20:07:34 +00:00
Major documentation reorganization and improvements: ## Documentation Cleanup - Deleted 13 old status/report MD files from root - Moved old reports to docs/archive/ for reference - Removed USAGE.md, WHITE_LABEL.md, TESTING_GUIDE.md - Now only 9 essential MD files at root (LLM.md, README.md, etc.) ## New Comprehensive Documentation Created in app/content/docs/ (visible on ui.hanzo.ai): ### Frameworks (/docs/frameworks/) - Multi-framework overview and comparison - React guide (8KB) - hooks, Next.js, TypeScript - Vue guide (4.6KB) - Composition API, Nuxt ### Packages (/docs/packages/) - Complete package documentation (6.3KB) - @hanzo/ui, @hanzo/auth, @hanzo/commerce, @hanzo/brand ### Testing (/docs/testing/) - Comprehensive testing guide (7.6KB) - Unit, E2E, visual regression, accessibility - Vitest, Playwright, CI/CD examples ### White-Label (/docs/white-label/) - Fork and rebrand guide (6.4KB) - Publishing, deployment, syncing with upstream ## Navigation & UX Improvements - Updated sidebar navigation with 4 new sections - Added comprehensive footer with quick links - 4-column footer: Getting Started, Frameworks, Resources, Community - Version number in footer (v5.0.0) ## Technical Fixes - Fixed build:registry workspace references (www,v4 → app) - Removed deprecated prettier import order options - Updated site config with version and Discord link ## Updated Documentation - README.md - Concise, feature-rich overview - LLM.md - Documentation structure rules and recent updates - All 175 MDX files accessible and building correctly Deployment ready for ui.hanzo.ai
40 lines
1020 B
Bash
Executable File
40 lines
1020 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e # bail on errors
|
|
GLOB=$1
|
|
IS_CI="${CI:-false}"
|
|
BASE=$(pwd)
|
|
COMMIT_MESSAGE=$(git log -1 --pretty=%B)
|
|
|
|
for folder in $GLOB; do
|
|
[ -d "$folder" ] || continue
|
|
cd $BASE
|
|
|
|
if [ -n "$(git status --porcelain)" ]; then
|
|
git add .
|
|
git commit -m "chore: update template"
|
|
git push origin main
|
|
fi
|
|
|
|
NAME=${folder##*/}
|
|
CLONE_DIR="__${NAME}__clone__"
|
|
|
|
# sync to read-only clones
|
|
# clone, delete files in the clone, and copy (new) files over
|
|
# this handles file deletions, additions, and changes seamlessly
|
|
# note: redirect output to dev/null to avoid any possibility of leaking token
|
|
git clone --quiet --depth 1 [email protected]:hanzo/${NAME}.git $CLONE_DIR > /dev/null
|
|
cd $CLONE_DIR
|
|
find . | grep -v ".git" | grep -v "^\.*$" | xargs rm -rf # delete all files (to handle deletions in monorepo)
|
|
cp -r $BASE/$folder/. .
|
|
|
|
if [ -n "$(git status --porcelain)" ]; then
|
|
git add .
|
|
git commit -m "$COMMIT_MESSAGE"
|
|
git push origin main
|
|
fi
|
|
|
|
cd $BASE
|
|
rm -rf $CLONE_DIR
|
|
done
|