Beispiel #1
0
 private object GetUrl(IDocumentationFile file)
 {
     if (file is ExternalDocument)
     {
         return(file.OutputFileName);
     }
     return($"https://apsimdev.apsim.info/ApsimX/Releases/{Simulations.ApsimVersion}/{file.OutputFileName}");
 }
Beispiel #2
0
 private static Task DocumentFile(IDocumentationFile file, string path, CancellationToken cancelToken)
 {
     return(Task.Run(() => file.Generate(path), cancelToken));
 }
Beispiel #3
0
 /// <summary>
 /// Create a new <see cref="DocumentationCell"/> instance which holds
 /// a single file.
 /// </summary>
 /// <param name="file">The file to show in the cell.</param>
 public DocumentationCell(IDocumentationFile file) : this(file.ToEnumerable())
 {
 }