-
Notifications
You must be signed in to change notification settings - Fork 654
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
Showing
11 changed files
with
104 additions
and
31 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
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,20 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="GenerateSchemas" type="DotNetProject" factoryName=".NET Project" folderName="Docs"> | ||
<option name="EXE_PATH" value="$PROJECT_DIR$/../run/docs.exe" /> | ||
<option name="PROGRAM_PARAMETERS" value="--target=GenerateSchemas" /> | ||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/.." /> | ||
<option name="PASS_PARENT_ENVS" value="1" /> | ||
<option name="USE_EXTERNAL_CONSOLE" value="0" /> | ||
<option name="USE_MONO" value="0" /> | ||
<option name="RUNTIME_ARGUMENTS" value="" /> | ||
<option name="PROJECT_PATH" value="$PROJECT_DIR$/docs/docs.csproj" /> | ||
<option name="PROJECT_EXE_PATH_TRACKING" value="1" /> | ||
<option name="PROJECT_ARGUMENTS_TRACKING" value="1" /> | ||
<option name="PROJECT_WORKING_DIRECTORY_TRACKING" value="0" /> | ||
<option name="PROJECT_KIND" value="DotNetCore" /> | ||
<option name="PROJECT_TFM" value="net7.0" /> | ||
<method v="2"> | ||
<option name="Build" /> | ||
</method> | ||
</configuration> | ||
</component> |
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
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
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,21 @@ | ||
using Common.Utilities; | ||
|
||
namespace Docs.Tasks; | ||
|
||
[TaskName(nameof(GenerateSchemas))] | ||
[TaskDescription("Generate schemas")] | ||
public sealed class GenerateSchemas : FrostingTask<BuildContext> | ||
{ | ||
public override void Run(BuildContext context) | ||
{ | ||
var schemaTool = context.GetSchemaDotnetToolLocation(); | ||
var gitVersion = context.Version!.GitVersion; | ||
var version = $"{gitVersion.Major}.{gitVersion.Minor}"; | ||
var schemaTargetDir = context.MakeAbsolute(Paths.Root.Combine("schemas")); | ||
context.EnsureDirectoryExists(schemaTargetDir); | ||
context.Information("Schema tool: {0}", schemaTool); | ||
context.Information("Schema target dir: {0}", schemaTargetDir); | ||
context.Information("Schema version: {0}", version); | ||
context.DotNetExecute(schemaTool, $"--Version {version} --OutputDirectory {schemaTargetDir}"); | ||
} | ||
} |
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,9 +1,10 @@ | ||
<div class="github-button"> | ||
<a href="https://github.com/GitTools/GitVersion"><i class="fa fa-github"></i> GitHub</a> | ||
</div> | ||
<script> | ||
@* disable gitter sidecar - https://github.com/matrix-org/matrix-public-archive/issues/157 *@ | ||
@* <script> | ||
((window.gitter = {}).chat = {}).options = { | ||
room: 'GitTools/GitVersion' | ||
}; | ||
</script> | ||
<script src="https://sidecar.gitter.im/dist/sidecar.v1.js" async defer></script> | ||
<script src="https://sidecar.gitter.im/dist/sidecar.v1.js" async defer></script> *@ |