瀏覽代碼

- 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 年之前
父節點
當前提交
350bc222e3
共有 1 個文件被更改,包括 6 次插入1 次删除
  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