forked from godotengine/godot-docs
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Arjan Dikhoff
committed
Oct 25, 2024
1 parent
02c2945
commit 734a860
Showing
2 changed files
with
5 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
#!/bin/bash | ||
|
||
# Init env vars | ||
|
||
date=`date` | ||
workDir=`pwd` | ||
sshCommand="ssh -v" # Add -v, -vv, or -vvv for verbose debugging | ||
|
@@ -25,7 +24,6 @@ liveRepo="[email protected]:Redot-Engine/$liveRoot.git" | |
buildDir="html/en/$gitBranch" # TODO: implement i18n support | ||
|
||
# Report vars and intention | ||
|
||
echo "Building $gitCommitMessage" | ||
echo "Live branch: $redotDocsLiveBranch" | ||
echo "Live root: $liveRoot, live repo: $liveRepo, build dir: $buildDir, report dir: $reportDir" | ||
|
@@ -36,15 +34,13 @@ rm -rf $migrateDir | |
rm -rf $sphinxDir | ||
rm -rf $repoDir | ||
|
||
# Init git | ||
|
||
echo "Migrate Godot to Redot" | ||
mkdir -p $migrateDir | ||
# python migrate.py $inputDir $migrateDir | ||
python migrate.py $inputDir $migrateDir | ||
|
||
echo "Translate to html" | ||
mkdir -p $sphinxDir | ||
# sphinx-build -b html -j 4 $migrateDir $sphinxDir | ||
sphinx-build -b html -j 4 $migrateDir $sphinxDir | ||
|
||
echo "DUMMY FILE FOR TESTING: $date" > $sphinxDir/test.html | ||
|
||
|
@@ -77,6 +73,7 @@ then | |
chmod 0644 ~/.ssh/known_hosts | ||
chmod 0755 ~/.ssh | ||
|
||
# Init git | ||
git remote set-url origin [email protected]:Redot-Engine/redot-docs-live.git | ||
|
||
echo "Setting credentials" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters