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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
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) |
|
|
private static string NormalizeVersion(string version) |
|
|
{ |
|
|
{ |
|
|
|
|
|
if (version == "master" || version == "dev") |
|
|
|
|
|
{ |
|
|
|
|
|
return version; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
version = version.RemovePreFix("v"); |
|
|
version = version.RemovePreFix("v"); |
|
|
|
|
|
|
|
|
var normalizedVersion = ""; |
|
|
var normalizedVersion = ""; |
|
|
|