-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathpublish-docs.sh
More file actions
executable file
路44 lines (32 loc) 路 978 Bytes
/
Copy pathpublish-docs.sh
File metadata and controls
executable file
路44 lines (32 loc) 路 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
# Script to build and publish full documentation to GitHub Pages
set -e
echo "Building full documentation..."
scons -j4 docs
echo "Checking out gh-pages branch..."
git fetch origin
if git rev-parse --verify gh-pages >/dev/null 2>&1; then
git branch -D gh-pages || true
fi
git checkout --orphan gh-pages
echo "Cleaning working directory..."
git rm -rf .
git clean -fdx
echo "Copying documentation..."
cp -r release/doc/* .
echo "Adding .nojekyll file..."
touch .nojekyll
echo "Committing documentation..."
git add .
git commit -m "Deploy documentation
Built from commit: $(git rev-parse master)
Date: $(date -u '+%Y-%m-%d %H:%M:%S UTC')
馃 Generated with [Claude Code](https://claude.com/claude-code)
"
echo "Pushing to gh-pages branch..."
git push origin gh-pages --force
echo "Returning to master branch..."
git checkout master
echo ""
echo "Documentation published successfully!"
echo "Visit: https://lutzgross.github.io/esys-escript.github.io/"