コード例 #1
0
 public Folder(string name, IFolder parent)
 {
     Relative = new RelativeFolder(name);
     if (parent.Absolute != null)
     {
         Absolute = new AbsoluteFolder(Path.Combine(parent.Absolute.FullPath, name));
     }
 }
コード例 #2
0
        public static RenderSettings DefaultFile(AbsoluteFolder rootFolder)
        {
            var outputFolder = new Folder(rootFolder, new RelativeFolder("output"));
            var sourceFolder = new Folder(rootFolder);

            return(new RenderSettings
            {
                SourceFolder = sourceFolder,
                OutputFolder = outputFolder,
                MarkdownFolder = new Folder(outputFolder.Absolute, new RelativeFolder("markdown")),
                CssFolder = new Folder(outputFolder.Absolute, new RelativeFolder("css")),
                JavascriptFolder = new Folder(outputFolder.Absolute, new RelativeFolder("javascript")),
                ImageFolder = new Folder(outputFolder.Absolute, new RelativeFolder("image")),
                SettingsFile = new File(sourceFolder, "settings.toml"),
            });
        }
コード例 #3
0
 public Folder(AbsoluteFolder absoluteFolder)
 {
     Relative = null;
     Absolute = absoluteFolder;
 }
コード例 #4
0
 public Folder(AbsoluteFolder absolute, RelativeFolder relative)
 {
     Absolute = new AbsoluteFolder(Path.Combine(absolute.FullPath, relative.Name));
     Relative = relative;
 }