Skip to content

Commit f3b75f6

Browse files
committed
Move from LitUp.DocumentationVersion to Program.DocVersion like on master and 6.x
1 parent e93795a commit f3b75f6

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/CodeGeneration/DocGenerator/AsciiDoc/GeneratedAsciidocVisitor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public override void Visit(Document document)
7676

7777
if (document.Attributes.All(a => a.Name != "ref_current"))
7878
{
79-
_newDocument.Attributes.Add(new AttributeEntry("ref_current", $"https://www.elastic.co/guide/en/elasticsearch/reference/{LitUp.DocumentationVersion}"));
79+
_newDocument.Attributes.Add(new AttributeEntry("ref_current", $"https://www.elastic.co/guide/en/elasticsearch/reference/{Program.DocVersion}"));
8080
}
8181

8282
if (document.Attributes.All(a => a.Name != "xpack_current"))

src/CodeGeneration/DocGenerator/LitUp.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ namespace DocGenerator
1515
{
1616
public static class LitUp
1717
{
18-
public const string DocumentationVersion = "5.6";
19-
2018
private static readonly string[] SkipFolders = { "Debug", "Release" };
2119

2220
private static string GetProjectDir(string projectName) => Path.Combine(Program.InputDirPath, projectName);

src/CodeGeneration/DocGenerator/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ static Program()
6161

6262
public static string BranchName { get; }
6363

64-
public static string DocVersion => "6.1";
64+
public static string DocVersion => "5.6";
6565

6666
static int Main(string[] args)
6767
{

0 commit comments

Comments
 (0)