With a little bit of OOP and a monster commit, I too can make a an ssg, Ka-chow... Changes: - ➕ added class to represent SiteFile - ➕ enabled conversion semi-automatic based on file type. - ➕ added template to Testing. - ➖ Removed awful code for dependency search - ➖ Removed awful code for enumerating directory - ➕ arguments to a class to allow for easier passing to other parts of the code. TODO: - 🐞Test and debug with a copy of a live site, - ✍️ Add handling for Pandoc errors on stderr - ❓Look into parallelising as much as possible.
10 lines
272 B
C#
10 lines
272 B
C#
namespace csSiteGen;
|
|
|
|
public static partial class Utils {
|
|
|
|
// Abstract Directory.GetFiles to get a List as it will be easier to handle later.
|
|
public static List<FileInfo> GetFiles(DirectoryInfo dir){
|
|
return dir.GetFiles("*",SearchOption.AllDirectories).ToList();
|
|
}
|
|
}
|