Skip to content

Commit

Permalink
Initial version
Browse files Browse the repository at this point in the history
  • Loading branch information
adikhoff committed Oct 24, 2024
1 parent 649a398 commit 93cf3b1
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

INPUT_DIR="."
MIGRATE_DIR="_migrated"
SPHINX_DIR="_sphinx"

BUILD_ROOT="redot-docs-build"
BUILD_DIR="$BUILD_ROOT/en/master"

touch test.txt
echo 'hello' >> test.txt

mkdir -p $MIGRATE_DIR
python migrate.py --tiny $INPUT_DIR $MIGRATE_DIR
mkdir -p $SPHINX_DIR
sphinx-build -b html -j 4 $MIGRATE_DIR $SPHINX_DIR

git clone [email protected]:Redot-Engine/$BUILD_ROOT.git

echo "mkdir -p $BUILD_DIR"
mkdir -p $BUILD_DIR
echo "cp -r $SPHINX_DIR/* $BUILD_DIR"
cp -r $SPHINX_DIR/* $BUILD_DIR

cp test.txt $BUILD_DIR
cp test.txt $BUILD_DIR/index.html

cd $BUILD_DIR
ls -la
git push -f

0 comments on commit 93cf3b1

Please sign in to comment.