@@ -48,25 +48,25 @@ public AssembleContext(
48
48
// temporarily fallback to embedded assembler.yml
49
49
// This will live in docs-content soon
50
50
if ( ! ReadFileSystem . File . Exists ( configPath ) )
51
- ExtractAssemblerConfiguration ( configPath ) ;
51
+ ExtractAssemblerConfiguration ( configPath , "assembler.yml" ) ;
52
52
ConfigurationPath = ReadFileSystem . FileInfo . New ( configPath ) ;
53
53
Configuration = AssemblyConfiguration . Deserialize ( ReadFileSystem . File . ReadAllText ( ConfigurationPath . FullName ) ) ;
54
54
55
55
var navigationPath = Path . Combine ( Paths . WorkingDirectoryRoot . FullName , "src" , "docs-assembler" , "navigation.yml" ) ;
56
56
if ( ! ReadFileSystem . File . Exists ( navigationPath ) )
57
- ExtractAssemblerConfiguration ( navigationPath ) ;
57
+ ExtractAssemblerConfiguration ( navigationPath , "navigation.yml" ) ;
58
58
NavigationPath = ReadFileSystem . FileInfo . New ( navigationPath ) ;
59
59
60
60
CheckoutDirectory = ReadFileSystem . DirectoryInfo . New ( checkoutDirectory ?? ".artifacts/checkouts" ) ;
61
61
OutputDirectory = ReadFileSystem . DirectoryInfo . New ( output ?? ".artifacts/assembly" ) ;
62
62
}
63
63
64
- private void ExtractAssemblerConfiguration ( string configPath )
64
+ private void ExtractAssemblerConfiguration ( string configPath , string file )
65
65
{
66
66
var embeddedStaticFiles = Assembly . GetExecutingAssembly ( )
67
67
. GetManifestResourceNames ( )
68
68
. ToList ( ) ;
69
- var configFile = embeddedStaticFiles . First ( f => f . EndsWith ( "assembler.yml" ) ) ;
69
+ var configFile = embeddedStaticFiles . First ( f => f . EndsWith ( file ) ) ;
70
70
using var resourceStream = Assembly . GetExecutingAssembly ( ) . GetManifestResourceStream ( configFile ) ;
71
71
if ( resourceStream == null )
72
72
return ;
0 commit comments