|
| 1 | +#!/bin/bash |
| 2 | +# Build script for mkdocs documentation |
| 3 | +# This script copies README files into docs/ and builds the site |
| 4 | + |
| 5 | +set -e |
| 6 | + |
| 7 | +echo "Setting up documentation files..." |
| 8 | + |
| 9 | +# Create docs directory |
| 10 | +mkdir -p docs |
| 11 | + |
| 12 | +# Copy README files with appropriate names |
| 13 | +cp README.md docs/index.md |
| 14 | +cp admin/README.md docs/admin.md |
| 15 | +cp admintools/README.md docs/admintools.md |
| 16 | +cp api/README.md docs/api.md |
| 17 | +cp cache/README.md docs/cache.md |
| 18 | +cp constants/README.md docs/constants.md |
| 19 | +cp decorators/README.md docs/decorators.md |
| 20 | +cp extensions/README.md docs/extensions.md |
| 21 | +cp forms/README.md docs/forms.md |
| 22 | +cp middleware/README.md docs/middleware.md |
| 23 | +cp models/README.md docs/models.md |
| 24 | +cp utils/README.md docs/utils.md |
| 25 | +cp validators/README.md docs/validators.md |
| 26 | +cp apps/README.md docs/apps.md |
| 27 | +cp lib/README.md docs/lib.md |
| 28 | +cp test_scaffold/README.md docs/test_scaffold.md |
| 29 | +cp scripts/README.md docs/scripts.md |
| 30 | +cp templatetags/README.md docs/templatetags.md |
| 31 | + |
| 32 | +echo "✓ Documentation files copied" |
| 33 | + |
| 34 | +# Build the site |
| 35 | +echo "Building documentation site..." |
| 36 | +mkdocs build |
| 37 | + |
| 38 | +echo "✓ Documentation built successfully" |
| 39 | +echo "✓ Site output is in the 'site/' directory" |
0 commit comments