Browse Source

Merge pull request #10534 from abpframework/feat/docs-non-semantic-version-names

Allow using master and dev branch names as version names
pull/10537/head
maliming 5 years ago
committed by GitHub
parent
commit
daa2e27976
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      modules/docs/src/Volo.Docs.Domain.Shared/Volo/Docs/Documents/Version/SemanticVersionHelper.cs

5
modules/docs/src/Volo.Docs.Domain.Shared/Volo/Docs/Documents/Version/SemanticVersionHelper.cs

@ -26,6 +26,11 @@ namespace Volo.Docs.GitHub.Documents.Version
private static string NormalizeVersion(string version)
{
if (version == "master" || version == "dev")
{
return version;
}
version = version.RemovePreFix("v");
var normalizedVersion = "";

Loading…
Cancel
Save