-
-
Notifications
You must be signed in to change notification settings - Fork 2
CONSISTENCY FIX GUIDE
Purpose: Practical guide to fix all identified consistency issues Related Docs:
- STYLE-GUIDE.md - Official style standards
- CONSISTENCY-AUDIT-REPORT.md - Detailed audit findings
Problem: 240 files reference v0.9.6 instead of v0.9.8
Find affected files:
cd /Users/admin/Sites/nself/docs
# Find all v0.9.6 references
grep -r "v0\.9\.6\|0\.9\.6" . --include="*.md" | wc -l
# Result: ~240 references
# See specific files
grep -r "v0\.9\.6\|0\.9\.6" . --include="*.md" -lAutomated fix (USE WITH CAUTION):
# Backup first!
cp -r docs docs.backup
# Update version badges
find docs -name "*.md" -exec sed -i '' 's/version-0\.9\.6/version-0.9.8/g' {} \;
# Update version in links
find docs -name "*.md" -exec sed -i '' 's|releases/v0\.9\.6\.md|releases/v0.9.8.md|g' {} \;Manual review required for:
# These may be intentional historical references:
grep -r "v0\.9\.6" docs/releases/ --include="*.md"
# Version callouts - review context
grep -r "> \*\*v0\.9\.6" docs/ --include="*.md"Safe approach:
- Update badge versions:
version-0.9.6→version-0.9.8 - Update "current version" statements
- Keep historical references in release notes
- Change version callouts only where referring to current version
Problem: Mixed formats like <project-name>, PROJECT_NAME, your-project
Standard format:
- Commands:
<kebab-case> - Environment variables:
UPPERCASE_UNDERSCORES - Examples: Use concrete values (
myapp,acme)
Find mixed usage:
# Find uppercase placeholders in commands
grep -r "nself.*[A-Z_]\{5,\}" docs/commands/ --include="*.md" | head -20
# Find angle brackets with underscores
grep -r "<[A-Z_]*>" docs/ --include="*.md" | head -20Manual fix required - Context-dependent:
Before (inconsistent):
nself tenant create PROJECT_NAME
nself tenant create <PROJECT_NAME>
nself tenant create your-project-nameAfter (standardized):
# In reference docs - use placeholder
nself tenant create <project-name>
# In tutorials - use concrete example
nself tenant create myappRecommendation: Fix file-by-file in command reference docs first.
Problem: Rare cases of NSELF, Nself, or uppercase subcommands
Find issues:
# Find wrong command casing
grep -r "NSELF db\|NSELF tenant\|Nself " docs/ --include="*.md"
# Find uppercase subcommands
grep -r "nself [A-Z][A-Z]" docs/ --include="*.md"Expected results: Should be very few or zero
Fix:
# All commands should be lowercase:
nself db migrate up # ✅ Correct
nself tenant create # ✅ Correct
# NOT:
NSELF db migrate up # ❌ Wrong
nself DB migrate up # ❌ WrongProblem: Some code blocks missing ```bash identifier
Find blocks without language:
# Find code blocks without language identifier
grep -rn "^\`\`\`$" docs/ --include="*.md" | head -20Fix template:
# Before:
```
nself start
```
# After:
```bash
nself start
```Supported languages:
-
bash- Shell commands -
sql- SQL queries -
typescript,javascript,python,go- Code -
json,yaml- Config files -
dbml- Database markup
Problem: Occasional absolute paths instead of relative
Find absolute links:
# Find absolute GitHub URLs
grep -r "https://github.com/nself-org/cli/blob/main/docs" docs/ --include="*.md"
# Find absolute /docs paths
grep -r "\](/" docs/ --include="*.md"Fix pattern:
# Wrong (absolute):
[Quick Start](getting-started/Quick-Start.md)
[Quick Start](https://github.com/.../do../getting-started/Quick-Start.md)
# Correct (relative):
# From /docs/README.md:
[Quick Start](getting-started/Quick-Start.md)
# From /docs/guides/DEPLOYMENT.md:
[Quick Start](getting-started/Quick-Start.md)Problem: Inconsistent capitalization (Title Case vs sentence case)
Standard: Use sentence case
✅ Correct:
# Database workflow guide
## Creating your first migration
### Migration file format
❌ Incorrect:
# Database Workflow Guide
## Creating Your First Migration
### Migration File FormatExceptions:
- Brand names:
nself,PostgreSQL,Docker - Acronyms:
SQL,API,CLI - Proper nouns:
GitHub,Hasura
Find title case headers:
# Find headers with multiple capital words
grep -rn "^## [A-Z][a-z]* [A-Z]" docs/ --include="*.md" | head -30Manual fix required - Review context for proper nouns.
Create /scripts/check-docs-consistency.sh:
#!/bin/bash
echo "=== Documentation Consistency Check ==="
echo
# 1. Check current version
CURRENT_VERSION=$(cat src/VERSION)
echo "Current version: $CURRENT_VERSION"
# 2. Find outdated version references
echo
echo "Checking for outdated version references..."
OUTDATED=$(grep -r "v0\.9\.[0-6]" docs/ --include="*.md" -l | wc -l)
echo "Files with old versions: $OUTDATED"
# 3. Check for missing language identifiers
echo
echo "Checking for code blocks without language..."
MISSING_LANG=$(grep -rn "^\`\`\`$" docs/ --include="*.md" | wc -l)
echo "Code blocks without language: $MISSING_LANG"
# 4. Check for absolute links
echo
echo "Checking for absolute paths in links..."
ABS_LINKS=$(grep -r "\](/" docs/ --include="*.md" | wc -l)
echo "Absolute link paths: $ABS_LINKS"
# 5. Summary
echo
echo "=== Summary ==="
if [[ $OUTDATED -gt 0 ]] || [[ $MISSING_LANG -gt 0 ]] || [[ $ABS_LINKS -gt 0 ]]; then
echo "⚠️ Issues found. Run individual checks above for details."
exit 1
else
echo "✅ All checks passed!"
exit 0
fiUsage:
chmod +x scripts/check-docs-consistency.sh
./scripts/check-docs-consistency.shAdd to .git/hooks/pre-commit:
#!/bin/bash
# Check if any .md files are being committed
MD_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep '\.md$')
if [ -n "$MD_FILES" ]; then
echo "Checking documentation consistency..."
# Check for common issues
for file in $MD_FILES; do
# Check for code blocks without language
if grep -q "^\`\`\`$" "$file"; then
echo "⚠️ Warning: $file has code blocks without language identifier"
fi
# Check for absolute paths
if grep -q "\](/" "$file"; then
echo "⚠️ Warning: $file contains absolute /docs/ paths"
fi
done
echo "✅ Documentation checks complete"
fiAdd to .github/workflows/docs-check.yml:
name: Documentation Checks
on:
pull_request:
paths:
- 'docs/**/*.md'
jobs:
check-consistency:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check documentation consistency
run: |
# Check for outdated versions
CURRENT_VERSION=$(cat src/VERSION)
echo "Current version: $CURRENT_VERSION"
# Find old version references (may be historical - warn only)
OLD_REFS=$(grep -r "v0\.9\.[0-6]" docs/ --include="*.md" -l | wc -l)
if [ $OLD_REFS -gt 0 ]; then
echo "::warning::Found $OLD_REFS files with older version references"
fi
# Check for missing language identifiers
MISSING=$(grep -rn "^\`\`\`$" docs/ --include="*.md" | wc -l)
if [ $MISSING -gt 0 ]; then
echo "::error::Found $MISSING code blocks without language identifier"
exit 1
fi
echo "✅ Documentation checks passed"# 1. Backup
cp -r docs docs.backup.$(date +%Y%m%d)
# 2. Update version file
echo "0.9.8" > src/VERSION
# 3. Update badges in main docs
find docs -name "README.md" -o -name "INDEX.md" | while read file; do
sed -i '' 's/version-0\.9\.6/version-0.9.8/g' "$file"
done
# 4. Update version tables
# (Manual - in docs/README.md and release notes)
# 5. Verify
./scripts/check-docs-consistency.sh
# 6. Review changes
git diff docs/
# 7. Commit
git add docs/
git commit -m "docs: update to version 0.9.8"- ✅ DONE: Updated main README.md to v0.9.8
- ✅ DONE: Updated Quick-Start.md version notes
- TODO: Review and update all INDEX.md files
- TODO: Update version badges in key docs
- TODO: Create check script
- TODO: Fix placeholder inconsistencies in command docs
- TODO: Add missing language identifiers
- TODO: Standardize header capitalization
- TODO: Add pre-commit hook
- TODO: Add CI/CD checks
- TODO: Create contributor guidelines
-
/docs/README.md- Version badge: 0.9.6 → 0.9.8
- Version callout: v0.9.6 → v0.9.8
- Version history table: Added v0.9.7 and v0.9.8
- Footer date: Updated to January 31, 2026
-
/do../getting-started/Quick-Start.md- Version note: v0.9.6 → v0.9.7+ (for historical accuracy)
-
NEW FILES CREATED:
-
/docs/STYLE-GUIDE.md- Official style standards -
/docs/CONSISTENCY-AUDIT-REPORT.md- Detailed audit -
/docs/CONSISTENCY-FIX-GUIDE.md- This file
-
Check these files for version references:
# Find all files with version references
grep -rl "v0\.9\.6" docs/ --include="*.md" | sort
# Prioritize:
# 1. INDEX.md files
# 2. README.md files
# 3. Getting started guides
# 4. Release notes (keep historical references)-
Historical References: Don't change version numbers in release notes or historical documentation - those are intentionally dated.
-
Version Callouts: Only update
> **v0.9.6:**notes if they refer to "current version". If they're historical ("In v0.9.6, we added..."), keep them. -
Concrete Examples: When standardizing placeholders, prefer concrete examples in tutorials and guides. Save
<placeholders>for reference documentation. -
Test Before Commit: Always review changes with
git diffbefore committing mass updates. -
Gradual Updates: Don't feel pressured to fix everything at once. Prioritize:
- High: Version updates, broken links
- Medium: Placeholder consistency, command formatting
- Low: Header capitalization, code block languages
Current Version: 0.9.8 (as of February 16, 2026)
Style Standards: See STYLE-GUIDE.md
Audit Report: See CONSISTENCY-AUDIT-REPORT.md
Documentation Consistency Fix Guide
Practical steps to standardize 406 markdown files
ɳSelf CLI v1.0.9. MIT licensed. Docs CC BY 4.0.
GitHub · Issues · Discussions · nself.org · nself.org/docs
Getting Started
Commands
- Commands, Overview
- Lifecycle: cmd-init · cmd-build · cmd-start · cmd-stop · cmd-restart · cmd-dev
- Monitoring: cmd-status · cmd-logs · cmd-health · cmd-urls · cmd-doctor · cmd-monitor · cmd-alerts · cmd-sentry · cmd-watchdog
- Data: cmd-db · cmd-backup · cmd-dr · cmd-queue · cmd-webhooks
- Config: cmd-config · cmd-service · cmd-env · cmd-promote
- Networking: cmd-ssl · cmd-trust · cmd-dns-setup
- Security: cmd-access · cmd-security · cmd-secrets
- Tenancy: cmd-tenant · cmd-billing
- Plugins: cmd-plugin · cmd-license · cmd-dogfood (extracted, CLI-R11) · cmd-k8s (extracted, CLI-R11) · cmd-encryption (extracted, CLI-R11) · cmd-waf (extracted, CLI-R11) · cmd-federation (extracted, CLI-R11) · cmd-mail (extracted, CLI-R11) · cmd-dlq (extracted, CLI-R11)
- AI: cmd-ai · cmd-claw · cmd-model
- Templates: cmd-template
- Utilities: cmd-exec · cmd-clean · cmd-reset · cmd-update · cmd-upgrade · cmd-version · cmd-admin · cmd-migrate · cmd-migrate-firebase · cmd-migrate-supabase · cmd-completion
Features
- Features, Overview
- Feature-Auth
- Feature-Storage
- Feature-Search
- Feature-Functions
- Feature-Email
- Feature-Monitoring
- Feature-Plugins
- Feature-nClaw, AI Assistant
- Feature-nChat, Messaging
- Feature-nTV, Media Player
- Feature-nFamily, Family Social
- Feature-nCloud, Managed Hosting
- Feature-Memory-Rooms, Knowledge Organization
- Feature-Agent-Dashboard, Agent Metrics
- Feature-Image-Generation, AI Image Generation
Configuration
- Configuration, Overview
- Config-Env-Vars
- Config-Postgres
- Config-Hasura
- Config-Auth
- Config-Nginx
- Config-Optional-Services
- Config-Custom-Services
- Config-System
Plugins (87 + 10 monitoring)
Free (25)
- plugin-backup
- plugin-content-acquisition
- plugin-content-progress
- plugin-cron
- plugin-donorbox
- plugin-feature-flags
- plugin-github
- plugin-github-runner
- plugin-invitations
- plugin-jobs
- plugin-link-preview
- plugin-mdns
- plugin-mlflow
- plugin-monitoring
- plugin-notifications
- plugin-notify
- plugin-paypal
- plugin-search
- plugin-shopify
- plugin-stripe
- plugin-subtitle-manager
- plugin-tokens
- plugin-torrent-manager
- plugin-vpn
- plugin-webhooks
Pro (62)
- plugin-access-controls
- plugin-activity-feed
- plugin-admin-api
- plugin-nself-ai-gateway
- plugin-nself-ai-mcp
- plugin-nself-ai-mcp
- plugin-analytics
- plugin-auth
- plugin-backup-pro
- plugin-bots
- plugin-browser
- plugin-calendar
- plugin-cdn
- plugin-chat
- plugin-claw
- plugin-claw-budget
- plugin-claw-news
- plugin-claw-web
- plugin-cloudflare
- plugin-cms
- plugin-compliance
- plugin-cron-pro
- plugin-ddns
- plugin-devices
- plugin-documents
- plugin-donorbox-pro
- plugin-entitlements
- plugin-epg
- plugin-file-processing
- plugin-game-metadata
- plugin-geocoding
- plugin-geolocation
- plugin-google
- plugin-home
- plugin-idme
- plugin-knowledge-base
- plugin-linkedin
- plugin-livekit
- plugin-media-processing
- plugin-meetings
- plugin-moderation
- plugin-mux
- plugin-notify-pro
- plugin-object-storage
- plugin-observability
- plugin-paypal-pro
- plugin-photos
- plugin-podcast
- plugin-post
- plugin-realtime
- plugin-recording
- plugin-retro-gaming
- plugin-rom-discovery
- plugin-shopify-pro
- plugin-social
- plugin-sports
- plugin-stream-gateway
- plugin-streaming
- plugin-stripe-pro
- plugin-support
- plugin-tmdb
- plugin-voice
- plugin-web3
- plugin-workflows
Planned (26)
plugin-auditplugin-blogplugin-checkoutplugin-commerceplugin-drmplugin-exportplugin-flowplugin-importplugin-ldapplugin-mailgunplugin-mediaplugin-oauth-providersplugin-pagesplugin-postmarkplugin-rate-limitplugin-reportsplugin-samlplugin-schedulerplugin-sendgridplugin-ssoplugin-subscriptionplugin-thumbplugin-transcoderplugin-twilioplugin-wafplugin-watermark
Guides
- Guide-Production-Deployment
- Guide-SSL-Setup
- Guide-Multi-Tenancy
- Guide-Security-Hardening
- Guide-Monitoring-Setup
- Guide-Backup-Restore
- Guide-Custom-Services
- Guide-Migration-from-v1
Architecture
Reference
- API-Reference
- error-codes, Error Codes
Licensing
Security
Brand
Operations
- operations/release-cascade, Release Cascade
- operations/self-healing, Self-Healing Schema
- operations/redis-tuning, Redis Pool Tuning
- operations/meilisearch-warmup, MeiliSearch Warm-Up
- operations/jwt-rotation, JWT Key Rotation
- operations/windows-wsl2-setup, Windows / WSL2 Setup
- operations/gemini-oauth-reauth, Gemini OAuth Reauth
Contributing
Admin
- USER-ACTION-QUEUE, Pending Admin Actions
All commands (52)
- A: cmd-access · cmd-account · cmd-admin
- B: cmd-backup · cmd-build · cmd-bundle
- C: cmd-ci · cmd-clean · cmd-completion · cmd-config
- D: cmd-db · cmd-deploy · cmd-dev · cmd-doctor
- E: cmd-env · cmd-exec
- F: cmd-functions
- G: cmd-generate
- H: cmd-health · cmd-help-topics
- I: cmd-init · cmd-install
- L: cmd-license · cmd-login · cmd-logout · cmd-logs
- M: cmd-man · cmd-mcp · cmd-migrate
- O: cmd-oauth · cmd-ops
- P: cmd-plugin · cmd-promote
- R: cmd-remove · cmd-reset · cmd-restart · cmd-runner
- S: cmd-secrets · cmd-security · cmd-self-heal · cmd-server · cmd-service · cmd-start · cmd-status · cmd-stop
- T: cmd-telemetry · cmd-template · cmd-trust
- U: cmd-update · cmd-urls
- V: cmd-verify-sbom · cmd-version