src/BloomExe/web/controllers/PageTemplatesApi.cs
/// <summary>
/// Gives paths to the html files for all source books and those in the current collection
/// </summary>
Gives paths to the html files for all source books and those in the current collection
Gives paths to the html files for all source books and those in the current collection
public IEnumerable<string> GetCurrentAndSourceBookPaths()
		{
			return new [] {_bookSelection.CurrentSelection.CollectionSettings.FolderPath} 
				.Concat(_sourceCollectionsList.GetCollectionFolders()) 
				.Distinct() 
				.SelectMany(ProjectContext.SafeGetDirectories) 
					.Select(BookStorage.FindBookHtmlInFolder); 
		}
public IEnumerable < string > GetCurrentAndSourceBookPaths ( ) { return new [ ] { _bookSelection . CurrentSelection . CollectionSettings . FolderPath } . Concat ( _sourceCollectionsList . GetCollectionFolders ( ) ) . Distinct ( ) . SelectMany ( ProjectContext . SafeGetDirectories ) . Select ( BookStorage . FindBookHtmlInFolder ) ; }
Gives paths to the html files for all source books and those in the current collection
Gives paths to the html files for all source books and those in the current collection
// Start with the current collection // add all other source collections //seems to be needed in case a shortcut points to a folder that's already in the list. // get all the (book) folders in those collections // and get the book from each