File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/Elastic.Documentation.Navigation/Assembler Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 22// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
33// See the LICENSE file in the project root for more information
44
5+ using Elastic . Documentation . Configuration . Assembler ;
56using Elastic . Documentation . Configuration . DocSet ;
67using Elastic . Documentation . Extensions ;
78using Elastic . Documentation . Navigation . Isolated ;
@@ -116,7 +117,10 @@ IDocumentationContext context
116117 // Validate that path_prefix is set
117118 if ( string . IsNullOrWhiteSpace ( pathPrefix ) )
118119 {
119- context . EmitError ( context . ConfigurationPath , $ "path_prefix is required for TOC reference: { tocRef . Source } ") ;
120+ // we allow not setting path prefixes for toc references from the narrative repository
121+ if ( tocRef . Source . Scheme != NarrativeRepository . RepositoryName )
122+ context . EmitError ( context . ConfigurationPath , $ "path_prefix is required for TOC reference: { tocRef . Source } ") ;
123+
120124 pathPrefix = tocRef . Source . Scheme ;
121125 if ( ! string . IsNullOrEmpty ( tocRef . Source . Host ) )
122126 pathPrefix += $ "/{ tocRef . Source . Host } ";
You can’t perform that action at this time.
0 commit comments