From eecdca90442a238f1752e2b407961af27ff5ba88 Mon Sep 17 00:00:00 2001 From: Martijn Laarman Date: Fri, 31 Jul 2020 03:32:37 +0200 Subject: [PATCH] [Docs] order `anchor-list` output explicitly. (#4894) * Make sure anchor-links output is explicitly ordered as well * update docs --- .../pipeline/normalize/normalize-aggregation-usage.asciidoc | 4 ++-- docs/search/scrolling-documents.asciidoc | 4 ++-- src/DocGenerator/AsciiDoc/RawAsciidocVisitor.cs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/aggregations/pipeline/normalize/normalize-aggregation-usage.asciidoc b/docs/aggregations/pipeline/normalize/normalize-aggregation-usage.asciidoc index 2000172c00a..06920528129 100644 --- a/docs/aggregations/pipeline/normalize/normalize-aggregation-usage.asciidoc +++ b/docs/aggregations/pipeline/normalize/normalize-aggregation-usage.asciidoc @@ -1,4 +1,4 @@ -:ref_current: https://www.elastic.co/guide/en/elasticsearch/reference/master +:ref_current: https://www.elastic.co/guide/en/elasticsearch/reference/7.x :github: https://github.com/elastic/elasticsearch-net @@ -7,7 +7,7 @@ //// IMPORTANT NOTE ============== -This file has been generated from https://github.com/elastic/elasticsearch-net/tree/master/src/Tests/Tests/Aggregations/Pipeline/Normalize/NormalizeAggregationUsageTests.cs. +This file has been generated from https://github.com/elastic/elasticsearch-net/tree/7.x/src/Tests/Tests/Aggregations/Pipeline/Normalize/NormalizeAggregationUsageTests.cs. If you wish to submit a PR for any spelling mistakes, typos or grammatical errors for this file, please modify the original csharp file found at the link and submit the PR with that change. Thanks! //// diff --git a/docs/search/scrolling-documents.asciidoc b/docs/search/scrolling-documents.asciidoc index cf6540c77a6..3230792ac4d 100644 --- a/docs/search/scrolling-documents.asciidoc +++ b/docs/search/scrolling-documents.asciidoc @@ -1,4 +1,4 @@ -:ref_current: https://www.elastic.co/guide/en/elasticsearch/reference/master +:ref_current: https://www.elastic.co/guide/en/elasticsearch/reference/7.x :github: https://github.com/elastic/elasticsearch-net @@ -7,7 +7,7 @@ //// IMPORTANT NOTE ============== -This file has been generated from https://github.com/elastic/elasticsearch-net/tree/master/src/Tests/Tests/Search/ScrollingDocuments.doc.cs. +This file has been generated from https://github.com/elastic/elasticsearch-net/tree/7.x/src/Tests/Tests/Search/ScrollingDocuments.doc.cs. If you wish to submit a PR for any spelling mistakes, typos or grammatical errors for this file, please modify the original csharp file found at the link and submit the PR with that change. Thanks! //// diff --git a/src/DocGenerator/AsciiDoc/RawAsciidocVisitor.cs b/src/DocGenerator/AsciiDoc/RawAsciidocVisitor.cs index 8a0c4596801..741fa761ffb 100644 --- a/src/DocGenerator/AsciiDoc/RawAsciidocVisitor.cs +++ b/src/DocGenerator/AsciiDoc/RawAsciidocVisitor.cs @@ -83,7 +83,7 @@ public override void VisitAttributeEntry(AttributeEntry attributeEntry) var list = new UnorderedList(); - foreach (var directory in directories) + foreach (var directory in directories.OrderBy(s=>s)) { var files = Directory.EnumerateFiles( Path.Combine(Program.TmpOutputDirPath, directory), "*.asciidoc", SearchOption.AllDirectories);