Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
BattlefieldDuck committed Jan 23, 2024
1 parent bcb5c63 commit 86dfe6f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion OpenGSQTests/RconProtocols/SourceRconTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class SourceRconTests : TestBase
{
public SourceRconTests() : base(typeof(SourceRconTests))
{
EnableSave = true;
// EnableSave = true;
}

[TestMethod()]
Expand Down
4 changes: 2 additions & 2 deletions OpenGSQTests/TestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public abstract partial class TestBase
/// <summary>
/// Set save the result to file
/// </summary>
protected bool EnableSave = !false;
protected bool EnableSave = false;

/// <summary>
/// Delay on every test case since too quick may causes timeout
Expand Down Expand Up @@ -90,7 +90,7 @@ public void SaveResult(string functionName, object result, bool isJson = true)
string docsPath = Path.Combine(DocsBasePath, _type.Namespace, _type.Name);
Directory.CreateDirectory(docsPath);

// Generate /docs/tests/{_protocolName}/{functionName}.md
// Generate /docs/tests/{_type.FullName}/{functionName}/{functionName}.md
string contents = $"---\nuid: {_type.FullName}.{functionName}\n---\n\n";
contents += $"# Test Method {functionName}\n\nHere are the results for the test method.\n\n";
contents += $"```{(isJson ? "json" : "txt")}\n{result}\n```\n";
Expand Down
5 changes: 5 additions & 0 deletions docs/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
]
}
],
"sitemap": {
"baseUrl": "https://dotnet.opengsq.com",
"priority": 0.5,
"changefreq": "daily"
},
"output": "_site",
"template": [
"default",
Expand Down

0 comments on commit 86dfe6f

Please sign in to comment.