Browse Source

- Added VCS commands to the doc generator bat file. This will perform the following:

1. Clean the output\html folder (as before)
2. Use the SVN interface to checkout the Torque2D git repo (gh-pages branch)
3. Generate the docs (as before)
4. Use the SVN interface to add any new HTML files generated
5. Use the SVN interface to commit changes to the Torque 2D git repo (gh-pages branch)
MichPerry-GG 12 years ago
parent
commit
350bc22
1 changed files with 6 additions and 1 deletions
  1. 6 1
      tools/documentation/generateDocs.bat

+ 6 - 1
tools/documentation/generateDocs.bat

@@ -23,9 +23,14 @@ if not exist "input\docDump.txt" (
 
 REM --- Build the doxygen docs ---
 del /Q "output\html"
-rd "output\html"
+svn checkout "https://github.com/GarageGames/Torque2D.git/branches/gh-pages" "output\html"
 doxygen.exe scriptReference.Windows.cfg
 
+REM --- Add the newly generated docs to the gh-pages branch
+cd "output\html"
+svn add *.*
+svn commit -m "- Updated reference"
+
 REM --- Build the CHM ---
 REM hhc.exe "output\html\index.hhp"
 endlocal