generated from vrchat-community/template-package
-
Notifications
You must be signed in to change notification settings - Fork 24
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
1 parent
f37af88
commit c0c353d
Showing
3 changed files
with
49 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System; | ||
using System.Diagnostics; | ||
using Microsoft.Unity.VisualStudio.Editor; | ||
using UnityEditor; | ||
|
||
public static class DocsBuilder | ||
{ | ||
public static void BuildDocs() | ||
{ | ||
ProjectGeneration projectGeneration = new ProjectGeneration(); | ||
AssetDatabase.Refresh(); | ||
projectGeneration.GenerateAndWriteSolutionAndProjects(); | ||
|
||
RunProcess("dotnet tool update -g docfx"); | ||
RunProcess("ls -l"); | ||
} | ||
|
||
private static void RunProcess(string command) | ||
{ | ||
System.Console.Error.WriteLine("=== Running command: " + command + " ==="); | ||
var process = Process.Start(command); | ||
process.WaitForExit(); | ||
|
||
if (process.ExitCode != 0) | ||
{ | ||
throw new Exception("Process failed: " + command + " - with error code " + process.ExitCode); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.